st/egl: cleanup sw winsys header inclusions
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 18 Aug 2014 22:50:06 +0000 (23:50 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 28 Aug 2014 20:24:37 +0000 (21:24 +0100)
 - Drop duplicate include compiler directives.
 - Leave the sw/ prefix for all the software winsys headers.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/state_trackers/egl/Android.mk
src/gallium/state_trackers/egl/Makefile.am
src/gallium/state_trackers/egl/android/native_android.cpp
src/gallium/state_trackers/egl/fbdev/native_fbdev.c
src/gallium/state_trackers/egl/gdi/native_gdi.c
src/gallium/state_trackers/egl/null/native_null.c

index 7c4c93669c11f828cb2ce5c4385865d424d33894..d1987624622538365d75dbe0bc1a90efdda0f801 100644 (file)
@@ -39,7 +39,7 @@ LOCAL_CFLAGS := \
 
 LOCAL_C_INCLUDES := \
        $(GALLIUM_TOP)/state_trackers/egl \
-       $(GALLIUM_TOP)/winsys/sw \
+       $(GALLIUM_TOP)/winsys \
        $(MESA_TOP)/src/egl/main
 
 # swrast only
index 0ea218d37ce32889e3bb14b1d28127a2205ae5f4..3e917c1ac3ce223d94ee298de17b301e2eb830f8 100644 (file)
@@ -31,7 +31,8 @@ AM_CFLAGS = \
 
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/egl/main \
-       -I$(top_builddir)/src/egl/wayland/wayland-drm/
+       -I$(top_builddir)/src/egl/wayland/wayland-drm/ \
+       -I$(top_srcdir)/src/gallium/winsys
 
 noinst_LTLIBRARIES = libegl.la
 libegl_la_SOURCES = $(common_FILES)
@@ -43,8 +44,6 @@ AM_CFLAGS += \
        $(LIBDRM_CFLAGS) \
        $(DRI2PROTO_CFLAGS)
 AM_CPPFLAGS += \
-       -I$(top_srcdir)/src/gallium/winsys \
-       -I$(top_srcdir)/src/gallium/drivers \
        -I$(top_srcdir)/src/glx \
        -I$(top_srcdir)/src/mapi \
        -I$(top_srcdir)/src/mesa \
@@ -57,7 +56,6 @@ AM_CFLAGS += \
        $(LIBDRM_CFLAGS) \
        $(WAYLAND_CFLAGS)
 AM_CPPFLAGS += \
-       -I$(top_srcdir)/src/gallium/winsys \
        -I$(top_srcdir)/src/egl/wayland/wayland-egl \
        -I$(top_srcdir)/src/egl/wayland/wayland-drm \
        -I$(top_builddir)/src/egl/wayland/wayland-drm \
@@ -70,7 +68,6 @@ AM_CFLAGS += \
        $(LIBDRM_CFLAGS)
 AM_CPPFLAGS += \
        -I$(top_srcdir)/src/loader \
-       -I$(top_srcdir)/src/gallium/winsys \
        -I$(top_srcdir)/src/gbm/main \
        -I$(top_srcdir)/src/gallium/state_trackers/gbm \
        -DHAVE_DRM_BACKEND
@@ -79,14 +76,12 @@ endif
 if HAVE_EGL_PLATFORM_FBDEV
 libegl_la_SOURCES += $(fbdev_FILES)
 AM_CPPFLAGS += \
-       -I$(top_srcdir)/src/gallium/winsys/sw \
        -DHAVE_FBDEV_BACKEND
 endif
 
 if HAVE_EGL_PLATFORM_NULL
 libegl_la_SOURCES += $(null_FILES)
 AM_CPPFLAGS += \
-       -I$(top_srcdir)/src/gallium/winsys/sw \
        -DHAVE_NULL_BACKEND
 endif
 
index 889b64422850e9d813a98e310a25f227d534ea2f..1e1ec877613c072898b45731a148b4eece7b83b1 100644 (file)
@@ -65,8 +65,8 @@ extern "C" {
 #include "util/u_box.h"
 #include "common/native.h"
 #include "common/native_helper.h"
-#include "android/android_sw_winsys.h"
 #include "state_tracker/drm_driver.h"
+#include "sw/android/android_sw_winsys.h"
 
 struct android_config;
 
index b5c7b81a6988f9237e4b123da07e9ef1db013671..a6a254355ee14cb1e1868cdd3ff3ea524eb5d123 100644 (file)
@@ -54,7 +54,7 @@
 
 #include "common/native.h"
 #include "common/native_helper.h"
-#include "fbdev/fbdev_sw_winsys.h"
+#include "sw/fbdev/fbdev_sw_winsys.h"
 
 struct fbdev_display {
    struct native_display base;
index 9eb7c0f2b63b42da6185624f741215f3e041a38f..96d0ce41020b3c0a7e0893a4c2d56981e94c5170 100644 (file)
 #include "util/u_memory.h"
 #include "util/u_format.h"
 #include "util/u_inlines.h"
-#include "gdi/gdi_sw_winsys.h"
 
 #include "common/native_helper.h"
 #include "common/native.h"
 
+#include "sw/gdi/gdi_sw_winsys.h"
+
 struct gdi_display {
    struct native_display base;
 
index aa95260f1c877a7307fc35e2ecb11544f9960d63..a5d6f1e0b3e7b2cae9dd53972345ddcf63a5b78a 100644 (file)
@@ -33,8 +33,8 @@
  */
 
 #include "util/u_memory.h"
-#include "null/null_sw_winsys.h"
 #include "common/native.h"
+#include "sw/null/null_sw_winsys.h"
 
 struct null_display {
    struct native_display base;