summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-06-24 02:41:09 -0300
committerGravatar ameerj2021-07-22 21:51:39 -0400
commit7dafa96ab59892b7f1fbffdb61e4326e6443955f (patch)
tree5ab58d56860db635542ea1ec24be258bd86b40b9 /src/video_core/engines
parentvk_graphics_pipeline: Implement conservative rendering (diff)
downloadyuzu-7dafa96ab59892b7f1fbffdb61e4326e6443955f.tar.gz
yuzu-7dafa96ab59892b7f1fbffdb61e4326e6443955f.tar.xz
yuzu-7dafa96ab59892b7f1fbffdb61e4326e6443955f.zip
shader: Rework varyings and implement passthrough geometry shaders
Put all varyings into a single std::bitset with helpers to access it. Implement passthrough geometry shaders using host's.
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index da2ded671..471d5686a 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -961,7 +961,11 @@ public:
961 961
962 SamplerIndex sampler_index; 962 SamplerIndex sampler_index;
963 963
964 INSERT_PADDING_WORDS_NOINIT(0x25); 964 INSERT_PADDING_WORDS_NOINIT(0x2);
965
966 std::array<u32, 8> gp_passthrough_mask;
967
968 INSERT_PADDING_WORDS_NOINIT(0x1B);
965 969
966 u32 depth_test_enable; 970 u32 depth_test_enable;
967 971
@@ -1628,6 +1632,7 @@ ASSERT_REG_POSITION(zeta_width, 0x48a);
1628ASSERT_REG_POSITION(zeta_height, 0x48b); 1632ASSERT_REG_POSITION(zeta_height, 0x48b);
1629ASSERT_REG_POSITION(zeta_depth, 0x48c); 1633ASSERT_REG_POSITION(zeta_depth, 0x48c);
1630ASSERT_REG_POSITION(sampler_index, 0x48D); 1634ASSERT_REG_POSITION(sampler_index, 0x48D);
1635ASSERT_REG_POSITION(gp_passthrough_mask, 0x490);
1631ASSERT_REG_POSITION(depth_test_enable, 0x4B3); 1636ASSERT_REG_POSITION(depth_test_enable, 0x4B3);
1632ASSERT_REG_POSITION(independent_blend_enable, 0x4B9); 1637ASSERT_REG_POSITION(independent_blend_enable, 0x4B9);
1633ASSERT_REG_POSITION(depth_write_enabled, 0x4BA); 1638ASSERT_REG_POSITION(depth_write_enabled, 0x4BA);