zink: update descriptor refs after starting renderpass

this ensures that swapchain images will have been acquired before potentially
accessing swapchain images bound as descriptors

fixes caselist like:
dEQP-GLES31.functional.fbo.color.texcubearray.r8ui
dEQP-GLES31.functional.primitive_bounding_box.blit_fbo.blit_default_to_fbo

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15173>
This commit is contained in:
Mike Blumenkrantz 2022-02-07 14:33:02 -05:00 committed by Marge Bot
parent f0398180a5
commit a179977b8e
1 changed files with 2 additions and 2 deletions

View File

@ -562,11 +562,11 @@ zink_draw(struct pipe_context *pctx,
barrier_draw_buffers(ctx, dinfo, dindirect, index_buffer);
zink_batch_rp(ctx);
if (BATCH_CHANGED)
zink_update_descriptor_refs(ctx, false);
zink_batch_rp(ctx);
/* these must be after renderpass start to avoid issues with recursion */
bool drawid_broken = false;
if (reads_drawid && (!dindirect || !dindirect->buffer))