diff options
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r-- | src/nv_driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c index 01bd471..741f8cb 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -27,6 +27,7 @@ #include "xf86int10.h" #include "xf86drm.h" +#include "xorg-server.h" /* * Forward definitions for the functions that make up the driver. @@ -1951,7 +1952,9 @@ NVScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) /* First init DRI/DRM */ if (!NVDRIScreenInit(pScrn)) return FALSE; +#ifdef DRI2 nouveau_dri2_init(pScreen); +#endif /* Allocate and map memory areas we need */ if (!NVMapMem(pScrn)) |