Skip to contentSkip to conversation

present: build only when glamor is enabled

PATCH Applied Marcin Slusarz 1 participant 1 message Jun 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 present: build only when glamor is enabled

nouveau_present_flip_exec references glamor_fd_from_pixmap, which do not exist when glamor is disabled

---
 src/nouveau_present.c | 2 +-
 src/nouveau_present.h | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
src/nouveau_present.c +1 -1
index b294bbe..38f2cac 100644
@@ -23,7 +23,7 @@
  */
 
 #include "nouveau_present.h"
-#ifdef DRI3
+#if defined(DRI3) && defined(HAVE_GLAMOR)
 #include "nv_include.h"
 #include "nouveau_glamor.h"
 #include "xf86drmMode.h"
src/nouveau_present.h +5 -1
index dea19ce..958c2f7 100644
@@ -4,7 +4,11 @@
 #include "xorg-server.h"
 #include "scrnintstr.h"
 
-#ifdef DRI3
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#if defined(DRI3) && defined(HAVE_GLAMOR)
 #include "present.h"
 Bool nouveau_present_init(ScreenPtr pScreen);
 void nouveau_present_fini(ScreenPtr pScreen);
Signature · 1 line
2.0.0