mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
hasvk: Fix android build with android-strict=false
This commit is contained in:
parent
642bed9eba
commit
3ac128ec70
1 changed files with 1 additions and 4 deletions
|
|
@ -140,16 +140,13 @@ compiler_perf_log(UNUSED void *data, UNUSED unsigned *id, const char *fmt, ...)
|
|||
#else
|
||||
#define ANV_API_VERSION_1_3 VK_MAKE_VERSION(1, 3, VK_HEADER_VERSION)
|
||||
#define ANV_API_VERSION_1_2 VK_MAKE_VERSION(1, 2, VK_HEADER_VERSION)
|
||||
#define ANV_API_VERSION ANV_API_VERSION_1_3
|
||||
#endif
|
||||
|
||||
VkResult anv_EnumerateInstanceVersion(
|
||||
uint32_t* pApiVersion)
|
||||
{
|
||||
#ifdef ANDROID_STRICT
|
||||
*pApiVersion = ANV_API_VERSION;
|
||||
#else
|
||||
*pApiVersion = ANV_API_VERSION_1_3;
|
||||
#endif
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue