turnip: add r5g5b5a1_unorm/b5g5r5a1_unorm formats
authorJonathan Marek <jonathan@marek.ca>
Thu, 27 Feb 2020 20:35:54 +0000 (15:35 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Feb 2020 12:48:11 +0000 (12:48 +0000)
commit0f0662a5515d04f46dac332b69ec324bad16d812
tree85cd215175a322c9bd116ee9257236834f1024a5
parent80ceebcdd10450d5d465f4a0917196da006ba479
turnip: add r5g5b5a1_unorm/b5g5r5a1_unorm  formats

r5g5b5a1/b5g5r5a1 tiled/ubwc is the same as a1r5g5b5 (in memory), but
linear is read as 1_5_5_5 and written with 5_5_5_1 with swap.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3806>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3806>
src/freedreno/registers/a6xx.xml
src/freedreno/vulkan/tu_formats.c