diff --git a/src/gallium/drivers/zink/zink_draw.cpp b/src/gallium/drivers/zink/zink_draw.cpp index 522b41cd192..3aad929e667 100644 --- a/src/gallium/drivers/zink/zink_draw.cpp +++ b/src/gallium/drivers/zink/zink_draw.cpp @@ -484,7 +484,6 @@ zink_draw(struct pipe_context *pctx, if (ctx->memory_barrier) zink_flush_memory_barrier(ctx, false); - update_barriers(ctx, false); if (unlikely(ctx->buffer_rebind_counter < screen->buffer_rebind_counter)) { ctx->buffer_rebind_counter = screen->buffer_rebind_counter; @@ -535,6 +534,7 @@ zink_draw(struct pipe_context *pctx, } } + update_barriers(ctx, false); /* ensure synchronization between doing streamout with counter buffer * and using counter buffer for indirect draw */