Skip to content

Commit

Permalink
anv: Force disable KHR_present_wait on android platform
Browse files Browse the repository at this point in the history
KHR_present_wait is not supported well on android platform, it's
already disabled in driver, but it's conditional. The logic to detect
whether to enable this extension is not robust and causes this
extension to be enabled in CTS test:
dEQP-VK.wsi.android.present_id_wait.*. So force disable it to fix this
issue.

Tracked-On: OAM-118018
Signed-off-by: Lin, Shenghua <[email protected]>
  • Loading branch information
ShenghuaLinINTEL authored and celadon committed Apr 30, 2024
1 parent e113e4a commit 11cd630
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vulkan/wsi/wsi_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,11 @@ wsi_GetDeviceGroupSurfacePresentModesKHR(VkDevice device,
bool
wsi_common_vk_instance_supports_present_wait(const struct vk_instance *instance)
{
/* Force disable KHR_present_wait on android platform. */
#if defined(ANDROID) && ANDROID_API_LEVEL >= 34
return false;
#endif

/* We can only expose KHR_present_wait and KHR_present_id
* if we are guaranteed support on all potential VkSurfaceKHR objects. */
if (instance->enabled_extensions.KHR_wayland_surface ||
Expand Down

0 comments on commit 11cd630

Please sign in to comment.