anv: Always use the full driver path in the intel_icd.*.json
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 20 Oct 2016 23:04:16 +0000 (16:04 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 21 Oct 2016 16:30:23 +0000 (09:30 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/Makefile.am
src/intel/vulkan/intel_icd.json.in

index ca5bf9f7f9ef9700aabad8a96e27693c516ec62c..069e36390115c9969480fd90f60cde11a04835f9 100644 (file)
@@ -176,15 +176,9 @@ dev_icd.json : dev_icd.json.in
                -e "s#@build_libdir@#${abs_top_builddir}/${LIB_DIR}#" \
                < $(srcdir)/dev_icd.json.in > $@
 
-if VULKAN_ICD_DRIVER_PATH
-ICD_DRIVER_PATH="${libdir}/libvulkan_intel.so"
-else
-ICD_DRIVER_PATH="libvulkan_intel.so"
-endif
-
 intel_icd.@host_cpu@.json : intel_icd.json.in
        $(AM_V_GEN) $(SED) \
-               -e "s#@ICD_DRIVER_PATH@#${ICD_DRIVER_PATH}#" \
+               -e "s#@install_libdir@#${libdir}#" \
                < $(srcdir)/intel_icd.json.in > $@
 
 # Libvulkan with dummy gem. Used for unit tests.
index 4f50866b108fae6bf0e4e06940bfa86b8f8faab8..d9b363a976220b4fc5b0f4aef3cd335a89c245e3 100644 (file)
@@ -1,7 +1,7 @@
 {
     "file_format_version": "1.0.0",
     "ICD": {
-        "library_path": "@ICD_DRIVER_PATH@",
+        "library_path": "@install_libdir@/libvulkan_intel.so",
         "abi_versions": "1.0.3"
     }
 }