target-helpers: Do not build kms_dri on libdrm-less platforms.

Fix build since 3b176c441b for
dri_platform=none hosts.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
Jon TURNEY 2014-07-31 16:30:37 +01:00 committed by Emil Velikov
parent b1eb00cd40
commit 095c37e472
2 changed files with 3 additions and 0 deletions

View 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)

View file

@ -8,6 +8,7 @@ AM_CFLAGS = \
$(GALLIUM_TARGET_CFLAGS)
AM_CPPFLAGS = \
$(DEFINES) \
-DDRI_TARGET \
-DGALLIUM_GALAHAD \
-DGALLIUM_NOOP \