diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 69ed56338..545d7ff35 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h | |||
| @@ -33,6 +33,7 @@ public: | |||
| 33 | static constexpr size_t NUM_REGS = 0xE36; | 33 | static constexpr size_t NUM_REGS = 0xE36; |
| 34 | 34 | ||
| 35 | static constexpr size_t NumRenderTargets = 8; | 35 | static constexpr size_t NumRenderTargets = 8; |
| 36 | static constexpr size_t NumViewports = 16; | ||
| 36 | static constexpr size_t NumCBData = 16; | 37 | static constexpr size_t NumCBData = 16; |
| 37 | static constexpr size_t NumVertexArrays = 32; | 38 | static constexpr size_t NumVertexArrays = 32; |
| 38 | static constexpr size_t NumVertexAttributes = 32; | 39 | static constexpr size_t NumVertexAttributes = 32; |
| @@ -186,7 +187,22 @@ public: | |||
| 186 | } | 187 | } |
| 187 | } rt[NumRenderTargets]; | 188 | } rt[NumRenderTargets]; |
| 188 | 189 | ||
| 189 | INSERT_PADDING_WORDS(0xDD); | 190 | INSERT_PADDING_WORDS(0x80); |
| 191 | |||
| 192 | struct { | ||
| 193 | union { | ||
| 194 | BitField<0, 16, u32> x; | ||
| 195 | BitField<16, 16, u32> width; | ||
| 196 | }; | ||
| 197 | union { | ||
| 198 | BitField<0, 16, u32> y; | ||
| 199 | BitField<16, 16, u32> height; | ||
| 200 | }; | ||
| 201 | float depth_range_near; | ||
| 202 | float depth_range_far; | ||
| 203 | } viewport[NumViewports]; | ||
| 204 | |||
| 205 | INSERT_PADDING_WORDS(0x1D); | ||
| 190 | 206 | ||
| 191 | struct { | 207 | struct { |
| 192 | u32 first; | 208 | u32 first; |
| @@ -462,6 +478,7 @@ private: | |||
| 462 | "Field " #field_name " has invalid position") | 478 | "Field " #field_name " has invalid position") |
| 463 | 479 | ||
| 464 | ASSERT_REG_POSITION(rt, 0x200); | 480 | ASSERT_REG_POSITION(rt, 0x200); |
| 481 | ASSERT_REG_POSITION(viewport, 0x300); | ||
| 465 | ASSERT_REG_POSITION(vertex_buffer, 0x35D); | 482 | ASSERT_REG_POSITION(vertex_buffer, 0x35D); |
| 466 | ASSERT_REG_POSITION(zeta, 0x3F8); | 483 | ASSERT_REG_POSITION(zeta, 0x3F8); |
| 467 | ASSERT_REG_POSITION(vertex_attrib_format[0], 0x458); | 484 | ASSERT_REG_POSITION(vertex_attrib_format[0], 0x458); |