diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-04 05:54:16 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2019-03-21 03:36:02 +0100 |
commit | 22d3dfbcd4c606d40e5ae36970db4661c302859f (patch) | |
tree | 24bf6fe7420aab7a34be7782bc1830e053b64679 /src/video_core/gpu.cpp | |
parent | gpu: Move GPUVAddr definition to common_types. (diff) | |
download | yuzu-22d3dfbcd4c606d40e5ae36970db4661c302859f.tar yuzu-22d3dfbcd4c606d40e5ae36970db4661c302859f.tar.gz yuzu-22d3dfbcd4c606d40e5ae36970db4661c302859f.tar.bz2 yuzu-22d3dfbcd4c606d40e5ae36970db4661c302859f.tar.lz yuzu-22d3dfbcd4c606d40e5ae36970db4661c302859f.tar.xz yuzu-22d3dfbcd4c606d40e5ae36970db4661c302859f.tar.zst yuzu-22d3dfbcd4c606d40e5ae36970db4661c302859f.zip |
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r-- | src/video_core/gpu.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 66c690494..267a03f2d 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -12,6 +12,7 @@ #include "video_core/engines/maxwell_3d.h" #include "video_core/engines/maxwell_dma.h" #include "video_core/gpu.h" +#include "video_core/memory_manager.h" #include "video_core/renderer_base.h" namespace Tegra { @@ -287,7 +288,7 @@ void GPU::ProcessSemaphoreTriggerMethod() { block.timestamp = Core::System::GetInstance().CoreTiming().GetTicks(); memory_manager->WriteBlock(regs.smaphore_address.SmaphoreAddress(), &block, sizeof(block)); } else { - const u32 word{memory_manager->Read32(regs.smaphore_address.SmaphoreAddress())}; + const u32 word{memory_manager->Read<u32>(regs.smaphore_address.SmaphoreAddress())}; if ((op == GpuSemaphoreOperation::AcquireEqual && word == regs.semaphore_sequence) || (op == GpuSemaphoreOperation::AcquireGequal && static_cast<s32>(word - regs.semaphore_sequence) > 0) || @@ -314,11 +315,11 @@ void GPU::ProcessSemaphoreTriggerMethod() { } void GPU::ProcessSemaphoreRelease() { - memory_manager->Write32(regs.smaphore_address.SmaphoreAddress(), regs.semaphore_release); + memory_manager->Write<u32>(regs.smaphore_address.SmaphoreAddress(), regs.semaphore_release); } void GPU::ProcessSemaphoreAcquire() { - const u32 word = memory_manager->Read32(regs.smaphore_address.SmaphoreAddress()); + const u32 word = memory_manager->Read<u32>(regs.smaphore_address.SmaphoreAddress()); const auto value = regs.semaphore_acquire; if (word != value) { regs.acquire_active = true; |