summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2018-07-21 01:54:47 -0400
committerGravatar bunnei2018-07-21 21:51:05 -0400
commit5287991a36b84e05ec7982da6868841602906dea (patch)
treee5c364ad7aa5685edbf83ea7652eb555a702e32e
parentMerge pull request #759 from lioncash/redundant (diff)
downloadyuzu-5287991a36b84e05ec7982da6868841602906dea.tar.gz
yuzu-5287991a36b84e05ec7982da6868841602906dea.tar.xz
yuzu-5287991a36b84e05ec7982da6868841602906dea.zip
maxwell_3d: Add depth buffer enable, width, and height registers.
Diffstat (limited to '')
-rw-r--r--src/video_core/engines/maxwell_3d.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index dbd106c53..3c32f1067 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -487,7 +487,12 @@ public:
487 }; 487 };
488 } rt_control; 488 } rt_control;
489 489
490 INSERT_PADDING_WORDS(0x2B); 490 INSERT_PADDING_WORDS(0x2);
491
492 u32 zeta_width;
493 u32 zeta_height;
494
495 INSERT_PADDING_WORDS(0x27);
491 496
492 u32 depth_test_enable; 497 u32 depth_test_enable;
493 498
@@ -540,7 +545,11 @@ public:
540 545
541 u32 vb_element_base; 546 u32 vb_element_base;
542 547
543 INSERT_PADDING_WORDS(0x49); 548 INSERT_PADDING_WORDS(0x40);
549
550 u32 zeta_enable;
551
552 INSERT_PADDING_WORDS(0x8);
544 553
545 struct { 554 struct {
546 u32 tsc_address_high; 555 u32 tsc_address_high;
@@ -865,6 +874,8 @@ ASSERT_REG_POSITION(clear_depth, 0x364);
865ASSERT_REG_POSITION(zeta, 0x3F8); 874ASSERT_REG_POSITION(zeta, 0x3F8);
866ASSERT_REG_POSITION(vertex_attrib_format[0], 0x458); 875ASSERT_REG_POSITION(vertex_attrib_format[0], 0x458);
867ASSERT_REG_POSITION(rt_control, 0x487); 876ASSERT_REG_POSITION(rt_control, 0x487);
877ASSERT_REG_POSITION(zeta_width, 0x48a);
878ASSERT_REG_POSITION(zeta_height, 0x48b);
868ASSERT_REG_POSITION(depth_test_enable, 0x4B3); 879ASSERT_REG_POSITION(depth_test_enable, 0x4B3);
869ASSERT_REG_POSITION(independent_blend_enable, 0x4B9); 880ASSERT_REG_POSITION(independent_blend_enable, 0x4B9);
870ASSERT_REG_POSITION(depth_write_enabled, 0x4BA); 881ASSERT_REG_POSITION(depth_write_enabled, 0x4BA);
@@ -874,6 +885,7 @@ ASSERT_REG_POSITION(blend, 0x4CF);
874ASSERT_REG_POSITION(stencil, 0x4E0); 885ASSERT_REG_POSITION(stencil, 0x4E0);
875ASSERT_REG_POSITION(screen_y_control, 0x4EB); 886ASSERT_REG_POSITION(screen_y_control, 0x4EB);
876ASSERT_REG_POSITION(vb_element_base, 0x50D); 887ASSERT_REG_POSITION(vb_element_base, 0x50D);
888ASSERT_REG_POSITION(zeta_enable, 0x54E);
877ASSERT_REG_POSITION(tsc, 0x557); 889ASSERT_REG_POSITION(tsc, 0x557);
878ASSERT_REG_POSITION(tic, 0x55D); 890ASSERT_REG_POSITION(tic, 0x55D);
879ASSERT_REG_POSITION(stencil_two_side, 0x565); 891ASSERT_REG_POSITION(stencil_two_side, 0x565);