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>
This commit is contained in:
parent
d723928870
commit
6672606420
|
@ -196,12 +196,14 @@ ms_present_abort_vblank(RRCrtcPtr crtc, uint64_t event_id, uint64_t msc)
|
||||||
static void
|
static void
|
||||||
ms_present_flush(WindowPtr window)
|
ms_present_flush(WindowPtr window)
|
||||||
{
|
{
|
||||||
|
#ifdef GLAMOR
|
||||||
ScreenPtr screen = window->drawable.pScreen;
|
ScreenPtr screen = window->drawable.pScreen;
|
||||||
ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
|
ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
|
||||||
modesettingPtr ms = modesettingPTR(scrn);
|
modesettingPtr ms = modesettingPTR(scrn);
|
||||||
|
|
||||||
if (ms->drmmode.glamor)
|
if (ms->drmmode.glamor)
|
||||||
glamor_block_handler(screen);
|
glamor_block_handler(screen);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static present_screen_info_rec ms_present_screen_info = {
|
static present_screen_info_rec ms_present_screen_info = {
|
||||||
|
|
Loading…
Reference in New Issue