diff options
| author | 2018-07-17 15:00:21 -0500 | |
|---|---|---|
| committer | 2018-07-17 15:00:21 -0500 | |
| commit | 3d3b10adc7b11355902c3e80709e229171747c7b (patch) | |
| tree | 885e7ac72c2dc5c15033eb3d1587b1d29243a983 | |
| parent | Merge pull request #673 from bunnei/fix-buffer-queue-evt (diff) | |
| download | yuzu-3d3b10adc7b11355902c3e80709e229171747c7b.tar.gz yuzu-3d3b10adc7b11355902c3e80709e229171747c7b.tar.xz yuzu-3d3b10adc7b11355902c3e80709e229171747c7b.zip | |
GPU: Added register definitions for the stencil parameters.
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 6f0170ff7..91b077005 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h | |||
| @@ -520,7 +520,18 @@ public: | |||
| 520 | u32 enable[NumRenderTargets]; | 520 | u32 enable[NumRenderTargets]; |
| 521 | } blend; | 521 | } blend; |
| 522 | 522 | ||
| 523 | INSERT_PADDING_WORDS(0xB); | 523 | struct { |
| 524 | u32 enable; | ||
| 525 | u32 front_op_fail; | ||
| 526 | u32 front_op_zfail; | ||
| 527 | u32 front_op_zpass; | ||
| 528 | u32 front_func_func; | ||
| 529 | u32 front_func_ref; | ||
| 530 | u32 front_func_mask; | ||
| 531 | u32 front_mask; | ||
| 532 | } stencil; | ||
| 533 | |||
| 534 | INSERT_PADDING_WORDS(0x3); | ||
| 524 | 535 | ||
| 525 | union { | 536 | union { |
| 526 | BitField<4, 1, u32> triangle_rast_flip; | 537 | BitField<4, 1, u32> triangle_rast_flip; |
| @@ -556,7 +567,17 @@ public: | |||
| 556 | } | 567 | } |
| 557 | } tic; | 568 | } tic; |
| 558 | 569 | ||
| 559 | INSERT_PADDING_WORDS(0x21); | 570 | INSERT_PADDING_WORDS(0x5); |
| 571 | |||
| 572 | struct { | ||
| 573 | u32 enable; | ||
| 574 | u32 back_op_fail; | ||
| 575 | u32 back_op_zfail; | ||
| 576 | u32 back_op_zpass; | ||
| 577 | u32 back_func_func; | ||
| 578 | } stencil_two_side; | ||
| 579 | |||
| 580 | INSERT_PADDING_WORDS(0x17); | ||
| 560 | 581 | ||
| 561 | union { | 582 | union { |
| 562 | BitField<2, 1, u32> coord_origin; | 583 | BitField<2, 1, u32> coord_origin; |
| @@ -851,10 +872,12 @@ ASSERT_REG_POSITION(depth_write_enabled, 0x4BA); | |||
| 851 | ASSERT_REG_POSITION(d3d_cull_mode, 0x4C2); | 872 | ASSERT_REG_POSITION(d3d_cull_mode, 0x4C2); |
| 852 | ASSERT_REG_POSITION(depth_test_func, 0x4C3); | 873 | ASSERT_REG_POSITION(depth_test_func, 0x4C3); |
| 853 | ASSERT_REG_POSITION(blend, 0x4CF); | 874 | ASSERT_REG_POSITION(blend, 0x4CF); |
| 875 | ASSERT_REG_POSITION(stencil, 0x4E0); | ||
| 854 | ASSERT_REG_POSITION(screen_y_control, 0x4EB); | 876 | ASSERT_REG_POSITION(screen_y_control, 0x4EB); |
| 855 | ASSERT_REG_POSITION(vb_element_base, 0x50D); | 877 | ASSERT_REG_POSITION(vb_element_base, 0x50D); |
| 856 | ASSERT_REG_POSITION(tsc, 0x557); | 878 | ASSERT_REG_POSITION(tsc, 0x557); |
| 857 | ASSERT_REG_POSITION(tic, 0x55D); | 879 | ASSERT_REG_POSITION(tic, 0x55D); |
| 880 | ASSERT_REG_POSITION(stencil_two_side, 0x565); | ||
| 858 | ASSERT_REG_POSITION(point_coord_replace, 0x581); | 881 | ASSERT_REG_POSITION(point_coord_replace, 0x581); |
| 859 | ASSERT_REG_POSITION(code_address, 0x582); | 882 | ASSERT_REG_POSITION(code_address, 0x582); |
| 860 | ASSERT_REG_POSITION(draw, 0x585); | 883 | ASSERT_REG_POSITION(draw, 0x585); |