mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
zink: move draw-time barrier generation down a little
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>
This commit is contained in:
parent
dfea92f429
commit
5267efa259
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
@ -530,6 +529,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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue