diff options
author | Jason Ekstrand <[email protected]> | 2016-08-22 18:11:41 -0700 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-08-25 10:32:31 +1000 |
commit | 05f36435ef117e48f457b44877d04dd6249b3bb7 (patch) | |
tree | 31c69884e71d703770695b503b6f14da7abab61e /src/intel/vulkan | |
parent | c8f5bd2c9960a8efe4d923e2a5aab7c169d68769 (diff) |
anv: Add a --disable-vulkan-icd-full-driver-path option
This option makes installed Vulkan ICD files contain only a driver library
name and not a path. This is intended for distros to help them work around
multi-arch issues.
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/Makefile.am | 8 | ||||
-rw-r--r-- | src/intel/vulkan/intel_icd.json.in | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am index 9fef960baa0..5491a1686e6 100644 --- a/src/intel/vulkan/Makefile.am +++ b/src/intel/vulkan/Makefile.am @@ -170,9 +170,15 @@ 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.json : intel_icd.json.in $(AM_V_GEN) $(SED) \ - -e "s#@install_libdir@#${libdir}#" \ + -e "s#@ICD_DRIVER_PATH@#${ICD_DRIVER_PATH}#" \ < $(srcdir)/intel_icd.json.in > $@ # Libvulkan with dummy gem. Used for unit tests. diff --git a/src/intel/vulkan/intel_icd.json.in b/src/intel/vulkan/intel_icd.json.in index d9b363a9762..4f50866b108 100644 --- a/src/intel/vulkan/intel_icd.json.in +++ b/src/intel/vulkan/intel_icd.json.in @@ -1,7 +1,7 @@ { "file_format_version": "1.0.0", "ICD": { - "library_path": "@install_libdir@/libvulkan_intel.so", + "library_path": "@ICD_DRIVER_PATH@", "abi_versions": "1.0.3" } } |