diff --git a/.pick_status.json b/.pick_status.json index 9bf0bd56dec..5208044482a 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1741,7 +1741,7 @@ "description": "hasvk: fix android build and reported API version", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "00eefdcd03c0dcff173439107d7ded490a86ff95" }, diff --git a/src/intel/vulkan_hasvk/anv_device.c b/src/intel/vulkan_hasvk/anv_device.c index c514c020445..ceef6483eec 100644 --- a/src/intel/vulkan_hasvk/anv_device.c +++ b/src/intel/vulkan_hasvk/anv_device.c @@ -140,7 +140,11 @@ compiler_perf_log(UNUSED void *data, UNUSED unsigned *id, const char *fmt, ...) VkResult anv_EnumerateInstanceVersion( uint32_t* pApiVersion) { +#ifdef ANDROID + *pApiVersion = ANV_API_VERSION; +#else *pApiVersion = ANV_API_VERSION_1_3; +#endif return VK_SUCCESS; } @@ -1819,7 +1823,11 @@ void anv_GetPhysicalDeviceProperties( }; *pProperties = (VkPhysicalDeviceProperties) { +#ifdef ANDROID + .apiVersion = ANV_API_VERSION, +#else .apiVersion = pdevice->use_softpin ? ANV_API_VERSION_1_3 : ANV_API_VERSION_1_2, +#endif .driverVersion = vk_get_driver_version(), .vendorID = 0x8086, .deviceID = pdevice->info.pci_device_id,