From d079e3c9b6dbababbd2621ba49a3cb6bc6ee1dca Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 15 Jul 2022 10:07:52 -0400 Subject: [PATCH] zink: don't try to start a renderpass before CmdClearAttachments it should be impossible to reach this point if a renderpass is not active Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_clear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_clear.c b/src/gallium/drivers/zink/zink_clear.c index 26ba2c1..c3d355e 100644 --- a/src/gallium/drivers/zink/zink_clear.c +++ b/src/gallium/drivers/zink/zink_clear.c @@ -101,7 +101,7 @@ clear_in_rp(struct pipe_context *pctx, cr.baseArrayLayer = 0; cr.layerCount = util_framebuffer_get_num_layers(fb); struct zink_batch *batch = &ctx->batch; - zink_batch_rp(ctx); + assert(batch->in_rp); VKCTX(CmdClearAttachments)(batch->state->cmdbuf, num_attachments, attachments, 1, &cr); /* Rendering within a subpass containing a feedback loop creates a data race, except in the following -- 2.7.4