From 71f3205c31fa7a0c9aad5fc65b9dc577a18bff91 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 0b4eca0e1..7df5ead62 100644 --- a/glamor/glamor_egl.c +++ b/glamor/glamor_egl.c @@ -1290,6 +1290,8 @@ glamor_egl_init(ScrnInfoPtr scrn, int fd) glamor_egl->dmabuf_capable = TRUE; else if (strstr((const char *)renderer, "NVIDIA")) glamor_egl->dmabuf_capable = TRUE; + else if (strstr((const char *)renderer, "radeonsi")) + glamor_egl->dmabuf_capable = TRUE; else glamor_egl->dmabuf_capable = FALSE; }