summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMihail Konev <k.mvc@ya.ru>2016-10-15 04:13:43 +0000
committerAdam Jackson <ajax@redhat.com>2016-10-26 12:40:18 -0400
commitf6ff2e974c5de3071c899eba828789f1d4d8645a (patch)
treeed0fbb70ac982f04c1f2e02016b77fe6ac63b5d4 /hw
parent8fee6a917b6468e1b116d922f86484498874fb5c (diff)
modesetting: fix glamor ifdef
Add a missing ifdef needed for --disable-glamor. Signed-off-by: Mihail Konev <k.mvc@ya.ru> Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/drivers/modesetting/driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c
index 216388f0a..3da69a396 100644
--- a/hw/xfree86/drivers/modesetting/driver.c
+++ b/hw/xfree86/drivers/modesetting/driver.c
@@ -594,6 +594,7 @@ redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty, int *timeout)
PixmapSyncDirtyHelper(dirty);
if (!screen->isGPU) {
+#ifdef GLAMOR
/*
* When copying from the master framebuffer to the shared pixmap,
* we must ensure the copy is complete before the slave starts a
@@ -602,6 +603,7 @@ redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty, int *timeout)
*/
if (ms->drmmode.glamor)
glamor_finish(screen);
+#endif
/* Ensure the slave processes the damage immediately */
if (timeout)
*timeout = 0;