summaryrefslogtreecommitdiffstats
path: root/src/video_core/cdma_pusher.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-01-07 21:56:15 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-02-13 19:07:56 +0100
commitb675c44e494976cf8164203fc826b54e2fac467b (patch)
tree68880d4617e87048fd1c325ed05dc26b434396cf /src/video_core/cdma_pusher.cpp
parentAddress PR feedback (diff)
downloadyuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar
yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.gz
yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.bz2
yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.lz
yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.xz
yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.zst
yuzu-b675c44e494976cf8164203fc826b54e2fac467b.zip
Diffstat (limited to 'src/video_core/cdma_pusher.cpp')
-rw-r--r--src/video_core/cdma_pusher.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/cdma_pusher.cpp b/src/video_core/cdma_pusher.cpp
index e1f00c4da..a3fda1094 100644
--- a/src/video_core/cdma_pusher.cpp
+++ b/src/video_core/cdma_pusher.cpp
@@ -145,9 +145,9 @@ void CDmaPusher::ExecuteCommand(u32 state_offset, u32 data) {
}
}
-void CDmaPusher::ThiStateWrite(ThiRegisters& state, u32 offset, u32 argument) {
- u8* const state_offset = reinterpret_cast<u8*>(&state) + sizeof(u32) * offset;
- std::memcpy(state_offset, &argument, sizeof(u32));
+void CDmaPusher::ThiStateWrite(ThiRegisters& state, u32 state_offset, u32 argument) {
+ u8* const offset_ptr = reinterpret_cast<u8*>(&state) + sizeof(u32) * state_offset;
+ std::memcpy(offset_ptr, &argument, sizeof(u32));
}
} // namespace Tegra