anv: Limit vulkan version to 1.1 for Android

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>
This commit is contained in:
Nataraj Deshpande 2020-04-27 17:43:08 -07:00 committed by Marge Bot
parent 33c61eb2f1
commit a77cf797f1

View 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