<p dir="ltr"></p>
<p dir="ltr">On Aug 19, 2016 18:05, "Eric Engestrom" <<a href="mailto:eric.engestrom@imgtec.com">eric.engestrom@imgtec.com</a>> wrote:<br>
><br>
> On Fri, Aug 19, 2016 at 09:04:14AM -0700, Jason Ekstrand wrote:<br>
> > Not providing a path allows the ICD to work on multi-arch systems but<br>
> > breaks it if you install anywhere other than /usr/lib. Given that users<br>
> > may be installing locally in .local or similar, we probably do want to<br>
> > provide a filename. Distros can carry a revert of this commit if they want<br>
> > an intel_icd.json file without the path.<br>
> ><br>
> > Signed-off-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br>
> > Cc: Mark Janes <<a href="mailto:mark.a.janes@intel.com">mark.a.janes@intel.com</a>><br>
><br>
> I have one question (below), but this patch is good regardless:<br>
> Reviewed-by: Eric Engestrom <<a href="mailto:eric.engestrom@imgtec.com">eric.engestrom@imgtec.com</a>><br>
><br>
> > ---<br>
> > src/intel/vulkan/.gitignore | 1 +<br>
> > src/intel/vulkan/Makefile.am | 7 ++++++-<br>
> > src/intel/vulkan/{intel_icd.json => <a href="http://intel_icd.json.in">intel_icd.json.in</a>} | 2 +-<br>
> > 3 files changed, 8 insertions(+), 2 deletions(-)<br>
> > rename src/intel/vulkan/{intel_icd.json => <a href="http://intel_icd.json.in">intel_icd.json.in</a>} (59%)<br>
> ><br>
> > diff --git a/src/intel/vulkan/.gitignore b/src/intel/vulkan/.gitignore<br>
> > index bde5cd8..a099ff6 100644<br>
> > --- a/src/intel/vulkan/.gitignore<br>
> > +++ b/src/intel/vulkan/.gitignore<br>
> > @@ -3,3 +3,4 @@<br>
> > /anv_entrypoints.h<br>
> > /anv_timestamp.h<br>
> > /dev_icd.json<br>
> > +/intel_icd.json<br>
> > diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am<br>
> > index ad0148d..9fef960 100644<br>
> > --- a/src/intel/vulkan/Makefile.am<br>
> > +++ b/src/intel/vulkan/Makefile.am<br>
> > @@ -141,7 +141,7 @@ anv_timestamp.h:<br>
> > $(AM_V_GEN) echo "#define ANV_TIMESTAMP \"$(TIMESTAMP_CMD)\"" > $@<br>
> ><br>
> > BUILT_SOURCES = $(VULKAN_GENERATED_FILES)<br>
> > -CLEANFILES = $(BUILT_SOURCES) dev_icd.json<br>
> > +CLEANFILES = $(BUILT_SOURCES) dev_icd.json intel_icd.json<br>
> > EXTRA_DIST = \<br>
> > $(top_srcdir)/include/vulkan/vk_icd.h \<br>
> > anv_entrypoints_gen.py \<br>
> > @@ -170,6 +170,11 @@ dev_icd.json : <a href="http://dev_icd.json.in">dev_icd.json.in</a><br>
> > -e "s#@build_libdir@#${abs_top_builddir}/${LIB_DIR}#" \<br>
> > < $(srcdir)/<a href="http://dev_icd.json.in">dev_icd.json.in</a> > $@<br>
> ><br>
> > +intel_icd.json : <a href="http://intel_icd.json.in">intel_icd.json.in</a><br>
> > + $(AM_V_GEN) $(SED) \<br>
> > + -e "s#@install_libdir@#${libdir}#" \<br>
> > + < $(srcdir)/<a href="http://intel_icd.json.in">intel_icd.json.in</a> > $@<br>
><br>
> I think I may have already asked when dev_icd.json was added, but why<br>
> use a relative path for the dependency and a full path when reading it?<br>
> Why not use the full path for the dep and read `< $<` instead?</p>
<p dir="ltr">No good reason that I know of other than copy+paste of the one above. We could probably make that change. Emil?</p>
<p dir="ltr">> > +<br>
> > # Libvulkan with dummy gem. Used for unit tests.<br>
> > libvulkan_test_la_SOURCES = $(VULKAN_GEM_STUB_FILES)<br>
> > libvulkan_test_la_LIBADD = $(VULKAN_LIB_DEPS) -lX11-xcb<br>
> > diff --git a/src/intel/vulkan/intel_icd.json b/src/intel/vulkan/<a href="http://intel_icd.json.in">intel_icd.json.in</a><br>
> > similarity index 59%<br>
> > rename from src/intel/vulkan/intel_icd.json<br>
> > rename to src/intel/vulkan/<a href="http://intel_icd.json.in">intel_icd.json.in</a><br>
> > index 277c14e..d9b363a 100644<br>
> > --- a/src/intel/vulkan/intel_icd.json<br>
> > +++ b/src/intel/vulkan/<a href="http://intel_icd.json.in">intel_icd.json.in</a><br>
> > @@ -1,7 +1,7 @@<br>
> > {<br>
> > "file_format_version": "1.0.0",<br>
> > "ICD": {<br>
> > - "library_path": "libvulkan_intel.so",<br>
> > + "library_path": "@install_libdir@/libvulkan_intel.so",<br>
> > "abi_versions": "1.0.3"<br>
> > }<br>
> > }<br>
> > --<br>
> > 2.5.0.400.gff86faf<br></p>