From 31d418ad5419f8ad577ec4a5c470ece2be9a47f4 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Thu, 2 Jun 2022 22:03:19 +0100 Subject: [PATCH] Fix 3D semaphore counter type 0 handling Counter type 0 actually releases the semaphore payload rather than a constant zero as was previously thought. This is required by Skyrim. --- app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp b/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp index b1ef1b3f..ae0a9af6 100644 --- a/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp +++ b/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp @@ -699,7 +699,7 @@ namespace skyline::soc::gm20b::engine::maxwell3d { case type::SemaphoreInfo::Op::Counter: { switch (info.counterType) { case type::SemaphoreInfo::CounterType::Zero: - WriteSemaphoreResult(0); + WriteSemaphoreResult(registers.semaphore->payload); break; default: