mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
radv: remove unnecessary ternary expressions in radv_emit_depth_stencil_state()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37022>
This commit is contained in:
parent
1cbb9dc846
commit
a9cae4d43c
1 changed files with 2 additions and 2 deletions
|
|
@ -11408,8 +11408,8 @@ radv_emit_depth_stencil_state(struct radv_cmd_buffer *cmd_buffer)
|
|||
vk_optimize_depth_stencil_state(&ds, render->ds_att_aspects, true);
|
||||
|
||||
const uint32_t db_depth_control =
|
||||
S_028800_Z_ENABLE(ds.depth.test_enable ? 1 : 0) | S_028800_Z_WRITE_ENABLE(ds.depth.write_enable ? 1 : 0) |
|
||||
S_028800_ZFUNC(ds.depth.compare_op) | S_028800_DEPTH_BOUNDS_ENABLE(ds.depth.bounds_test.enable ? 1 : 0) |
|
||||
S_028800_Z_ENABLE(ds.depth.test_enable) | S_028800_Z_WRITE_ENABLE(ds.depth.write_enable) |
|
||||
S_028800_ZFUNC(ds.depth.compare_op) | S_028800_DEPTH_BOUNDS_ENABLE(ds.depth.bounds_test.enable) |
|
||||
S_028800_STENCIL_ENABLE(ds.stencil.test_enable) | S_028800_BACKFACE_ENABLE(ds.stencil.test_enable) |
|
||||
S_028800_STENCILFUNC(ds.stencil.front.op.compare) | S_028800_STENCILFUNC_BF(ds.stencil.back.op.compare);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue