anv: Advertise Vulkan 1.3 on Android 13
Older versions of Android rejected newer versions of Vulkan,[1] but Android 13 devices are 'strongly recommended' to support Vulkan 1.3.[2] [1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4781 [2] https://source.android.com/docs/compatibility/13/android-13-cdd#7142_vulkan Signed-off-by: Chris Spencer <spencercw@gmail.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24816>
This commit is contained in:
@@ -141,7 +141,11 @@ compiler_perf_log(UNUSED void *data, UNUSED unsigned *id, const char *fmt, ...)
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID
|
||||
#if ANDROID_API_LEVEL >= 33
|
||||
#define ANV_API_VERSION VK_MAKE_VERSION(1, 3, VK_HEADER_VERSION)
|
||||
#else
|
||||
#define ANV_API_VERSION VK_MAKE_VERSION(1, 1, VK_HEADER_VERSION)
|
||||
#endif
|
||||
#else
|
||||
#define ANV_API_VERSION VK_MAKE_VERSION(1, 3, VK_HEADER_VERSION)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user