zink: update query states before starting renderpass during draw

this gives some leeway for doing transfer ops without crashing the renderpass

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15227>
This commit is contained in:
Mike Blumenkrantz 2022-03-02 16:19:46 -05:00 committed by Marge Bot
parent 965ab44c50
commit 5aecec48ee
1 changed files with 2 additions and 2 deletions

View File

@ -564,6 +564,8 @@ zink_draw(struct pipe_context *pctx,
barrier_draw_buffers(ctx, dinfo, dindirect, index_buffer);
zink_query_update_gs_states(ctx);
zink_batch_rp(ctx);
if (BATCH_CHANGED)
@ -766,8 +768,6 @@ zink_draw(struct pipe_context *pctx,
else if (BATCH_CHANGED || ctx->vertex_buffers_dirty)
zink_bind_vertex_buffers<DYNAMIC_STATE>(batch, ctx);
zink_query_update_gs_states(ctx);
if (BATCH_CHANGED) {
ctx->pipeline_changed[0] = false;
zink_select_draw_vbo(ctx);