Re: [Mesa-dev] [PATCH] anv: Prefer in-tree headers to out-of-tree headers
On Tue, Nov 29, 2016 at 08:54:26AM -0800, Jason Ekstrand wrote: > On Tue, Nov 29, 2016 at 8:47 AM, Ville Syrjälä < > ville.syrj...@linux.intel.com> wrote: > > > On Tue, Nov 29, 2016 at 08:28:55AM -0800, Jason Ekstrand wrote: > > > On Tue, Nov 29, 2016 at 1:23 AM,wrote: > > > > > > > From: Ville Syrjälä > > > > > > > > Set the include paths to consider in-tree headers before out-of-tree > > > > headers. > > > > > > > > Avoids the build failing due to stale headers being present in > > > > $prefix. Previosuly 'make -ki install' or something similar was > > required > > > > to update the out-of-tree headers to allow the build to succeed. > > > > > > > > Also avoids having to rebuild the entire thing after every 'make > > > > install'. > > > > > > > > Cc: Rob Clark > > > > Cc: Jason Ekstrand > > > > Signed-off-by: Ville Syrjälä > > > > --- > > > > src/intel/vulkan/Makefile.am | 16 +++- > > > > 1 file changed, 11 insertions(+), 5 deletions(-) > > > > > > > > diff --git a/src/intel/vulkan/Makefile.am > > b/src/intel/vulkan/Makefile.am > > > > index ce31abb2fce7..b80f8767296c 100644 > > > > --- a/src/intel/vulkan/Makefile.am > > > > +++ b/src/intel/vulkan/Makefile.am > > > > @@ -43,9 +43,6 @@ noinst_LTLIBRARIES = $(PER_GEN_LIBS) > > > > # The gallium includes are for the util/u_math.h include from > > > > main/macros.h > > > > > > > > AM_CPPFLAGS = \ > > > > - $(INTEL_CFLAGS) \ > > > > - $(VALGRIND_CFLAGS) \ > > > > - $(DEFINES) \ > > > > -I$(top_srcdir)/include \ > > > > -I$(top_builddir)/src \ > > > > -I$(top_srcdir)/src \ > > > > @@ -61,6 +58,17 @@ AM_CPPFLAGS = \ > > > > -I$(top_builddir)/src/intel \ > > > > -I$(top_srcdir)/src/intel > > > > > > > > +if HAVE_PLATFORM_WAYLAND > > > > +AM_CPPFLAGS += \ > > > > + -I$(top_builddir)/src/egl/wayland/wayland-drm \ > > > > + -I$(top_srcdir)/src/egl/wayland/wayland-drm > > > > +endif > > > > > > > > > > I think I have a mild preference for keeping wayland stuff together and > > > moving the last AM_CPPFLAGS down but I don't care that much. Either way, > > > > Would we still want all internal -I knobs to appear before any > > external ones? To do that I'd have flip the x11 vs. wayland stuff > > around. And if someone were to add internal -I knobs for x11 then > > this scheme wouldn't work either way. > > > > Oh... I dind't think about that interaction. Go with the way you had it > for now. > > > > Not sure if sticking to a strict global ordering like that is needed, > > but at least it would seem a bit easier to maintain as you wouldn't > > have to think too hard when adding new flags. > > > > We could have two things and then combine them later but that seems a bit > painful. Feel free to ignore my comments. :) I did ;) Patch pushed. Thanks for the reviews. -- Ville Syrjälä Intel OTC ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH] anv: Prefer in-tree headers to out-of-tree headers
On Tue 29 Nov 2016, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä> > Set the include paths to consider in-tree headers before out-of-tree > headers. > > Avoids the build failing due to stale headers being present in > $prefix. Previosuly 'make -ki install' or something similar was required > to update the out-of-tree headers to allow the build to succeed. > > Also avoids having to rebuild the entire thing after every 'make > install'. > > Cc: Rob Clark > Cc: Jason Ekstrand > Signed-off-by: Ville Syrjälä Thanks for fixing this. The bug bit me too. Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH] anv: Prefer in-tree headers to out-of-tree headers
On Tue, Nov 29, 2016 at 8:47 AM, Ville Syrjälä < ville.syrj...@linux.intel.com> wrote: > On Tue, Nov 29, 2016 at 08:28:55AM -0800, Jason Ekstrand wrote: > > On Tue, Nov 29, 2016 at 1:23 AM,wrote: > > > > > From: Ville Syrjälä > > > > > > Set the include paths to consider in-tree headers before out-of-tree > > > headers. > > > > > > Avoids the build failing due to stale headers being present in > > > $prefix. Previosuly 'make -ki install' or something similar was > required > > > to update the out-of-tree headers to allow the build to succeed. > > > > > > Also avoids having to rebuild the entire thing after every 'make > > > install'. > > > > > > Cc: Rob Clark > > > Cc: Jason Ekstrand > > > Signed-off-by: Ville Syrjälä > > > --- > > > src/intel/vulkan/Makefile.am | 16 +++- > > > 1 file changed, 11 insertions(+), 5 deletions(-) > > > > > > diff --git a/src/intel/vulkan/Makefile.am > b/src/intel/vulkan/Makefile.am > > > index ce31abb2fce7..b80f8767296c 100644 > > > --- a/src/intel/vulkan/Makefile.am > > > +++ b/src/intel/vulkan/Makefile.am > > > @@ -43,9 +43,6 @@ noinst_LTLIBRARIES = $(PER_GEN_LIBS) > > > # The gallium includes are for the util/u_math.h include from > > > main/macros.h > > > > > > AM_CPPFLAGS = \ > > > - $(INTEL_CFLAGS) \ > > > - $(VALGRIND_CFLAGS) \ > > > - $(DEFINES) \ > > > -I$(top_srcdir)/include \ > > > -I$(top_builddir)/src \ > > > -I$(top_srcdir)/src \ > > > @@ -61,6 +58,17 @@ AM_CPPFLAGS = \ > > > -I$(top_builddir)/src/intel \ > > > -I$(top_srcdir)/src/intel > > > > > > +if HAVE_PLATFORM_WAYLAND > > > +AM_CPPFLAGS += \ > > > + -I$(top_builddir)/src/egl/wayland/wayland-drm \ > > > + -I$(top_srcdir)/src/egl/wayland/wayland-drm > > > +endif > > > > > > > I think I have a mild preference for keeping wayland stuff together and > > moving the last AM_CPPFLAGS down but I don't care that much. Either way, > > Would we still want all internal -I knobs to appear before any > external ones? To do that I'd have flip the x11 vs. wayland stuff > around. And if someone were to add internal -I knobs for x11 then > this scheme wouldn't work either way. > Oh... I dind't think about that interaction. Go with the way you had it for now. > Not sure if sticking to a strict global ordering like that is needed, > but at least it would seem a bit easier to maintain as you wouldn't > have to think too hard when adding new flags. > We could have two things and then combine them later but that seems a bit painful. Feel free to ignore my comments. :) > > > > > Reviewed-by: Jason Ekstrand > > > > > > > + > > > +AM_CPPFLAGS += \ > > > + $(INTEL_CFLAGS) \ > > > + $(VALGRIND_CFLAGS) \ > > > + $(DEFINES) > > > + > > > AM_CFLAGS = \ > > > $(VISIBILITY_CFLAGS) \ > > > -Wno-override-init -msse2 > > > @@ -99,8 +107,6 @@ endif > > > > > > if HAVE_PLATFORM_WAYLAND > > > AM_CPPFLAGS += \ > > > - -I$(top_builddir)/src/egl/wayland/wayland-drm \ > > > - -I$(top_srcdir)/src/egl/wayland/wayland-drm \ > > > $(WAYLAND_CFLAGS) \ > > > -DVK_USE_PLATFORM_WAYLAND_KHR > > > > > > -- > > > 2.7.4 > > > > > > ___ > > > mesa-dev mailing list > > > mesa-dev@lists.freedesktop.org > > > https://lists.freedesktop.org/mailman/listinfo/mesa-dev > > > > > -- > Ville Syrjälä > Intel OTC > ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH] anv: Prefer in-tree headers to out-of-tree headers
On Tue, Nov 29, 2016 at 08:28:55AM -0800, Jason Ekstrand wrote: > On Tue, Nov 29, 2016 at 1:23 AM,wrote: > > > From: Ville Syrjälä > > > > Set the include paths to consider in-tree headers before out-of-tree > > headers. > > > > Avoids the build failing due to stale headers being present in > > $prefix. Previosuly 'make -ki install' or something similar was required > > to update the out-of-tree headers to allow the build to succeed. > > > > Also avoids having to rebuild the entire thing after every 'make > > install'. > > > > Cc: Rob Clark > > Cc: Jason Ekstrand > > Signed-off-by: Ville Syrjälä > > --- > > src/intel/vulkan/Makefile.am | 16 +++- > > 1 file changed, 11 insertions(+), 5 deletions(-) > > > > diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am > > index ce31abb2fce7..b80f8767296c 100644 > > --- a/src/intel/vulkan/Makefile.am > > +++ b/src/intel/vulkan/Makefile.am > > @@ -43,9 +43,6 @@ noinst_LTLIBRARIES = $(PER_GEN_LIBS) > > # The gallium includes are for the util/u_math.h include from > > main/macros.h > > > > AM_CPPFLAGS = \ > > - $(INTEL_CFLAGS) \ > > - $(VALGRIND_CFLAGS) \ > > - $(DEFINES) \ > > -I$(top_srcdir)/include \ > > -I$(top_builddir)/src \ > > -I$(top_srcdir)/src \ > > @@ -61,6 +58,17 @@ AM_CPPFLAGS = \ > > -I$(top_builddir)/src/intel \ > > -I$(top_srcdir)/src/intel > > > > +if HAVE_PLATFORM_WAYLAND > > +AM_CPPFLAGS += \ > > + -I$(top_builddir)/src/egl/wayland/wayland-drm \ > > + -I$(top_srcdir)/src/egl/wayland/wayland-drm > > +endif > > > > I think I have a mild preference for keeping wayland stuff together and > moving the last AM_CPPFLAGS down but I don't care that much. Either way, Would we still want all internal -I knobs to appear before any external ones? To do that I'd have flip the x11 vs. wayland stuff around. And if someone were to add internal -I knobs for x11 then this scheme wouldn't work either way. Not sure if sticking to a strict global ordering like that is needed, but at least it would seem a bit easier to maintain as you wouldn't have to think too hard when adding new flags. > > Reviewed-by: Jason Ekstrand > > > > + > > +AM_CPPFLAGS += \ > > + $(INTEL_CFLAGS) \ > > + $(VALGRIND_CFLAGS) \ > > + $(DEFINES) > > + > > AM_CFLAGS = \ > > $(VISIBILITY_CFLAGS) \ > > -Wno-override-init -msse2 > > @@ -99,8 +107,6 @@ endif > > > > if HAVE_PLATFORM_WAYLAND > > AM_CPPFLAGS += \ > > - -I$(top_builddir)/src/egl/wayland/wayland-drm \ > > - -I$(top_srcdir)/src/egl/wayland/wayland-drm \ > > $(WAYLAND_CFLAGS) \ > > -DVK_USE_PLATFORM_WAYLAND_KHR > > > > -- > > 2.7.4 > > > > ___ > > mesa-dev mailing list > > mesa-dev@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/mesa-dev > > -- Ville Syrjälä Intel OTC ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH] anv: Prefer in-tree headers to out-of-tree headers
On Tue, Nov 29, 2016 at 1:23 AM,wrote: > From: Ville Syrjälä > > Set the include paths to consider in-tree headers before out-of-tree > headers. > > Avoids the build failing due to stale headers being present in > $prefix. Previosuly 'make -ki install' or something similar was required > to update the out-of-tree headers to allow the build to succeed. > > Also avoids having to rebuild the entire thing after every 'make > install'. > > Cc: Rob Clark > Cc: Jason Ekstrand > Signed-off-by: Ville Syrjälä > --- > src/intel/vulkan/Makefile.am | 16 +++- > 1 file changed, 11 insertions(+), 5 deletions(-) > > diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am > index ce31abb2fce7..b80f8767296c 100644 > --- a/src/intel/vulkan/Makefile.am > +++ b/src/intel/vulkan/Makefile.am > @@ -43,9 +43,6 @@ noinst_LTLIBRARIES = $(PER_GEN_LIBS) > # The gallium includes are for the util/u_math.h include from > main/macros.h > > AM_CPPFLAGS = \ > - $(INTEL_CFLAGS) \ > - $(VALGRIND_CFLAGS) \ > - $(DEFINES) \ > -I$(top_srcdir)/include \ > -I$(top_builddir)/src \ > -I$(top_srcdir)/src \ > @@ -61,6 +58,17 @@ AM_CPPFLAGS = \ > -I$(top_builddir)/src/intel \ > -I$(top_srcdir)/src/intel > > +if HAVE_PLATFORM_WAYLAND > +AM_CPPFLAGS += \ > + -I$(top_builddir)/src/egl/wayland/wayland-drm \ > + -I$(top_srcdir)/src/egl/wayland/wayland-drm > +endif > I think I have a mild preference for keeping wayland stuff together and moving the last AM_CPPFLAGS down but I don't care that much. Either way, Reviewed-by: Jason Ekstrand > + > +AM_CPPFLAGS += \ > + $(INTEL_CFLAGS) \ > + $(VALGRIND_CFLAGS) \ > + $(DEFINES) > + > AM_CFLAGS = \ > $(VISIBILITY_CFLAGS) \ > -Wno-override-init -msse2 > @@ -99,8 +107,6 @@ endif > > if HAVE_PLATFORM_WAYLAND > AM_CPPFLAGS += \ > - -I$(top_builddir)/src/egl/wayland/wayland-drm \ > - -I$(top_srcdir)/src/egl/wayland/wayland-drm \ > $(WAYLAND_CFLAGS) \ > -DVK_USE_PLATFORM_WAYLAND_KHR > > -- > 2.7.4 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev > ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [PATCH] anv: Prefer in-tree headers to out-of-tree headers
From: Ville SyrjäläSet the include paths to consider in-tree headers before out-of-tree headers. Avoids the build failing due to stale headers being present in $prefix. Previosuly 'make -ki install' or something similar was required to update the out-of-tree headers to allow the build to succeed. Also avoids having to rebuild the entire thing after every 'make install'. Cc: Rob Clark Cc: Jason Ekstrand Signed-off-by: Ville Syrjälä --- src/intel/vulkan/Makefile.am | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am index ce31abb2fce7..b80f8767296c 100644 --- a/src/intel/vulkan/Makefile.am +++ b/src/intel/vulkan/Makefile.am @@ -43,9 +43,6 @@ noinst_LTLIBRARIES = $(PER_GEN_LIBS) # The gallium includes are for the util/u_math.h include from main/macros.h AM_CPPFLAGS = \ - $(INTEL_CFLAGS) \ - $(VALGRIND_CFLAGS) \ - $(DEFINES) \ -I$(top_srcdir)/include \ -I$(top_builddir)/src \ -I$(top_srcdir)/src \ @@ -61,6 +58,17 @@ AM_CPPFLAGS = \ -I$(top_builddir)/src/intel \ -I$(top_srcdir)/src/intel +if HAVE_PLATFORM_WAYLAND +AM_CPPFLAGS += \ + -I$(top_builddir)/src/egl/wayland/wayland-drm \ + -I$(top_srcdir)/src/egl/wayland/wayland-drm +endif + +AM_CPPFLAGS += \ + $(INTEL_CFLAGS) \ + $(VALGRIND_CFLAGS) \ + $(DEFINES) + AM_CFLAGS = \ $(VISIBILITY_CFLAGS) \ -Wno-override-init -msse2 @@ -99,8 +107,6 @@ endif if HAVE_PLATFORM_WAYLAND AM_CPPFLAGS += \ - -I$(top_builddir)/src/egl/wayland/wayland-drm \ - -I$(top_srcdir)/src/egl/wayland/wayland-drm \ $(WAYLAND_CFLAGS) \ -DVK_USE_PLATFORM_WAYLAND_KHR -- 2.7.4 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev