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>
This commit is contained in:
Mihail Konev 2016-10-15 04:13:43 +00:00 committed by Adam Jackson
parent 8fee6a917b
commit f6ff2e974c

View File

@ -594,6 +594,7 @@ redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty, int *timeout)
PixmapSyncDirtyHelper(dirty); PixmapSyncDirtyHelper(dirty);
if (!screen->isGPU) { if (!screen->isGPU) {
#ifdef GLAMOR
/* /*
* When copying from the master framebuffer to the shared pixmap, * When copying from the master framebuffer to the shared pixmap,
* we must ensure the copy is complete before the slave starts a * 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) if (ms->drmmode.glamor)
glamor_finish(screen); glamor_finish(screen);
#endif
/* Ensure the slave processes the damage immediately */ /* Ensure the slave processes the damage immediately */
if (timeout) if (timeout)
*timeout = 0; *timeout = 0;