diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-10 01:01:21 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-09-10 04:48:28 +0200 |
commit | 49b15af05437e665088105bd4873be478ad12b4b (patch) | |
tree | d98cbf1602f965349af120395350739dc6e204d7 /src/video_core/engines | |
parent | Merge pull request #1258 from tgsm/fix-sdl-logging (diff) | |
download | yuzu-49b15af05437e665088105bd4873be478ad12b4b.tar yuzu-49b15af05437e665088105bd4873be478ad12b4b.tar.gz yuzu-49b15af05437e665088105bd4873be478ad12b4b.tar.bz2 yuzu-49b15af05437e665088105bd4873be478ad12b4b.tar.lz yuzu-49b15af05437e665088105bd4873be478ad12b4b.tar.xz yuzu-49b15af05437e665088105bd4873be478ad12b4b.tar.zst yuzu-49b15af05437e665088105bd4873be478ad12b4b.zip |
Diffstat (limited to 'src/video_core/engines')
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index f59d01738..d3be900a4 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -533,7 +533,11 @@ public: u32 stencil_back_mask; u32 stencil_back_func_mask; - INSERT_PADDING_WORDS(0x20); + INSERT_PADDING_WORDS(0x13); + + u32 rt_separate_frag_data; + + INSERT_PADDING_WORDS(0xC); struct { u32 address_high; @@ -557,7 +561,22 @@ public: struct { union { BitField<0, 4, u32> count; + BitField<4, 3, u32> map_0; + BitField<7, 3, u32> map_1; + BitField<10, 3, u32> map_2; + BitField<13, 3, u32> map_3; + BitField<16, 3, u32> map_4; + BitField<19, 3, u32> map_5; + BitField<22, 3, u32> map_6; + BitField<25, 3, u32> map_7; }; + + u32 GetMap(size_t index) const { + const std::array<u32, NumRenderTargets> maps{map_0, map_1, map_2, map_3, + map_4, map_5, map_6, map_7}; + ASSERT(index < maps.size()); + return maps[index]; + } } rt_control; INSERT_PADDING_WORDS(0x2); @@ -968,6 +987,7 @@ ASSERT_REG_POSITION(clear_stencil, 0x368); ASSERT_REG_POSITION(stencil_back_func_ref, 0x3D5); ASSERT_REG_POSITION(stencil_back_mask, 0x3D6); ASSERT_REG_POSITION(stencil_back_func_mask, 0x3D7); +ASSERT_REG_POSITION(rt_separate_frag_data, 0x3EB); ASSERT_REG_POSITION(zeta, 0x3F8); ASSERT_REG_POSITION(vertex_attrib_format, 0x458); ASSERT_REG_POSITION(rt_control, 0x487); |