mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-19 10:00:37 +01:00
v3dv: Limit API version to v1.0 for Android
Android CDD has additional requirements that must be met in order to enable 1.1+: - samplerYcbcrConversion - VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT - VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT - VK_ANDROID_external_memory_android_hardware_buffer >= v2 Requirements are checked by: android.graphics.cts.VulkanFeaturesTest#testVulkan1_1Requirements CTS Fixes:2686c5419d("v3dv: add Android support") 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/18047> (cherry picked from commitb17ea48f91)
This commit is contained in:
parent
7b2dc8e779
commit
c1e5cfb01f
2 changed files with 7 additions and 2 deletions
|
|
@ -247,7 +247,7 @@
|
|||
"description": "v3dv: Limit API version to v1.0 for Android",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "2686c5419d67aab365c83647094a537a31a89085"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -63,7 +63,12 @@
|
|||
#include "wayland-drm-client-protocol.h"
|
||||
#endif
|
||||
|
||||
#define V3DV_API_VERSION VK_MAKE_VERSION(1, 2, VK_HEADER_VERSION)
|
||||
#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)
|
||||
#endif
|
||||
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
v3dv_EnumerateInstanceVersion(uint32_t *pApiVersion)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue