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

Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Sep  9 20:47:10 2021 -0400

zink: fix dmabuf cap export

this requires a lot more than just one extension

Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11967>

---

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

diff --git a/src/gallium/drivers/zink/zink_screen.c 
b/src/gallium/drivers/zink/zink_screen.c
index 5e79b1b87a3..4a1a219f2f9 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -650,7 +650,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap 
param)
       return MIN2(screen->info.props.limits.maxVertexOutputComponents / 4 / 2, 
16);
 
    case PIPE_CAP_DMABUF:
-      return screen->info.have_KHR_external_memory_fd;
+      return screen->info.have_KHR_external_memory_fd && 
screen->info.have_EXT_external_memory_dma_buf && 
screen->info.have_EXT_queue_family_foreign;
 
    case PIPE_CAP_DEPTH_BOUNDS_TEST:
       return screen->info.feats.features.depthBounds;

Reply via email to