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:
Mike Blumenkrantz 2020-10-15 18:54:22 -04:00 committed by Marge Bot
parent b17e264e66
commit aea74eac3d

View file

@ -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");