mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
turnip: Use hw enum when emitting A6XX_RB_STENCIL_CONTROL
We're hard-coding this value, so let's use the hw enum and avoid a warning. src/freedreno/vulkan/tu_clear_blit.c:2091:19: warning: implicit conversion from enumeration type 'enum VkStencilOp' to different enumeration type 'enum adreno_stencil_op' [-Wenum-conversion] Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5174>
This commit is contained in:
parent
6aa3004d60
commit
fff17707ea
1 changed files with 1 additions and 1 deletions
|
|
@ -2088,7 +2088,7 @@ tu_clear_sysmem_attachments(struct tu_cmd_buffer *cmd,
|
|||
tu_cs_emit_regs(cs, A6XX_RB_STENCIL_CONTROL(
|
||||
.stencil_enable = s_clear,
|
||||
.func = FUNC_ALWAYS,
|
||||
.zpass = VK_STENCIL_OP_REPLACE));
|
||||
.zpass = STENCIL_REPLACE));
|
||||
tu_cs_emit_regs(cs, A6XX_RB_STENCILMASK(.mask = 0xff));
|
||||
tu_cs_emit_regs(cs, A6XX_RB_STENCILWRMASK(.wrmask = 0xff));
|
||||
tu_cs_emit_regs(cs, A6XX_RB_STENCILREF(.ref = s_clear_val));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue