diff options
author | Łukasz Spintzyk <lukasz.spintzyk@synaptics.com> | 2021-07-22 13:12:05 +0200 |
---|---|---|
committer | Łukasz Spintzyk <lukasz.spintzyk@synaptics.com> | 2021-07-22 13:24:21 +0200 |
commit | 8836b9d243444031b6396d39d345f2f83b5fa6a9 (patch) | |
tree | c29e0466936e6882b3e1728c8f090cfa8c081a22 /hw/xfree86/drivers | |
parent | d6c02ffd9c910637f6b3b7249507998e9e45f93c (diff) |
modesetting: unflip not possible when glamor is not set
This is fixing crashes of xfce when running under qemu
Diffstat (limited to 'hw/xfree86/drivers')
-rw-r--r-- | hw/xfree86/drivers/modesetting/present.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xfree86/drivers/modesetting/present.c b/hw/xfree86/drivers/modesetting/present.c index f0a0e2704..916a15303 100644 --- a/hw/xfree86/drivers/modesetting/present.c +++ b/hw/xfree86/drivers/modesetting/present.c @@ -272,6 +272,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 = ms->glamor.gbm_bo_from_pixmap(screen, pixmap); |