turnip: rework format_to_ifmt
authorJonathan Marek <jonathan@marek.ca>
Wed, 5 Aug 2020 03:49:20 +0000 (23:49 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 14 Aug 2020 13:42:02 +0000 (13:42 +0000)
commit201331edbfeba9f3461a6296187d8dc435484a9d
treeff77f8934b70798c30d93b22a7484fbefcc0b64a
parentaa5ebf0a6dc24d087c28d9dc2be53b6e6a9b2233
turnip: rework format_to_ifmt

Make it somewhat generic instead of listing formats individually.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6304>
src/freedreno/vulkan/tu_clear_blit.c