Mesa (main): zink: flag dmabufs for foreign queue transition on flush_resource call

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 22 20:58:47 UTC 2022


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Thu Apr  7 18:03:06 2022 -0400

zink: flag dmabufs for foreign queue transition on flush_resource call

this is needed by ext_external_objects

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15810>

---

 src/gallium/drivers/zink/zink_context.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index 89bf9d0d5b8..0c76dd79969 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -3379,7 +3379,8 @@ zink_flush_resource(struct pipe_context *pctx,
          ctx->needs_present = res;
       }
       ctx->batch.swapchain = res;
-   }
+   } else if (res->dmabuf)
+      res->dmabuf_acquire = true;
 }
 
 void



More information about the mesa-commit mailing list