mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
turnip/lrz: added support for depth bounds test enable
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8615>
This commit is contained in:
parent
2161aebf8d
commit
d52917f858
1 changed files with 3 additions and 1 deletions
|
|
@ -3280,6 +3280,7 @@ tu6_calculate_lrz_state(struct tu_cmd_buffer *cmd,
|
|||
gras_lrz_cntl.enable = cmd->state.rb_depth_cntl & A6XX_RB_DEPTH_CNTL_Z_ENABLE;
|
||||
gras_lrz_cntl.lrz_write = cmd->state.rb_depth_cntl & A6XX_RB_DEPTH_CNTL_Z_WRITE_ENABLE;
|
||||
gras_lrz_cntl.z_test_enable = cmd->state.rb_depth_cntl & A6XX_RB_DEPTH_CNTL_Z_TEST_ENABLE;
|
||||
gras_lrz_cntl.z_bounds_enable = cmd->state.rb_depth_cntl & A6XX_RB_DEPTH_CNTL_Z_BOUNDS_ENABLE;
|
||||
|
||||
VkCompareOp depth_compare_op = (cmd->state.rb_depth_cntl & A6XX_RB_DEPTH_CNTL_ZFUNC__MASK) >> A6XX_RB_DEPTH_CNTL_ZFUNC__SHIFT;
|
||||
tu6_lrz_depth_mode(&gras_lrz_cntl, depth_compare_op, &invalidate_lrz);
|
||||
|
|
@ -3318,7 +3319,8 @@ tu6_build_lrz(struct tu_cmd_buffer *cmd)
|
|||
.enable = gras_lrz_cntl.enable,
|
||||
.greater = gras_lrz_cntl.greater,
|
||||
.lrz_write = gras_lrz_cntl.lrz_write,
|
||||
.z_test_enable = gras_lrz_cntl.z_test_enable));
|
||||
.z_test_enable = gras_lrz_cntl.z_test_enable,
|
||||
.z_bounds_enable = gras_lrz_cntl.z_bounds_enable));
|
||||
tu_cs_emit_regs(&lrz_cs, A6XX_RB_LRZ_CNTL(.enable = gras_lrz_cntl.enable));
|
||||
|
||||
return ds;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue