turnip: rework format helpers
authorJonathan Marek <jonathan@marek.ca>
Wed, 8 Apr 2020 14:56:16 +0000 (10:56 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 9 Apr 2020 14:43:02 +0000 (14:43 +0000)
commit51fe52d2fdf6dad6de424c8110ab83b90f1ea0aa
treef8f55e23e53fd8a2bedef0f8635d279c6d38c8ac
parent009082dcfff5cbbce007d1b455ad33db1954c7aa
turnip: rework format helpers

* Take tile_mode as input directly
* tu6_format_gmem to tu6_base_format, use may not be limited to GMEM
* Add new helpers that will return the correct tile_mode as for image level
  as part of the format.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3783>
src/freedreno/vulkan/tu_blit.c
src/freedreno/vulkan/tu_blit.h
src/freedreno/vulkan/tu_formats.c
src/freedreno/vulkan/tu_image.c
src/freedreno/vulkan/tu_meta_clear.c
src/freedreno/vulkan/tu_private.h