anv: Limit vulkan version to 1.1 for Android
authorNataraj Deshpande <nataraj.deshpande@intel.com>
Tue, 28 Apr 2020 00:43:08 +0000 (17:43 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 May 2020 20:50:54 +0000 (20:50 +0000)
Current Android dessert versions such as Pie, Q reject
vulkan version > 1.1. Clamp the vulkan versions to 1.1
for platforms running these Android desserts.

Fixes android.graphics.cts.VulkanFeaturesTest and
dEQP-VK.api.info.device#properties.

v2: Limit version with '!ANDROID' (Eric Engestrom and Tapani Pälli)

Signed-off-by: Nataraj Deshpande <nataraj.deshpande@intel.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4781>

src/intel/vulkan/anv_extensions.py

index 3997974467be7c6749eb2318797fe1f20c922f02..2f33f7592a33ea0f7e3e66b65f45ab06f6f586ac 100644 (file)
@@ -54,7 +54,7 @@ API_PATCH_VERSION = 131
 API_VERSIONS = [
     ApiVersion('1.0',   True),
     ApiVersion('1.1',   True),
-    ApiVersion('1.2',   True),
+    ApiVersion('1.2',   '!ANDROID'),
 ]
 
 MAX_API_VERSION = None # Computed later