anv: avoid requiring ordered memory planes for explicit import
What does this MR do and why?
anv: avoid requiring ordered memory planes for explicit import
The spec does not have such requirement, but anv requires it for validating the offset. However, for DRM_FORMAT_YVU420, chroma channels can be swapped upon import to match B/R channel order of VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM.
This fixes some sw codec path in Instagram when interop with gpu.
v2: fix image memory requirement for re-ordered explicit import
This path wasn't hit earlier since default video/camera usage on our Intel integration are on the hw path with NV12. The same re-reordered chroma plane import path for tri-planar format has been long used on other platforms integrations with RADV
, Turnip
and Mali
stacks.
Edited by Yiwei Zhang