ensure that this occurs after potential rebind handling
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17111>
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;
}
}
+ update_barriers(ctx, false);
/* ensure synchronization between doing streamout with counter buffer
* and using counter buffer for indirect draw
*/