From 9a1aa56cfb2d4080aef5ddedc997a0ca3c4aa97b Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Thu, 30 Oct 2025 16:40:50 +0800 Subject: [PATCH] glamor: enable dmabuf_capable by default for radeonsi This is needed by radeonsi to support multi plane modifier when using modesetting DDX. xserver reject any multi plane buffer (in DRI3PixmapFromBuffers) without the dmabuf_capable debug option. It's OK for single plane buffer as xserver will fallback to DRI3BufferFromPixmap path. amdgpu DDX does not expose DRI3PixmapFromBuffers, mesa just use the single plane path anyway, so amdgpu DDX does not have this problem. --- glamor/glamor_egl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c index 2fc63ba46..01a60211b 100644 --- a/glamor/glamor_egl.c +++ b/glamor/glamor_egl.c @@ -1220,6 +1220,8 @@ glamor_egl_init(ScrnInfoPtr scrn, int fd) glamor_egl->dmabuf_capable = TRUE; else if (strstr((const char *)renderer, "zink")) glamor_egl->dmabuf_capable = TRUE; + else if (strstr((const char *)renderer, "radeonsi")) + glamor_egl->dmabuf_capable = TRUE; else glamor_egl->dmabuf_capable = FALSE; }