freedreno/a6xx: Add some more 16-bit rgb/rgba swaps to our format tables.

BGR565 is chosen for GL_RGB565 and BGRA4 for GL_RGBA4, so it doesn't
change GLES's behavior.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13046>
This commit is contained in:
Emma Anholt
2021-09-24 15:20:58 -07:00
committed by Marge Bot
parent 4b36e7b1b5
commit a7459b5409
+6
View File
@@ -115,10 +115,16 @@ static struct fd6_format formats[PIPE_FORMAT_COUNT] = {
_T_(L8A8_UINT, 8_8_UINT, WZYX),
_T_(L8A8_SINT, 8_8_SINT, WZYX),
_TC(R5G6B5_UNORM, 5_6_5_UNORM, WZYX),
_TC(B5G6R5_UNORM, 5_6_5_UNORM, WXYZ),
_TC(B5G5R5A1_UNORM, 5_5_5_1_UNORM, WXYZ),
_TC(B5G5R5X1_UNORM, 5_5_5_1_UNORM, WXYZ),
_TC(R4G4B4A4_UNORM, 4_4_4_4_UNORM, WZYX),
_TC(B4G4R4A4_UNORM, 4_4_4_4_UNORM, WXYZ),
_TC(A4R4G4B4_UNORM, 4_4_4_4_UNORM, ZYXW),
_TC(A4B4G4R4_UNORM, 4_4_4_4_UNORM, XYZW),
/* 24-bit */
V__(R8G8B8_UNORM, 8_8_8_UNORM, WZYX),