venus: resolve YV12 AHB to VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM
authorYiwei Zhang <zzyiwei@chromium.org>
Tue, 7 Jun 2022 06:59:32 +0000 (06:59 +0000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Jun 2022 00:40:10 +0000 (00:40 +0000)
commitb37d97bb867b26f0619fba4786a700c80929bf20
treea7d772b4789c3fc1a28f2ff220eba4d18e233359
parenta7911faa9501b7a32f366182e8a6ebc50cacb440
venus: resolve YV12 AHB to VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM

YV12 is a 3-plane format with minigbm. This change mitigates the crash
of testGLViewLargerHeightDecodeAccuracy[4], and successfully creates the
host side image and imports the memory.

vk_format(1000156002) drm_fourcc(842094169)
offsets(0, 27648, 34560, 0)
strides(256, 128, 128, 0)
modifier(0)

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16913>
src/virtio/vulkan/vn_android.c