GitLab will be down for maintenance this Sunday 13th June, from approx 7-11am UTC. This is for a PostgreSQL migration. See the tracker issue for more informations.

Commit d148540e authored by Yiwei Zhang's avatar Yiwei Zhang Committed by Marge Bot
Browse files

venus: cap api version to 1.1 for Android

Android hasn't officially adopted 1.2 yet, so we just cap it to avoid
troubles(e.g. vkjson doesn't like 1.2 atm).
Signed-off-by: Yiwei Zhang's avatarYiwei Zhang <>
Reviewed-by: Chia-I Wu's avatarChia-I Wu <>
Part-of: <mesa/mesa!10258>
parent 7d234da6
......@@ -1250,6 +1250,11 @@ vn_physical_device_init_properties(struct vn_physical_device *physical_dev)
if (props->apiVersion > vn_info_vk_xml_version())
props->apiVersion = vn_info_vk_xml_version();
#ifdef ANDROID
if (props->apiVersion >= VK_API_VERSION_1_2)
props->apiVersion =
VK_MAKE_VERSION(1, 1, VK_VERSION_PATCH(props->apiVersion));
props->driverVersion = vk_get_driver_version();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment