target-helpers: Do not build kms_dri on libdrm-less platforms.
authorJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 31 Jul 2014 15:30:37 +0000 (16:30 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 1 Aug 2014 00:31:58 +0000 (01:31 +0100)
Fix build since 3b176c441b7ddc5f7d2f891da3f76cf3c1814ce1 for
dri_platform=none hosts.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/auxiliary/target-helpers/inline_drm_helper.h
src/gallium/targets/dri/Makefile.am

index 751ceb1e70ebbf2db1331b6e4a1ef2d94233c3b3..5d02da7290cf1efcababb912660d7ff8f50d9f70 100644 (file)
@@ -60,6 +60,7 @@ static char* driver_name = NULL;
 
 #if defined(GALLIUM_SOFTPIPE)
 #if defined(DRI_TARGET)
+#if defined(HAVE_LIBDRM)
 
 const __DRIextension **__driDriverGetExtensions_kms_swrast(void);
 
@@ -84,6 +85,7 @@ kms_swrast_create_screen(int fd)
 }
 #endif
 #endif
+#endif
 
 #if defined(GALLIUM_I915)
 #if defined(DRI_TARGET)
index c7fe4106ab01978820262932fa0de6ebbf64dae2..6ab15d8233c41cabdfd14d9b1315aaaa353bcdac 100644 (file)
@@ -8,6 +8,7 @@ AM_CFLAGS = \
        $(GALLIUM_TARGET_CFLAGS)
 
 AM_CPPFLAGS = \
+       $(DEFINES) \
        -DDRI_TARGET \
        -DGALLIUM_GALAHAD \
        -DGALLIUM_NOOP \