summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2014-12-30 11:51:43 -0800
committerKeith Packard <keithp@keithp.com>2015-01-01 10:52:30 -0800
commit66726064204b869a24e5a8dc6e24daa5acb92bab (patch)
tree7204d5fcc1c947837fbcb7d33ab995715cdc8ca8
parentd723928870eea9fc2554abe137d6e57f7ad29e98 (diff)
modesetting: Fix build with --disable-glamor.
present.c: In function 'ms_present_flush': present.c:204:9: error: implicit declaration of function 'glamor_block_handler' Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=87858 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net> Reviewed-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--hw/xfree86/drivers/modesetting/present.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/drivers/modesetting/present.c b/hw/xfree86/drivers/modesetting/present.c
index 63d7b76fd..359e11316 100644
--- a/hw/xfree86/drivers/modesetting/present.c
+++ b/hw/xfree86/drivers/modesetting/present.c
@@ -196,12 +196,14 @@ ms_present_abort_vblank(RRCrtcPtr crtc, uint64_t event_id, uint64_t msc)
static void
ms_present_flush(WindowPtr window)
{
+#ifdef GLAMOR
ScreenPtr screen = window->drawable.pScreen;
ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
modesettingPtr ms = modesettingPTR(scrn);
if (ms->drmmode.glamor)
glamor_block_handler(screen);
+#endif
}
static present_screen_info_rec ms_present_screen_info = {