mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
gfxstream: generate development ICD for meson build
An user is now able to do: export VK_ICD_FILENAMES=./amd64-build/guest/vulkan/gfxstream_vk_devenv_icd.x86_64.json that allows vulkan apps without install the ICD. If built with option `-Dgfxstream-build=guest-test`, that would go into the gfxstream VK ICD and the test layer. Unfortunately, the test layer hangs right now since I believe the gfxstream_backend's vulkan loading logic is also affected by the environment variable. Reviewed-by: Aaron Ruby <aruby@blackberry.com> Acked-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
parent
876844ddd6
commit
f1392431e0
1 changed files with 18 additions and 2 deletions
|
|
@ -27,9 +27,9 @@ lib_vulkan_gfxstream = shared_library(
|
|||
)
|
||||
|
||||
gfxstream_icd = custom_target(
|
||||
'gfxstream_icd',
|
||||
'gfxstream_vk_icd',
|
||||
input : [vk_icd_gen, vk_api_xml],
|
||||
output : 'gfxstream_icd.@0@.json'.format(host_machine.cpu()),
|
||||
output : 'gfxstream_vk_icd.@0@.json'.format(host_machine.cpu()),
|
||||
command : [
|
||||
prog_python, '@INPUT0@',
|
||||
'--api-version', '1.1', '--xml', '@INPUT1@',
|
||||
|
|
@ -41,3 +41,19 @@ gfxstream_icd = custom_target(
|
|||
install_dir : with_vulkan_icd_dir,
|
||||
install : true,
|
||||
)
|
||||
|
||||
_dev_icdname = 'gfxstream_vk_devenv_icd.@0@.json'.format(host_machine.cpu())
|
||||
_dev_icd = custom_target(
|
||||
'gfxstream_vk_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() / 'libvulkan_gfxstream.so',
|
||||
'--out', '@OUTPUT@',
|
||||
],
|
||||
build_by_default : true,
|
||||
)
|
||||
|
||||
devenv.append('VK_ICD_FILENAMES', _dev_icd.full_path())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue