mirror of
https://github.com/X11Libre/xf86-video-vmware.git
synced 2026-03-24 01:24:37 +00:00
vmwgfx: Fix compilation failure if dri3 is not available
Compilation on CentOS failed due to some code not being conditioned on DRI3 headers being present. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Deepak Rawat <drawat@vmware.com>
This commit is contained in:
@@ -623,10 +623,12 @@ drv_pre_init(ScrnInfoPtr pScrn, int flags)
|
||||
goto out_modes;
|
||||
}
|
||||
|
||||
#ifdef DRI3
|
||||
if (!xf86LoadSubModule(pScrn, "dri3")) {
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Failed to load dri3 module.\n");
|
||||
goto out_modes;
|
||||
}
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
|
||||
@@ -1094,7 +1096,9 @@ drv_screen_init(SCREEN_INIT_ARGS_DECL)
|
||||
}
|
||||
|
||||
ms->dri2_available = FALSE;
|
||||
#ifdef DRI3
|
||||
ms->dri3_available = FALSE;
|
||||
#endif
|
||||
if (ms->enable_dri) {
|
||||
if (ms->xat) {
|
||||
ms->dri2_available = xorg_dri2_init(pScreen);
|
||||
|
||||
Reference in New Issue
Block a user