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 <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17640>
This commit is contained in:
committed by
Marge Bot
parent
644f059a8d
commit
d079e3c9b6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user