From 0b0b59d711199869eb0016eedc2c5e8d2ec5b7eb 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. Reviewed-by: Sultan Alsawaf Part-of: --- glamor/glamor_egl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c index fa2dbc6eb..048eff213 100644 --- a/glamor/glamor_egl.c +++ b/glamor/glamor_egl.c @@ -1222,6 +1222,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; }