diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2018-02-14 08:04:54 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2018-02-15 08:25:57 +0100 |
commit | 943548ac765e5dd49d275da2b72ff07b3a64694a (patch) | |
tree | a388af88ac27fa6d1de65cd809ce89726664411d | |
parent | 2d769dc01ea16df65d294f094bea5632e0b2a04e (diff) |
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>
-rw-r--r-- | vmwgfx/vmwgfx_driver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vmwgfx/vmwgfx_driver.c b/vmwgfx/vmwgfx_driver.c index 48d3d93..caff826 100644 --- a/vmwgfx/vmwgfx_driver.c +++ b/vmwgfx/vmwgfx_driver.c @@ -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); |