targets/dri: cleanup conversion leftovers
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Jun 2014 23:16:46 +0000 (00:16 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 10 Jul 2014 00:06:48 +0000 (01:06 +0100)
With all the users converted to __driGetExtensions_* we can
have only a single inclusion of the required header + define.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Tested-by: Rob Clark <robclark@freedesktop.org>
Tested-by: Thomas Helland <thomashelland90 at gmail.com>
Acked-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/auxiliary/target-helpers/inline_drm_helper.h
src/gallium/targets/dri/Makefile.am

index d9c65bdf6c90e927e6380928a8a59c6e4b14cc91..bdd8669ff8680e489b8c51e42ca81a4fa886022d 100644 (file)
@@ -4,6 +4,9 @@
 #include "state_tracker/drm_driver.h"
 #include "target-helpers/inline_debug_helper.h"
 #include "loader.h"
+#if defined(DRI_TARGET)
+#include "dri_screen.h"
+#endif
 
 #if GALLIUM_I915
 #include "i915/drm/i915_drm_public.h"
@@ -52,7 +55,6 @@ static char* driver_name = NULL;
 
 #if defined(GALLIUM_I915)
 #if defined(DRI_TARGET)
-#include "dri_screen.h"
 
 const __DRIextension **__driDriverGetExtensions_i915(void);
 
@@ -80,7 +82,6 @@ pipe_i915_create_screen(int fd)
 
 #if defined(GALLIUM_ILO)
 #if defined(DRI_TARGET)
-#include "dri_screen.h"
 
 const __DRIextension **__driDriverGetExtensions_i965(void);
 
@@ -108,7 +109,6 @@ pipe_ilo_create_screen(int fd)
 
 #if defined(GALLIUM_NOUVEAU)
 #if defined(DRI_TARGET)
-#include "dri_screen.h"
 
 const __DRIextension **__driDriverGetExtensions_nouveau(void);
 
@@ -131,7 +131,6 @@ pipe_nouveau_create_screen(int fd)
 
 #if defined(GALLIUM_R300)
 #if defined(DRI_TARGET)
-#include "dri_screen.h"
 
 const __DRIextension **__driDriverGetExtensions_r300(void);
 
@@ -154,7 +153,6 @@ pipe_r300_create_screen(int fd)
 
 #if defined(GALLIUM_R600)
 #if defined(DRI_TARGET)
-#include "dri_screen.h"
 
 const __DRIextension **__driDriverGetExtensions_r600(void);
 
@@ -177,7 +175,6 @@ pipe_r600_create_screen(int fd)
 
 #if defined(GALLIUM_RADEONSI)
 #if defined(DRI_TARGET)
-#include "dri_screen.h"
 
 const __DRIextension **__driDriverGetExtensions_radeonsi(void);
 
@@ -200,7 +197,6 @@ pipe_radeonsi_create_screen(int fd)
 
 #if defined(GALLIUM_VMWGFX)
 #if defined(DRI_TARGET)
-#include "dri_screen.h"
 
 const __DRIextension **__driDriverGetExtensions_vmwgfx(void);
 
@@ -228,7 +224,6 @@ pipe_vmwgfx_create_screen(int fd)
 
 #if defined(GALLIUM_FREEDRENO)
 #if defined(DRI_TARGET)
-#include "dri_screen.h"
 
 const __DRIextension **__driDriverGetExtensions_freedreno(void);
 
index bb10e8d9ed5dcaec171b790e7639efdec4079984..090103e581b7e93c949f111e3f5d554416ec941c 100644 (file)
@@ -8,41 +8,12 @@ AM_CFLAGS = \
        $(GALLIUM_TARGET_CFLAGS)
 
 AM_CPPFLAGS = \
+       -DDRI_TARGET \
        -DGALLIUM_GALAHAD \
        -DGALLIUM_NOOP \
        -DGALLIUM_RBUG \
        -DGALLIUM_TRACE
 
-if HAVE_GALLIUM_I915
-AM_CPPFLAGS += \
-       -DDRI_TARGET
-endif
-
-if HAVE_GALLIUM_ILO
-AM_CPPFLAGS += \
-       -DDRI_TARGET
-endif
-
-if HAVE_GALLIUM_NOUVEAU
-AM_CPPFLAGS += \
-       -DDRI_TARGET
-endif
-
-if NEED_RADEON_DRM_WINSYS
-AM_CPPFLAGS += \
-       -DDRI_TARGET
-endif
-
-if HAVE_GALLIUM_SVGA
-AM_CPPFLAGS += \
-       -DDRI_TARGET
-endif
-
-if HAVE_GALLIUM_FREEDRENO
-AM_CPPFLAGS += \
-       -DDRI_TARGET
-endif
-
 dridir = $(DRI_DRIVER_INSTALL_DIR)
 dri_LTLIBRARIES = gallium_dri.la