mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 05:40:35 +01:00
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 <sultan@kerneltoast.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2091>
This commit is contained in:
parent
3d5c955337
commit
0b0b59d711
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue