v3dv: Enable VK API v1.2 for Android
Now as all features are in place, we can enable it. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com> Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14195>
This commit is contained in:

committed by
Marge Bot

parent
733909a637
commit
907b96f1e7
@@ -68,11 +68,14 @@
|
||||
#include "wayland-drm-client-protocol.h"
|
||||
#endif
|
||||
|
||||
#ifndef ANDROID
|
||||
# define V3DV_API_VERSION VK_MAKE_VERSION(1, 2, VK_HEADER_VERSION)
|
||||
#else
|
||||
/* Android CDD require additional extensions for API v1.1+ */
|
||||
# define V3DV_API_VERSION VK_MAKE_VERSION(1, 0, VK_HEADER_VERSION)
|
||||
#define V3DV_API_VERSION VK_MAKE_VERSION(1, 2, VK_HEADER_VERSION)
|
||||
|
||||
#ifdef ANDROID
|
||||
#if ANDROID_API_LEVEL <= 32
|
||||
/* Android 12.1 and lower support only Vulkan API v1.1 */
|
||||
#undef V3DV_API_VERSION
|
||||
#define V3DV_API_VERSION VK_MAKE_VERSION(1, 1, VK_HEADER_VERSION)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
|
Reference in New Issue
Block a user