Mesa (main): zink: flag batch as having work during frontbuffer flush

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 28 02:57:46 UTC 2022


Module: Mesa
Branch: main
Commit: fbaca89cd9ed4ca774938372752e71507126a66b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbaca89cd9ed4ca774938372752e71507126a66b

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Tue Jun 21 15:16:14 2022 -0400

zink: flag batch as having work during frontbuffer flush

avoids having the flush deferred

Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17149>

---

 src/gallium/drivers/zink/zink_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index b3b53ae7686..4f8db05b002 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -1431,6 +1431,7 @@ zink_flush_frontbuffer(struct pipe_screen *pscreen,
    pctx = trace_get_possibly_threaded_context(pctx);
    ctx = zink_context(pctx);
    if (ctx->batch.swapchain) {
+      ctx->batch.has_work = true;
       pctx->flush(pctx, NULL, 0);
       if (ctx->last_fence && screen->threaded) {
          struct zink_batch_state *bs = zink_batch_state(ctx->last_fence);



More information about the mesa-commit mailing list