From bbae237258a40c370caffb58602745f1d36f66ba Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 7 Feb 2023 12:50:10 -0500 Subject: [PATCH] zink: set zs feedback loop bit from driver workaround on ctx create this may otherwise not be set until the cache has been broken Fixes: 56fb2580642 ("zink: replace mixed_zs with zs feedback loops") Reviewed-by: Emma Anholt Part-of: --- src/gallium/drivers/zink/zink_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 31df10212bb..d9bfc965a62 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -5068,6 +5068,7 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) ctx->gfx_pipeline_state.rendering_info.sType = VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO; ctx->gfx_pipeline_state.rendering_info.pColorAttachmentFormats = ctx->gfx_pipeline_state.rendering_formats; ctx->gfx_pipeline_state.feedback_loop = screen->driver_workarounds.always_feedback_loop; + ctx->gfx_pipeline_state.feedback_loop_zs = screen->driver_workarounds.always_feedback_loop_zs; const uint32_t data[] = {0}; if (!is_copy_only) {