summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-27 17:12:53 +0100
committerLioncash <mathew1800@gmail.com>2019-03-27 17:12:57 +0100
commite36f1a5ba96f000066c7fccd4463201ecd4215c0 (patch)
treebdcd5d23e5ae76a6305ca18a5f1e9ee5608ceb11 /src/video_core/gpu.cpp
parentMerge pull request #2285 from lioncash/unused-struct (diff)
downloadyuzu-e36f1a5ba96f000066c7fccd4463201ecd4215c0.tar
yuzu-e36f1a5ba96f000066c7fccd4463201ecd4215c0.tar.gz
yuzu-e36f1a5ba96f000066c7fccd4463201ecd4215c0.tar.bz2
yuzu-e36f1a5ba96f000066c7fccd4463201ecd4215c0.tar.lz
yuzu-e36f1a5ba96f000066c7fccd4463201ecd4215c0.tar.xz
yuzu-e36f1a5ba96f000066c7fccd4463201ecd4215c0.tar.zst
yuzu-e36f1a5ba96f000066c7fccd4463201ecd4215c0.zip
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 267a03f2d..30b29e14d 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -286,9 +286,10 @@ void GPU::ProcessSemaphoreTriggerMethod() {
// TODO(Kmather73): Generate a real GPU timestamp and write it here instead of
// CoreTiming
block.timestamp = Core::System::GetInstance().CoreTiming().GetTicks();
- memory_manager->WriteBlock(regs.smaphore_address.SmaphoreAddress(), &block, sizeof(block));
+ memory_manager->WriteBlock(regs.semaphore_address.SemaphoreAddress(), &block,
+ sizeof(block));
} else {
- const u32 word{memory_manager->Read<u32>(regs.smaphore_address.SmaphoreAddress())};
+ const u32 word{memory_manager->Read<u32>(regs.semaphore_address.SemaphoreAddress())};
if ((op == GpuSemaphoreOperation::AcquireEqual && word == regs.semaphore_sequence) ||
(op == GpuSemaphoreOperation::AcquireGequal &&
static_cast<s32>(word - regs.semaphore_sequence) > 0) ||
@@ -315,11 +316,11 @@ void GPU::ProcessSemaphoreTriggerMethod() {
}
void GPU::ProcessSemaphoreRelease() {
- memory_manager->Write<u32>(regs.smaphore_address.SmaphoreAddress(), regs.semaphore_release);
+ memory_manager->Write<u32>(regs.semaphore_address.SemaphoreAddress(), regs.semaphore_release);
}
void GPU::ProcessSemaphoreAcquire() {
- const u32 word = memory_manager->Read<u32>(regs.smaphore_address.SmaphoreAddress());
+ const u32 word = memory_manager->Read<u32>(regs.semaphore_address.SemaphoreAddress());
const auto value = regs.semaphore_acquire;
if (word != value) {
regs.acquire_active = true;