From c5fc1f3e902fc4e03746094cef4f9c1ddf3b6fc2 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 24 Sep 2025 23:38:40 +0200 Subject: [PATCH] pvr: report vulkan 1.4 to the loader These bits aren't about the API version supported, but the version of the loader interface supported. We support Vulkan 1.4 in that regard, so let's report that. Reviewed-by: Frank Binns Reviewed-by: Simon Perretta Part-of: --- src/imagination/vulkan/meson.build | 4 ++-- src/imagination/vulkan/pvr_device.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/imagination/vulkan/meson.build b/src/imagination/vulkan/meson.build index adf770cd3e3..d07929f6a85 100644 --- a/src/imagination/vulkan/meson.build +++ b/src/imagination/vulkan/meson.build @@ -142,7 +142,7 @@ powervr_mesa_icd = custom_target( output : 'powervr_mesa_icd.@0@.json'.format(host_machine.cpu()), command : [ prog_python, '@INPUT0@', - '--api-version', '1.0', '--xml', '@INPUT1@', + '--api-version', '1.4', '--xml', '@INPUT1@', '--sizeof-pointer', sizeof_pointer, '--lib-path', get_option('prefix') / get_option('libdir') / 'libvulkan_powervr_mesa.so', '--out', '@OUTPUT@', @@ -159,7 +159,7 @@ _dev_icd = custom_target( output : 'powervr_mesa_devenv_icd.@0@.json'.format(host_machine.cpu()), command : [ prog_python, '@INPUT0@', - '--api-version', '1.0', '--xml', '@INPUT1@', + '--api-version', '1.4', '--xml', '@INPUT1@', '--sizeof-pointer', sizeof_pointer, '--lib-path', meson.current_build_dir() / 'libvulkan_powervr_mesa.so', '--out', '@OUTPUT@', diff --git a/src/imagination/vulkan/pvr_device.c b/src/imagination/vulkan/pvr_device.c index 4def0c8b1c7..2a10a552ab2 100644 --- a/src/imagination/vulkan/pvr_device.c +++ b/src/imagination/vulkan/pvr_device.c @@ -647,7 +647,7 @@ static bool pvr_physical_device_get_properties( VkResult pvr_EnumerateInstanceVersion(uint32_t *pApiVersion) { - *pApiVersion = PVR_API_VERSION; + *pApiVersion = VK_MAKE_API_VERSION(0, 1, 4, VK_HEADER_VERSION); return VK_SUCCESS; }