freedreno/a4xx: hook up RGB565 format
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 20 Nov 2015 22:43:11 +0000 (17:43 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Nov 2015 00:46:21 +0000 (19:46 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
src/gallium/drivers/freedreno/a4xx/fd4_format.c

index 9f35654c6feafbd6f98ccb986ac2832ca27585c4..e46a11e94fe5fc350903b0824b4830a1b32228cd 100644 (file)
@@ -47,7 +47,7 @@ enum a4xx_color_fmt {
        RB4_R8_UNORM = 2,
        RB4_R4G4B4A4_UNORM = 8,
        RB4_R5G5B5A1_UNORM = 10,
-       RB4_R5G6R5_UNORM = 14,
+       RB4_R5G6B5_UNORM = 14,
        RB4_R8G8_UNORM = 15,
        RB4_R8G8_SNORM = 16,
        RB4_R8G8_UINT = 17,
index 8eeeb96a3951d4eae1b830fc3d7c0b1a99d044bc..d2a1aee68d312ded42ceaec9b533e0bcb97b9501 100644 (file)
@@ -130,6 +130,7 @@ static struct fd4_format formats[PIPE_FORMAT_COUNT] = {
        _T(L8A8_UINT,    8_8_UINT,  NONE,       WZYX),
        _T(L8A8_SINT,    8_8_SINT,  NONE,       WZYX),
 
+       _T(B5G6R5_UNORM,   5_6_5_UNORM,   R5G6B5_UNORM,   WXYZ),
        _T(B5G5R5A1_UNORM, 5_5_5_1_UNORM, R5G5B5A1_UNORM, WXYZ),
        _T(B5G5R5X1_UNORM, 5_5_5_1_UNORM, R5G5B5A1_UNORM, WXYZ),
        _T(B4G4R4A4_UNORM, 4_4_4_4_UNORM, R4G4B4A4_UNORM, WXYZ),