turnip: rework format table to support r5g5b5a1_unorm/b5g5r5a1_unorm
authorJonathan Marek <jonathan@marek.ca>
Thu, 13 Feb 2020 00:57:49 +0000 (19:57 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Feb 2020 12:48:11 +0000 (12:48 +0000)
commit80ceebcdd10450d5d465f4a0917196da006ba479
tree00e92783390611c1b0abb3b18cb831bbc9ac9d21
parent89c6ef4233583469f30b266fcec8486f5d7d2b5a
turnip: rework format table to support r5g5b5a1_unorm/b5g5r5a1_unorm

These formats are an exception that can't be modeled in the current format
table. Switch to a table with only a single a6xx_format per vk format,
and deal with the exceptions separately (currently the only exception is
10_10_10_2_UNORM which has a different color format).

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3806>
src/freedreno/vulkan/tu_blit.c
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_formats.c
src/freedreno/vulkan/tu_image.c
src/freedreno/vulkan/tu_meta_clear.c
src/freedreno/vulkan/tu_pipeline.c
src/freedreno/vulkan/tu_private.h