diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-01-07 21:56:15 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-02-13 19:07:56 +0100 |
commit | b675c44e494976cf8164203fc826b54e2fac467b (patch) | |
tree | 68880d4617e87048fd1c325ed05dc26b434396cf /src/video_core/cdma_pusher.cpp | |
parent | Address PR feedback (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/video_core/cdma_pusher.cpp | 6 |
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 |