<div dir="ltr">Thanks for doing this!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 9, 2016 at 10:11 AM, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
<br>
Port of the anv commit d96345de989 ("anv: Suffix the intel_icd file with<br>
the host CPU").<br>
<br>
Cc: "13.0" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.<wbr>freedesktop.org</a>><br>
Cc: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
Signed-off-by: Emil Velikov <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>><br>
---<br>
 src/amd/vulkan/.gitignore                              | 1 +<br>
 src/amd/vulkan/Makefile.am                             | 9 +++++++--<br>
 src/amd/vulkan/{radeon_icd.<wbr>json => <a href="http://radeon_icd.json.in" rel="noreferrer" target="_blank">radeon_icd.json.in</a>} | 2 +-<br>
 3 files changed, 9 insertions(+), 3 deletions(-)<br>
 rename src/amd/vulkan/{radeon_icd.<wbr>json => <a href="http://radeon_icd.json.in" rel="noreferrer" target="_blank">radeon_icd.json.in</a>} (58%)<br>
<br>
diff --git a/src/amd/vulkan/.gitignore b/src/amd/vulkan/.gitignore<br>
index e55e353..2a42d7f 100644<br>
--- a/src/amd/vulkan/.gitignore<br>
+++ b/src/amd/vulkan/.gitignore<br>
@@ -4,3 +4,4 @@<br>
 /radv_timestamp.h<br>
 /dev_icd.json<br>
 /vk_format_table.c<br>
+/radeon_icd.*.json<br>
diff --git a/src/amd/vulkan/Makefile.am b/src/amd/vulkan/Makefile.am<br>
index 44d2a66..190be8d 100644<br>
--- a/src/amd/vulkan/Makefile.am<br>
+++ b/src/amd/vulkan/Makefile.am<br>
@@ -131,7 +131,7 @@ vk_format_table.c: vk_format_table.py \<br>
        $(PYTHON2) $(srcdir)/vk_format_table.py $(srcdir)/vk_format_layout.csv > $@<br>
<br>
 BUILT_SOURCES = $(VULKAN_GENERATED_FILES)<br>
-CLEANFILES = $(BUILT_SOURCES) dev_icd.json radv_timestamp.h<br>
+CLEANFILES = $(BUILT_SOURCES) dev_icd.json radeon_icd.@host_cpu@.json<br>
 EXTRA_DIST = \<br>
        $(top_srcdir)/include/vulkan/<wbr>vk_icd.h \<br>
        <a href="http://dev_icd.json.in" rel="noreferrer" target="_blank">dev_icd.json.in</a> \<br>
@@ -155,7 +155,7 @@ libvulkan_radeon_la_LDFLAGS = \<br>
<br>
<br>
 icdconfdir = @VULKAN_ICD_INSTALL_DIR@<br>
-icdconf_DATA = radeon_icd.json<br>
+icdconf_DATA = radeon_icd.@host_cpu@.json<br>
 # The following is used for development purposes, by setting VK_ICD_FILENAMES.<br>
 noinst_DATA = dev_icd.json<br>
<br>
@@ -164,4 +164,9 @@ dev_icd.json : <a href="http://dev_icd.json.in" rel="noreferrer" target="_blank">dev_icd.json.in</a><br>
                -e "s#@build_libdir@#${abs_top_<wbr>builddir}/${LIB_DIR}#" \<br>
                < $(srcdir)/<a href="http://dev_icd.json.in" rel="noreferrer" target="_blank">dev_icd.json.in</a> > $@<br>
<br>
+radeon_icd.@host_cpu@.json : <a href="http://radeon_icd.json.in" rel="noreferrer" target="_blank">radeon_icd.json.in</a><br>
+       $(AM_V_GEN) $(SED) \<br>
+               -e "s#@install_libdir@#${libdir}#<wbr>" \<br>
+               < $(srcdir)/<a href="http://radeon_icd.json.in" rel="noreferrer" target="_blank">radeon_icd.json.in</a> > $@<br>
+<br>
 include $(top_srcdir)/<a href="http://install-lib-links.mk" rel="noreferrer" target="_blank">install-lib-<wbr>links.mk</a><br>
diff --git a/src/amd/vulkan/radeon_icd.<wbr>json b/src/amd/vulkan/<a href="http://radeon_icd.json.in" rel="noreferrer" target="_blank">radeon_icd.<wbr>json.in</a><br>
similarity index 58%<br>
rename from src/amd/vulkan/radeon_icd.json<br>
rename to src/amd/vulkan/<a href="http://radeon_icd.json.in" rel="noreferrer" target="_blank">radeon_icd.<wbr>json.in</a><br>
index cbb4aab..a8b441d 100644<br>
--- a/src/amd/vulkan/radeon_icd.<wbr>json<br>
+++ b/src/amd/vulkan/<a href="http://radeon_icd.json.in" rel="noreferrer" target="_blank">radeon_icd.<wbr>json.in</a><br>
@@ -1,7 +1,7 @@<br>
 {<br>
     "file_format_version": "1.0.0",<br>
     "ICD": {<br>
-        "library_path": "libvulkan_radeon.so",<br>
+        "library_path": "@install_libdir@/libvulkan_<wbr>radeon.so",<br>
         "api_version": "1.0.3"<br>
     }<br>
 }<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.10.2<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>