diff options
| author | 2018-11-21 00:40:32 -0300 | |
|---|---|---|
| committer | 2018-11-24 00:16:33 -0300 | |
| commit | 54c2a4cafc8fe11f83a61863d4b83ab152004881 (patch) | |
| tree | 35328437511b440b825861c5c02c3e5d81f22f55 /src/video_core/engines | |
| parent | Merge pull request #1744 from degasus/shader_cache (diff) | |
| download | yuzu-54c2a4cafc8fe11f83a61863d4b83ab152004881.tar.gz yuzu-54c2a4cafc8fe11f83a61863d4b83ab152004881.tar.xz yuzu-54c2a4cafc8fe11f83a61863d4b83ab152004881.zip | |
Add support for clear_flags register
Diffstat (limited to 'src/video_core/engines')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index eff6abd55..4f137e693 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h | |||
| @@ -631,7 +631,16 @@ public: | |||
| 631 | } | 631 | } |
| 632 | } zeta; | 632 | } zeta; |
| 633 | 633 | ||
| 634 | INSERT_PADDING_WORDS(0x5B); | 634 | INSERT_PADDING_WORDS(0x41); |
| 635 | |||
| 636 | union { | ||
| 637 | BitField<0, 4, u32> stencil; | ||
| 638 | BitField<4, 4, u32> unknown; | ||
| 639 | BitField<8, 4, u32> scissor; | ||
| 640 | BitField<12, 4, u32> viewport; | ||
| 641 | } clear_flags; | ||
| 642 | |||
| 643 | INSERT_PADDING_WORDS(0x19); | ||
| 635 | 644 | ||
| 636 | std::array<VertexAttribute, NumVertexAttributes> vertex_attrib_format; | 645 | std::array<VertexAttribute, NumVertexAttributes> vertex_attrib_format; |
| 637 | 646 | ||
| @@ -1134,6 +1143,7 @@ ASSERT_REG_POSITION(stencil_back_func_mask, 0x3D7); | |||
| 1134 | ASSERT_REG_POSITION(color_mask_common, 0x3E4); | 1143 | ASSERT_REG_POSITION(color_mask_common, 0x3E4); |
| 1135 | ASSERT_REG_POSITION(rt_separate_frag_data, 0x3EB); | 1144 | ASSERT_REG_POSITION(rt_separate_frag_data, 0x3EB); |
| 1136 | ASSERT_REG_POSITION(zeta, 0x3F8); | 1145 | ASSERT_REG_POSITION(zeta, 0x3F8); |
| 1146 | ASSERT_REG_POSITION(clear_flags, 0x43E); | ||
| 1137 | ASSERT_REG_POSITION(vertex_attrib_format, 0x458); | 1147 | ASSERT_REG_POSITION(vertex_attrib_format, 0x458); |
| 1138 | ASSERT_REG_POSITION(rt_control, 0x487); | 1148 | ASSERT_REG_POSITION(rt_control, 0x487); |
| 1139 | ASSERT_REG_POSITION(zeta_width, 0x48a); | 1149 | ASSERT_REG_POSITION(zeta_width, 0x48a); |