mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
zink: fix stencil wrapping
this was using the wrong enums Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7176>
This commit is contained in:
parent
b17e264e66
commit
aea74eac3d
1 changed files with 2 additions and 2 deletions
|
|
@ -305,8 +305,8 @@ stencil_op(enum pipe_stencil_op op)
|
|||
case PIPE_STENCIL_OP_REPLACE: return VK_STENCIL_OP_REPLACE;
|
||||
case PIPE_STENCIL_OP_INCR: return VK_STENCIL_OP_INCREMENT_AND_CLAMP;
|
||||
case PIPE_STENCIL_OP_DECR: return VK_STENCIL_OP_DECREMENT_AND_CLAMP;
|
||||
case PIPE_STENCIL_OP_INCR_WRAP: return VK_STENCIL_OP_INCREMENT_AND_CLAMP;
|
||||
case PIPE_STENCIL_OP_DECR_WRAP: return VK_STENCIL_OP_DECREMENT_AND_CLAMP;
|
||||
case PIPE_STENCIL_OP_INCR_WRAP: return VK_STENCIL_OP_INCREMENT_AND_WRAP;
|
||||
case PIPE_STENCIL_OP_DECR_WRAP: return VK_STENCIL_OP_DECREMENT_AND_WRAP;
|
||||
case PIPE_STENCIL_OP_INVERT: return VK_STENCIL_OP_INVERT;
|
||||
}
|
||||
unreachable("unexpected op");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue