Mesa (main): zink: move draw-time barrier generation down a little
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 20 01:10:29 UTC 2022
Module: Mesa
Branch: main
Commit: 7b88dbfd785ae25fcea022290ab3b17eaea4cc94
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b88dbfd785ae25fcea022290ab3b17eaea4cc94
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Fri Jun 17 10:14:00 2022 -0400
zink: move draw-time barrier generation down a little
ensure that this occurs after potential rebind handling
Acked-by: Dave Airlie <airlied at redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17111>
---
src/gallium/drivers/zink/zink_draw.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
*/
More information about the mesa-commit
mailing list