modesetting: unflip not possible when glamor is not set
This is fixing crashes of xfce when running under qemu
(cherry picked from commit 8836b9d243
)
This commit is contained in:
parent
b03d7184b7
commit
f85e4edba4
|
@ -257,6 +257,9 @@ ms_present_check_unflip(RRCrtcPtr crtc,
|
|||
pixmap->devKind != drmmode_bo_get_pitch(&ms->drmmode.front_bo))
|
||||
return FALSE;
|
||||
|
||||
if (!ms->drmmode.glamor)
|
||||
return FALSE;
|
||||
|
||||
#ifdef GBM_BO_WITH_MODIFIERS
|
||||
/* Check if buffer format/modifier is supported by all active CRTCs */
|
||||
gbm = glamor_gbm_bo_from_pixmap(screen, pixmap);
|
||||
|
|
Loading…
Reference in New Issue