Merge branch 'topic/enable-dmabuf-capable' into 'master'

Enable dmabuf_capable by default for radeonsi

See merge request xorg/xserver!2091
This commit is contained in:
Qiang Yu 2025-12-19 06:03:47 +00:00
commit 586128a114
2 changed files with 3 additions and 1 deletions

View file

@ -1223,6 +1223,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;
}

View file

@ -337,7 +337,7 @@ ms_present_check_flip(RRCrtcPtr crtc,
no_flip:
/* Export some info about TearFree if Present can't flip anyway */
if (reason) {
if (reason && *reason == PRESENT_FLIP_REASON_UNKNOWN) {
xf86CrtcPtr xf86_crtc = crtc->devPrivate;
drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
drmmode_tearfree_ptr trf = &drmmode_crtc->tearfree;