From 2ccb24757a078bca4b98a660d473acc967d8bcbc Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 1 Apr 2022 13:25:49 -0400 Subject: [PATCH] zink: merge stencil test case for draw-time dynamic state these cases were identical but using different conditionals Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_draw.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_draw.cpp b/src/gallium/drivers/zink/zink_draw.cpp index 0adc8a99ee7..58a39a1acf0 100644 --- a/src/gallium/drivers/zink/zink_draw.cpp +++ b/src/gallium/drivers/zink/zink_draw.cpp @@ -689,8 +689,6 @@ zink_draw(struct pipe_context *pctx, dsa_state->hw_state.stencil_back.passOp, dsa_state->hw_state.stencil_back.depthFailOp, dsa_state->hw_state.stencil_back.compareOp); - } - if (dsa_state->base.stencil[0].enabled) { if (dsa_state->base.stencil[1].enabled) { VKCTX(CmdSetStencilWriteMask)(batch->state->cmdbuf, VK_STENCIL_FACE_FRONT_BIT, dsa_state->hw_state.stencil_front.writeMask); VKCTX(CmdSetStencilWriteMask)(batch->state->cmdbuf, VK_STENCIL_FACE_BACK_BIT, dsa_state->hw_state.stencil_back.writeMask);