From 7fe16571403c20ae69098e83b52a9320f79daf3e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 26 Jun 2023 08:43:33 -0400 Subject: [PATCH] zink: set feedback attachments on batch init just to be safe Part-of: --- src/gallium/drivers/zink/zink_batch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c index 9e1585e..b5f3cb6 100644 --- a/src/gallium/drivers/zink/zink_batch.c +++ b/src/gallium/drivers/zink/zink_batch.c @@ -510,8 +510,10 @@ zink_start_batch(struct zink_context *ctx, struct zink_batch *batch) if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_DB && !(ctx->flags & ZINK_CONTEXT_COPY_ONLY)) zink_batch_bind_db(ctx); /* zero init for unordered blits */ - if (screen->info.have_EXT_attachment_feedback_loop_dynamic_state) + if (screen->info.have_EXT_attachment_feedback_loop_dynamic_state) { + VKCTX(CmdSetAttachmentFeedbackLoopEnableEXT)(ctx->batch.state->cmdbuf, 0); VKCTX(CmdSetAttachmentFeedbackLoopEnableEXT)(ctx->batch.state->barrier_cmdbuf, 0); + } } /* common operations to run post submit; split out for clarity */ -- 2.7.4