diff options
author | FengChen <vonchenplus@gmail.com> | 2022-10-21 13:14:22 +0200 |
---|---|---|
committer | FengChen <vonchenplus@gmail.com> | 2022-10-22 10:58:23 +0200 |
commit | 2f90694797e30088820937855acf613bdcf27247 (patch) | |
tree | e0eeea1cd4b5ca0aae9319a670ad968b0b5f658e /src/video_core/engines/maxwell_3d.h | |
parent | video_coare: Reimplementing the maxwell drawing trigger mechanism (diff) | |
download | yuzu-2f90694797e30088820937855acf613bdcf27247.tar yuzu-2f90694797e30088820937855acf613bdcf27247.tar.gz yuzu-2f90694797e30088820937855acf613bdcf27247.tar.bz2 yuzu-2f90694797e30088820937855acf613bdcf27247.tar.lz yuzu-2f90694797e30088820937855acf613bdcf27247.tar.xz yuzu-2f90694797e30088820937855acf613bdcf27247.tar.zst yuzu-2f90694797e30088820937855acf613bdcf27247.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 1472e8871..bd23ebc12 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -1739,14 +1739,11 @@ public: Footprint_1x1_Virtual = 2, }; - struct InlineIndex4x8Align { + struct InlineIndex4x8 { union { BitField<0, 30, u32> count; BitField<30, 2, u32> start; }; - }; - - struct InlineIndex4x8Index { union { BitField<0, 8, u32> index0; BitField<8, 8, u32> index1; @@ -2836,8 +2833,7 @@ public: u32 depth_write_enabled; ///< 0x12E8 u32 alpha_test_enabled; ///< 0x12EC INSERT_PADDING_BYTES_NOINIT(0x10); - InlineIndex4x8Align inline_index_4x8_align; ///< 0x1300 - InlineIndex4x8Index inline_index_4x8_index; ///< 0x1304 + InlineIndex4x8 inline_index_4x8; ///< 0x1300 D3DCullMode d3d_cull_mode; ///< 0x1308 ComparisonOp depth_test_func; ///< 0x130C f32 alpha_test_ref; ///< 0x1310 @@ -3083,6 +3079,8 @@ public: Tables tables{}; } dirty; + std::vector<u8> inline_index_draw_indexes; + private: void InitializeRegisterDefaults(); @@ -3377,8 +3375,7 @@ ASSERT_REG_POSITION(alpha_to_coverage_dither, 0x12E0); ASSERT_REG_POSITION(blend_per_target_enabled, 0x12E4); ASSERT_REG_POSITION(depth_write_enabled, 0x12E8); ASSERT_REG_POSITION(alpha_test_enabled, 0x12EC); -ASSERT_REG_POSITION(inline_index_4x8_align, 0x1300); -ASSERT_REG_POSITION(inline_index_4x8_index, 0x1304); +ASSERT_REG_POSITION(inline_index_4x8, 0x1300); ASSERT_REG_POSITION(d3d_cull_mode, 0x1308); ASSERT_REG_POSITION(depth_test_func, 0x130C); ASSERT_REG_POSITION(alpha_test_ref, 0x1310); |