summaryrefslogtreecommitdiff
path: root/src/nv_driver.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2009-01-14 11:09:36 +1000
committerBen Skeggs <skeggsb@gmail.com>2009-01-14 11:09:36 +1000
commit64a7dcc11386f0582b028084ed2de05245b33778 (patch)
tree5ba42dc5d12b989210cbd20b11d84fe4e3a49803 /src/nv_driver.c
parent28568062e3cc08e0dea44d63a2248c40b371e704 (diff)
downloadxorg-driver-xf86-video-nouveau-ng.tar.gz
dri2: only build if server supports itng
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r--src/nv_driver.c3
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))