virgl: straighten the includes confusion
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 26 Oct 2015 11:53:36 +0000 (11:53 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 30 Oct 2015 17:37:08 +0000 (17:37 +0000)
Use the relevant GALLIUM_foo_CFLAGS which has all the requirements
(not to mention VISIBITY_CFLAGS) and keep ../ out of the include
directives.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/virgl/Makefile.am
src/gallium/drivers/virgl/virgl.h
src/gallium/drivers/virgl/virgl_resource.h
src/gallium/winsys/virgl/drm/Makefile.am
src/gallium/winsys/virgl/vtest/Makefile.am
src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h

index c22cdb7..82d9756 100644 (file)
@@ -24,10 +24,7 @@ include Makefile.sources
 include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CPPFLAGS = \
-       -I$(top_srcdir)/src/gallium/drivers \
-       -I$(top_srcdir)/src/gallium/winsys/virgl/drm \
-       -I$(top_srcdir)/include \
-       $(GALLIUM_CFLAGS) \
+       $(GALLIUM_DRIVER_CFLAGS) \
        $(LIBDRM_CFLAGS)
 
 noinst_LTLIBRARIES = libvirgl.la
index 21e3bc0..ecd997b 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "util/u_transfer.h"
 
-#include "../winsys/virgl/drm/virgl_hw.h"
+#include "virgl/drm/virgl_hw.h"
 
 #include "virgl_winsys.h"
 #include "pipe/p_screen.h"
index 2d0bd8b..b80545e 100644 (file)
@@ -29,7 +29,7 @@
 #include "util/list.h"
 #include "util/u_transfer.h"
 
-#include "virgl_hw.h"
+#include "virgl/drm/virgl_hw.h"
 #define VR_MAX_TEXTURE_2D_LEVELS 15
 
 struct virgl_screen;
index 49680e0..9c1db31 100644 (file)
@@ -24,9 +24,9 @@ include Makefile.sources
 include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
-       -I$(top_srcdir)/include \
        -I$(top_srcdir)/src/gallium/drivers \
-       $(GALLIUM_CFLAGS) \
+       -I$(top_srcdir)/src/gallium/winsys \
+       $(GALLIUM_WINSYS_CFLAGS) \
        $(LIBDRM_CFLAGS)
 
 noinst_LTLIBRARIES = libvirgldrm.la
index 81270d7..827b353 100644 (file)
@@ -24,9 +24,9 @@ include Makefile.sources
 include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
-       -I$(top_srcdir)/include \
        -I$(top_srcdir)/src/gallium/drivers \
-       $(GALLIUM_CFLAGS)
+       -I$(top_srcdir)/src/gallium/winsys \
+       $(GALLIUM_WINSYS_CFLAGS)
 
 noinst_LTLIBRARIES = libvirglvtest.la
 
index 3967bef..2f9dc84 100644 (file)
@@ -28,7 +28,7 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
 #include "state_tracker/sw_winsys.h"
-#include "../drm/virgl_hw.h"
+#include "virgl/drm/virgl_hw.h"
 #include "virgl/virgl_winsys.h"
 #include "util/list.h"
 #include "os/os_thread.h"