Mesa (main): meson: add radv to meson devenv
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 8 05:44:51 UTC 2022
Module: Mesa
Branch: main
Commit: a52e4871fe9ffb5dc084ea7ab75f1b7d1264813d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a52e4871fe9ffb5dc084ea7ab75f1b7d1264813d
Author: Dylan Baker <dylan.c.baker at intel.com>
Date: Fri Feb 4 10:47:17 2022 -0800
meson: add radv to meson devenv
I either rebased this out of the original PR, just failed to commit it
and then reset it.
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14879>
---
src/amd/vulkan/meson.build | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/src/amd/vulkan/meson.build b/src/amd/vulkan/meson.build
index 1f88a232d07..51e3544709e 100644
--- a/src/amd/vulkan/meson.build
+++ b/src/amd/vulkan/meson.build
@@ -213,3 +213,20 @@ radeon_icd = custom_target(
install : true,
)
+if meson.version().version_compare('>= 0.58')
+ _dev_icdname = 'radeon_devenv_icd. at 0@.json'.format(host_machine.cpu())
+ custom_target(
+ 'radeon_devenv_icd',
+ input : [vk_icd_gen, vk_api_xml],
+ output : _dev_icdname,
+ command : [
+ prog_python, '@INPUT0@',
+ '--api-version', '1.3', '--xml', '@INPUT1@',
+ '--lib-path', meson.current_build_dir() / icd_file_name,
+ '--out', '@OUTPUT@',
+ ],
+ build_by_default : true,
+ )
+
+ devenv.append('VK_ICD_FILENAMES', meson.current_build_dir() / _dev_icdname)
+endif
More information about the mesa-commit
mailing list