summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaith Ekstrand <faith.ekstrand@collabora.com>2025-03-06 18:44:59 -0600
committerMarge Bot <marge-bot@fdo.invalid>2025-07-03 10:29:33 +0000
commit376cef6710c1acbde8b141c5e1a2bdc4380af29b (patch)
tree7b564419cb4071bf61dadd4d952c86f5fdbc362c
parenta4df68688871e2ba4cd268633d220bd27adb8374 (diff)
glamor: Enable dma-buf on ZinkHEADmaster
Zink badly needs dma-buf and modifiers as it can't handle BO import of tiled buffers without modifiers. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1857>
-rw-r--r--glamor/glamor_egl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c
index 668eddc86..5302df675 100644
--- a/glamor/glamor_egl.c
+++ b/glamor/glamor_egl.c
@@ -1218,6 +1218,8 @@ glamor_egl_init(ScrnInfoPtr scrn, int fd)
"dmabuf_capable");
else if (strstr((const char *)renderer, "Intel"))
glamor_egl->dmabuf_capable = TRUE;
+ else if (strstr((const char *)renderer, "zink"))
+ glamor_egl->dmabuf_capable = TRUE;
else
glamor_egl->dmabuf_capable = FALSE;
}