Skip to content

vulkan/android: Fix suggestedYcbcrModel with !mapper4

Rob Clark requested to merge robclark/mesa:vk/fix-ahb-format-props into main

What does this MR do and why?

vulkan/android: Fix suggestedYcbcrModel with !mapper4

Only mapper4 supports u_gralloc_get_buffer_basic_info(), other gralloc
implementations do not.  So add a fallback, so that we aren't telling
the app that the suggestedYcbcrModel is RGB_IDENTITY.  We only go down
this path for YUV formats.

Fixes android.graphics.cts.BasicVulkanGpuTest#testBasicBufferImportAndRenderingExternalFormat

Fixes: 8732a619f13b ("vulkan/android: Add common vkGetAndroidHardwareBufferPropertiesANDROID")
Signed-off-by: Rob Clark <robdclark@chromium.org>

Merge request reports