From 1ae26de36f51520d4285777c435e918b31dc442a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 13 Oct 2022 16:29:27 -0400 Subject: [PATCH] zink: unset rp_changed after initializing renderpass attachments if fbfetch is setup here, it will flag rp_changed this is already inside renderpass setup, however, so just unset it to avoid erroneously trigering the assert cc: mesa-stable Part-of: --- src/gallium/drivers/zink/zink_render_pass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_render_pass.c b/src/gallium/drivers/zink/zink_render_pass.c index eb4b61f18e1..b1531a343ad 100644 --- a/src/gallium/drivers/zink/zink_render_pass.c +++ b/src/gallium/drivers/zink/zink_render_pass.c @@ -628,6 +628,8 @@ begin_render_pass(struct zink_context *ctx) infos.pAttachments = att; if (!prep_fb_attachments(ctx, att)) return 0; + /* this can be set if fbfetch is activated */ + ctx->rp_changed = false; #ifndef NDEBUG const unsigned cresolve_offset = ctx->fb_state.nr_cbufs + !!ctx->fb_state.zsbuf; for (int i = 0; i < ctx->fb_state.nr_cbufs; i++) {