anv: Handle UNDEFINED format in image format list
authorSviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Wed, 8 Feb 2023 08:48:40 +0000 (10:48 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 27 Apr 2023 01:04:44 +0000 (01:04 +0000)
commit98991513616a3d8995eb59c70d9cf22bbb0e3b2e
tree8f1a8ec5df866bf505e8bc32d671e7999ad4a44e
parent0ed8a48ce9bbe0fe91e4edb38fa347a31bb81c49
anv: Handle UNDEFINED format in image format list

It's not invalid to have this value in the list, but the only case it
is actually valid as format in the creation of an image or image view
is with Android Hardware Buffers which have their format specified
externally.

So we can just ignore all entries with VK_FORMAT_UNDEFINED.

Cc: 22.2 <mesa-stable>
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17182>
src/intel/vulkan/anv_formats.c
src/intel/vulkan/anv_image.c