tu: Move the vkCreateImage format list checks to helper functions.
authorEmma Anholt <emma@anholt.net>
Fri, 5 Aug 2022 03:21:20 +0000 (20:21 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 9 Aug 2022 18:15:45 +0000 (18:15 +0000)
commit41280ba2895fc6fafd02d7f2ba4490215aa0914a
tree02d0163e3c3034b035c13913671d5f8ffec65762
parent8dda0a01bb3ea5a618a73ea4e506cb61e68e6d0c
tu: Move the vkCreateImage format list checks to helper functions.

Mixing up the two checks made them both harder to read.

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