summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorƁukasz Spintzyk <lukasz.spintzyk@synaptics.com>2021-07-22 13:12:05 +0200
committerYour Name <you@example.com>2021-07-29 11:55:40 +0200
commitf85e4edba489316950fc3422f39e3c2ef8fb1ac5 (patch)
tree2e0a0cb96f47bcd539171fab8c8618f7ed735703
parentb03d7184b7906121a432b05473675937ab6c0f1e (diff)
modesetting: unflip not possible when glamor is not set
This is fixing crashes of xfce when running under qemu (cherry picked from commit 8836b9d243444031b6396d39d345f2f83b5fa6a9)
-rw-r--r--hw/xfree86/drivers/modesetting/present.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xfree86/drivers/modesetting/present.c b/hw/xfree86/drivers/modesetting/present.c
index 02671c594..186309a29 100644
--- a/hw/xfree86/drivers/modesetting/present.c
+++ b/hw/xfree86/drivers/modesetting/present.c
@@ -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);