From: Mike Blumenkrantz Date: Fri, 17 Mar 2023 16:35:56 +0000 (-0400) Subject: zink: fix dsa state parsing for tc info X-Git-Tag: upstream/23.3.3~11384 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b9e9a54abb6a66b8d29b4e1d205372cd35f5892;p=platform%2Fupstream%2Fmesa.git zink: fix dsa state parsing for tc info stencil test implies zs write Part-of: --- diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 83bfdee..1ffd8d7 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -5284,7 +5284,7 @@ static void zink_tc_parse_dsa(void *state, struct tc_renderpass_info *info) { struct zink_depth_stencil_alpha_state *cso = state; - info->zsbuf_write_dsa |= (cso->hw_state.depth_write || cso->base.stencil[0].writemask || cso->base.stencil[1].writemask); + info->zsbuf_write_dsa |= (cso->hw_state.depth_write || cso->hw_state.stencil_test); info->zsbuf_read_dsa |= (cso->hw_state.depth_test || cso->hw_state.stencil_test); /* TODO: if zsbuf fbfetch is ever supported */ }