turnip: Fix the "written stencil is unmodified" check.
We want to know if anything writes stencil, not if all of them do.
Fixes: b2a60c157e ("turnip: add LRZ early-z support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18691>
This commit is contained in:
@@ -4252,13 +4252,13 @@ tu6_writes_stencil(struct tu_cmd_buffer *cmd)
|
||||
(cmd->state.rb_stencil_cntl & A6XX_RB_STENCIL_CONTROL_ZFAIL_BF__MASK) >> A6XX_RB_STENCIL_CONTROL_ZFAIL_BF__SHIFT;
|
||||
|
||||
bool stencil_front_op_writes =
|
||||
front_pass_op != VK_STENCIL_OP_KEEP &&
|
||||
front_fail_op != VK_STENCIL_OP_KEEP &&
|
||||
front_pass_op != VK_STENCIL_OP_KEEP ||
|
||||
front_fail_op != VK_STENCIL_OP_KEEP ||
|
||||
front_depth_fail_op != VK_STENCIL_OP_KEEP;
|
||||
|
||||
bool stencil_back_op_writes =
|
||||
back_pass_op != VK_STENCIL_OP_KEEP &&
|
||||
back_fail_op != VK_STENCIL_OP_KEEP &&
|
||||
back_pass_op != VK_STENCIL_OP_KEEP ||
|
||||
back_fail_op != VK_STENCIL_OP_KEEP ||
|
||||
back_depth_fail_op != VK_STENCIL_OP_KEEP;
|
||||
|
||||
return stencil_test_enable &&
|
||||
|
||||
Reference in New Issue
Block a user