mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
radv: limit the Vulkan version to 1.1 for Android
Vulkan 1.2 seems rejected. This hardcodes the Android version to 1.1.107. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2936 Fixes:7f5462e349("radv: enable Vulkan 1.2") Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4985> (cherry picked from commit69430921fc)
This commit is contained in:
parent
464bbd6aaa
commit
67c3c06541
2 changed files with 8 additions and 3 deletions
|
|
@ -571,7 +571,7 @@
|
|||
"description": "radv: limit the Vulkan version to 1.1 for Android",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "7f5462e349a3f082e2944181cd610b1250d711cd"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -452,8 +452,13 @@ radv_physical_device_api_version(struct radv_physical_device *dev)
|
|||
{
|
||||
uint32_t override = vk_get_version_override();
|
||||
uint32_t version = VK_MAKE_VERSION(1, 0, 68);
|
||||
if (dev->rad_info.has_syncobj_wait_for_submit)
|
||||
version = ${MAX_API_VERSION.c_vk_version()};
|
||||
if (dev->rad_info.has_syncobj_wait_for_submit) {
|
||||
if (ANDROID) {
|
||||
version = VK_MAKE_VERSION(1, 1, 107);
|
||||
} else {
|
||||
version = ${MAX_API_VERSION.c_vk_version()};
|
||||
}
|
||||
}
|
||||
|
||||
return override ? MIN2(override, version) : version;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue