zink: set feedback attachments on batch init

just to be safe

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23766>
This commit is contained in:
Mike Blumenkrantz
2023-06-26 08:43:33 -04:00
committed by Marge Bot
parent 7cbdb0b714
commit 7fe1657140

View File

@@ -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 */