diff options
| author | 2020-07-26 22:26:29 +0100 | |
|---|---|---|
| committer | 2020-07-26 22:26:29 +0100 | |
| commit | f490b4545db538b49392dcfa98d7e5219a225284 (patch) | |
| tree | fd64bb3f416061806ff206c003ac34bc7ce1910e /src | |
| parent | Merge pull request #4426 from lioncash/lock (diff) | |
| download | yuzu-f490b4545db538b49392dcfa98d7e5219a225284.tar.gz yuzu-f490b4545db538b49392dcfa98d7e5219a225284.tar.xz yuzu-f490b4545db538b49392dcfa98d7e5219a225284.zip | |
video_core/gpu: Correct the size of the puller registers
The puller register array is made up of u32s however the `NUM_REGS` value is the size in bytes, so switch it to avoid making the struct unnecessary large. Also fix a small typo in a comment.
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/gpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 19a34c402..ebfc7b0c7 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -252,7 +252,7 @@ public: | |||
| 252 | const Tegra::DmaPusher& DmaPusher() const; | 252 | const Tegra::DmaPusher& DmaPusher() const; |
| 253 | 253 | ||
| 254 | struct Regs { | 254 | struct Regs { |
| 255 | static constexpr size_t NUM_REGS = 0x100; | 255 | static constexpr size_t NUM_REGS = 0x40; |
| 256 | 256 | ||
| 257 | union { | 257 | union { |
| 258 | struct { | 258 | struct { |
| @@ -271,7 +271,7 @@ public: | |||
| 271 | u32 semaphore_trigger; | 271 | u32 semaphore_trigger; |
| 272 | INSERT_UNION_PADDING_WORDS(0xC); | 272 | INSERT_UNION_PADDING_WORDS(0xC); |
| 273 | 273 | ||
| 274 | // The puser and the puller share the reference counter, the pusher only has read | 274 | // The pusher and the puller share the reference counter, the pusher only has read |
| 275 | // access | 275 | // access |
| 276 | u32 reference_count; | 276 | u32 reference_count; |
| 277 | INSERT_UNION_PADDING_WORDS(0x5); | 277 | INSERT_UNION_PADDING_WORDS(0x5); |