anv: automake: use the local headers over any system provided ones
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 20 Mar 2017 14:56:03 +0000 (14:56 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Mar 2017 11:32:54 +0000 (11:32 +0000)
At the moment, we would honour any system headers - vulkan_intel.h in
particular over the ones in-tree.

Thus, if one does incremental build of mesa, without the vulkan.h
already installed (or at least not in the same directory as
vulkan_intel.h) the build will fail.

In the future we might want to upstream the vulkan_intel.h within
vulkan.h or use other ways to make vulkan_intel.h obsolete. In either
case, the more robust thing is to rely on our own copy.

v2: Move AM_CPPFLAGS just above LIBDRM_CFLAGS (Grazvydas, Jason)

Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Fixes: ee8044fd "intel/vulkan: Get rid of recursive make"
Suggested-by: Jason Ekstrand <jason@jlekstrand.net>
Reported-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/intel/Makefile.vulkan.am

index 185780246e231bbe041edf6a1852ce77d29a531b..281500987693f159ed7b3e7d8937b857676c1c4d 100644 (file)
@@ -92,8 +92,8 @@ VULKAN_CPPFLAGS = \
        -I$(top_srcdir)/src/vulkan/wsi \
        -I$(top_builddir)/src/vulkan/util \
        -I$(top_srcdir)/src/vulkan/util \
-       $(LIBDRM_CFLAGS) \
-       $(AM_CPPFLAGS)
+       $(AM_CPPFLAGS) \
+       $(LIBDRM_CFLAGS)
 
 vulkan_libanv_gen7_la_CFLAGS = $(VULKAN_CFLAGS)
 vulkan_libanv_gen7_la_CPPFLAGS = $(VULKAN_CPPFLAGS) -DGEN_VERSIONx10=70