hasvk: Fix non-functioning version override.

https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27717 accidentally removed the instance check for the drirc option "hasvk_report_vk_1_3_version", rendering it useless.

Re-add the check and expose Vulkan 1.3 if the user asks.

Fixes: 2d575034f2 ("hasvk: switch to use runtime physical device properties infrastructure")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34232>
This commit is contained in:
irql-notlessorequal
2025-03-27 11:48:36 +01:00
parent 1e72fbcfd1
commit c0c562cf6e

View File

@@ -971,7 +971,8 @@ get_properties(const struct anv_physical_device *pdevice,
#if DETECT_OS_ANDROID
.apiVersion = ANV_API_VERSION,
#else
.apiVersion = pdevice->use_softpin ? ANV_API_VERSION_1_3 : ANV_API_VERSION_1_2,
.apiVersion = (pdevice->use_softpin || pdevice->instance->report_vk_1_3) ?
ANV_API_VERSION_1_3 : ANV_API_VERSION_1_2,
#endif /* DETECT_OS_ANDROID */
.driverVersion = vk_get_driver_version(),
.vendorID = 0x8086,