summaryrefslogtreecommitdiff
path: root/lib/mesa/src/amd/vulkan/Makefile.in
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-05-27 07:20:32 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-05-27 07:20:32 +0000
commit47b2bb30c5643e0920b6a89f2416944777dfe27b (patch)
tree335d2e37daaf7ea33c312f542c0b375b40537a1a /lib/mesa/src/amd/vulkan/Makefile.in
parent02aebe809c282e963b12e439a0227f0715eb5987 (diff)
Build Mesa intel and radeon vulkan drivers and amd64 and i386
The intel driver can be used with inteldrm on ivy bridge or newer. The radeon driver only works with amdgpu not radeondrm. As we can't use python in xenocara add phony targets to create the same output as python scripts which create json files for the loader. This is just the ICDs, to use vulkan the loader and additional ports are required. ok mpi@ on an earlier version. Changed to call shm_unlink() directly after shm_mkstemp() as suggested by kettenis@
Diffstat (limited to 'lib/mesa/src/amd/vulkan/Makefile.in')
-rw-r--r--lib/mesa/src/amd/vulkan/Makefile.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/mesa/src/amd/vulkan/Makefile.in b/lib/mesa/src/amd/vulkan/Makefile.in
index f2d99f42f..e13095598 100644
--- a/lib/mesa/src/amd/vulkan/Makefile.in
+++ b/lib/mesa/src/amd/vulkan/Makefile.in
@@ -1286,6 +1286,19 @@ uninstall-am: uninstall-icdconfDATA uninstall-libLTLIBRARIES
@REGEN_SOURCES_TRUE@radeon_icd.@host_cpu@.json : radv_extensions.py radv_icd.py
@REGEN_SOURCES_TRUE@ $(AM_V_GEN)$(PYTHON) $(srcdir)/radv_icd.py \
@REGEN_SOURCES_TRUE@ --lib-path="${libdir}" --out $@
+@REGEN_SOURCES_FALSE@radeon_icd.@host_cpu@.json :
+@REGEN_SOURCES_FALSE@ @echo -e "{" > $@
+@REGEN_SOURCES_FALSE@ @echo -e " \"ICD\": {" >> $@
+@REGEN_SOURCES_FALSE@ @echo -e " \"api_version\": \"1.1.70\"," >> $@
+@REGEN_SOURCES_FALSE@ @echo -e " \"library_path\": \"${libdir}/libvulkan_radeon.so\"" >> $@
+@REGEN_SOURCES_FALSE@ @echo -e " }," >> $@
+@REGEN_SOURCES_FALSE@ @echo -e " \"file_format_version\": \"1.0.0\"" >> $@
+@REGEN_SOURCES_FALSE@ @echo -ne "}" >> $@
+
+@REGEN_SOURCES_FALSE@.PHONY: radeon_icd.@host_cpu@.json
+
+@REGEN_SOURCES_FALSE@dev_icd.json : radeon_icd.@host_cpu@.json
+@REGEN_SOURCES_FALSE@ cp radeon_icd.@host_cpu@.json $@
@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@all-local : .install-mesa-links