modesetting: fix build with glamor disabled.
Fix build without --enable-glamor. Caught by the arm tinderbox. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org> Tested-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
66fdeb880a
commit
7f0494671f
|
@ -287,6 +287,7 @@ drmmode_crtc_dpms(xf86CrtcPtr crtc, int mode)
|
|||
drmmode_crtc->dpms_mode = mode;
|
||||
}
|
||||
|
||||
#ifdef GLAMOR
|
||||
static PixmapPtr
|
||||
create_pixmap_for_fbcon(drmmode_ptr drmmode, ScrnInfoPtr pScrn, int fbcon_id)
|
||||
{
|
||||
|
@ -331,10 +332,12 @@ out_free_fb:
|
|||
drmModeFreeFB(fbcon);
|
||||
return pixmap;
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
drmmode_copy_fb(ScrnInfoPtr pScrn, drmmode_ptr drmmode)
|
||||
{
|
||||
#ifdef GLAMOR
|
||||
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn);
|
||||
ScreenPtr pScreen = xf86ScrnToScreen(pScrn);
|
||||
PixmapPtr src, dst;
|
||||
|
@ -381,6 +384,7 @@ drmmode_copy_fb(ScrnInfoPtr pScrn, drmmode_ptr drmmode)
|
|||
if (drmmode->fbcon_pixmap)
|
||||
pScrn->pScreen->DestroyPixmap(drmmode->fbcon_pixmap);
|
||||
drmmode->fbcon_pixmap = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
static Bool
|
||||
|
|
Loading…
Reference in New Issue