venus: enable Vulkan 1.3 for Android 13 and above
authorYiwei Zhang <zzyiwei@chromium.org>
Wed, 11 Oct 2023 20:07:03 +0000 (20:07 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 11 Oct 2023 22:29:46 +0000 (22:29 +0000)
Now that ndk translation support is ready for both Intel and AMD, we can
advertise Vulkan 1.3 on Android 13.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25666>

src/virtio/vulkan/vn_instance.h

index bd64f28..e278457 100644 (file)
@@ -25,7 +25,7 @@
 #define VN_MIN_RENDERER_VERSION VK_API_VERSION_1_1
 
 /* max advertised version at both instance and device levels */
-#ifdef ANDROID
+#if defined(ANDROID) && ANDROID_API_LEVEL < 33
 #define VN_MAX_API_VERSION VK_MAKE_VERSION(1, 1, VK_HEADER_VERSION)
 #else
 #define VN_MAX_API_VERSION VK_MAKE_VERSION(1, 3, VK_HEADER_VERSION)