summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-10 18:04:10 +0200
committerGitHub <noreply@github.com>2018-10-10 18:04:10 +0200
commit03ec936ca007364e2c287f78dbbe8c5551dc2234 (patch)
treeb638d61299f8bdfe54c08bff94f1d07b4d22b2a3 /src/video_core/engines
parentMerge pull request #1425 from ReinUsesLisp/geometry-shaders (diff)
parentImplement Scissor Test (diff)
downloadyuzu-03ec936ca007364e2c287f78dbbe8c5551dc2234.tar
yuzu-03ec936ca007364e2c287f78dbbe8c5551dc2234.tar.gz
yuzu-03ec936ca007364e2c287f78dbbe8c5551dc2234.tar.bz2
yuzu-03ec936ca007364e2c287f78dbbe8c5551dc2234.tar.lz
yuzu-03ec936ca007364e2c287f78dbbe8c5551dc2234.tar.xz
yuzu-03ec936ca007364e2c287f78dbbe8c5551dc2234.tar.zst
yuzu-03ec936ca007364e2c287f78dbbe8c5551dc2234.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 4290da33f..20e1884da 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -532,7 +532,21 @@ public:
INSERT_PADDING_WORDS(0x3);
s32 clear_stencil;
- INSERT_PADDING_WORDS(0x6C);
+ INSERT_PADDING_WORDS(0x17);
+
+ struct {
+ u32 enable;
+ union {
+ BitField<0, 16, u32> min_x;
+ BitField<16, 16, u32> max_x;
+ };
+ union {
+ BitField<0, 16, u32> min_y;
+ BitField<16, 16, u32> max_y;
+ };
+ } scissor_test;
+
+ INSERT_PADDING_WORDS(0x52);
s32 stencil_back_func_ref;
u32 stencil_back_mask;
@@ -1002,6 +1016,7 @@ ASSERT_REG_POSITION(vertex_buffer, 0x35D);
ASSERT_REG_POSITION(clear_color[0], 0x360);
ASSERT_REG_POSITION(clear_depth, 0x364);
ASSERT_REG_POSITION(clear_stencil, 0x368);
+ASSERT_REG_POSITION(scissor_test, 0x380);
ASSERT_REG_POSITION(stencil_back_func_ref, 0x3D5);
ASSERT_REG_POSITION(stencil_back_mask, 0x3D6);
ASSERT_REG_POSITION(stencil_back_func_mask, 0x3D7);