tu: Treat viewFormatCount==0 as no format list.
authorEmma Anholt <emma@anholt.net>
Fri, 5 Aug 2022 03:28:40 +0000 (20:28 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 9 Aug 2022 18:15:45 +0000 (18:15 +0000)
commitf6bd494cfac760384807fb558a511db3ff9d495d
treed22af81b2ce98b5536d41a474047d4c03949a7e6
parent41280ba2895fc6fafd02d7f2ba4490215aa0914a
tu: Treat viewFormatCount==0 as no format list.

"If viewFormatCount is zero, pViewFormats is ignored and the image is
 created as if the VkImageFormatListCreateInfo structure were not included
 in the pNext chain of VkImageCreateInfo."

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17900>
src/freedreno/vulkan/tu_image.c