diff options
| author | 2018-03-19 16:49:41 -0500 | |
|---|---|---|
| committer | 2018-03-19 16:55:33 -0500 | |
| commit | 7a27a117706d413af0b677f42d16374b0cb2f82b (patch) | |
| tree | efb71f3b74882124c4277f3b83acb86e702c02ff | |
| parent | GPU: Added the render target (RT) registers to Maxwell3D's reg structure. (diff) | |
| download | yuzu-7a27a117706d413af0b677f42d16374b0cb2f82b.tar.gz yuzu-7a27a117706d413af0b677f42d16374b0cb2f82b.tar.xz yuzu-7a27a117706d413af0b677f42d16374b0cb2f82b.zip | |
GPU: Added Z buffer registers to Maxwell3D's reg structure.
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index f354241e4..c2db3154a 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h | |||
| @@ -83,7 +83,22 @@ public: | |||
| 83 | } | 83 | } |
| 84 | } rt[NumRenderTargets]; | 84 | } rt[NumRenderTargets]; |
| 85 | 85 | ||
| 86 | INSERT_PADDING_WORDS(0x207); | 86 | INSERT_PADDING_WORDS(0x178); |
| 87 | |||
| 88 | struct { | ||
| 89 | u32 address_high; | ||
| 90 | u32 address_low; | ||
| 91 | u32 format; | ||
| 92 | u32 block_dimensions; | ||
| 93 | u32 layer_stride; | ||
| 94 | |||
| 95 | GPUVAddr Address() const { | ||
| 96 | return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high) << 32) | | ||
| 97 | address_low); | ||
| 98 | } | ||
| 99 | } zeta; | ||
| 100 | |||
| 101 | INSERT_PADDING_WORDS(0x8A); | ||
| 87 | 102 | ||
| 88 | struct { | 103 | struct { |
| 89 | union { | 104 | union { |
| @@ -321,6 +336,7 @@ private: | |||
| 321 | "Field " #field_name " has invalid position") | 336 | "Field " #field_name " has invalid position") |
| 322 | 337 | ||
| 323 | ASSERT_REG_POSITION(rt, 0x200); | 338 | ASSERT_REG_POSITION(rt, 0x200); |
| 339 | ASSERT_REG_POSITION(zeta, 0x3F8); | ||
| 324 | ASSERT_REG_POSITION(rt_control, 0x487); | 340 | ASSERT_REG_POSITION(rt_control, 0x487); |
| 325 | ASSERT_REG_POSITION(tsc, 0x557); | 341 | ASSERT_REG_POSITION(tsc, 0x557); |
| 326 | ASSERT_REG_POSITION(tic, 0x55D); | 342 | ASSERT_REG_POSITION(tic, 0x55D); |