diff options
| author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-01-07 15:56:15 -0500 |
|---|---|---|
| committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-02-13 13:07:56 -0500 |
| commit | b675c44e494976cf8164203fc826b54e2fac467b (patch) | |
| tree | 68880d4617e87048fd1c325ed05dc26b434396cf /src/video_core/cdma_pusher.cpp | |
| parent | 3c37d66c28b7150c076091b1a5f7b4206ff71761 (diff) | |
rebase, fix name shadowing, more const
Diffstat (limited to 'src/video_core/cdma_pusher.cpp')
| -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 |
