From f28a1b3fcf248145db2a6ef1b43994c870b545ba Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Thu, 31 Oct 2024 03:04:04 +0900 Subject: [PATCH] asahi: Add PIPE_BIND_SHARED to imported resources Signed-off-by: Asahi Lina Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index a871eccb79c..a84b28dc25c 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -197,6 +197,8 @@ agx_resource_from_handle(struct pipe_screen *pscreen, pipe_reference_init(&prsc->reference, 1); prsc->screen = pscreen; + prsc->bind |= PIPE_BIND_SHARED; + rsc->bo = agx_bo_import(dev, whandle->handle); /* Sometimes an import can fail e.g. on an invalid buffer fd, out of * memory space to mmap it etc.