broadcom/vc5: Don't forget to set the RT format for 1555 textures.
authorEric Anholt <eric@anholt.net>
Fri, 13 Oct 2017 20:13:36 +0000 (13:13 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 17 Oct 2017 19:35:16 +0000 (12:35 -0700)
Fixes dEQP-GLES3.functional.fbo.completeness.renderable.texture.color0.rgb5_a1

src/gallium/drivers/vc5/vc5_formats.c

index 5d807b1a4d488732c29ea827da4945f67b524758..114f2d741e8fb05b01e221d86705ff24a9fca356 100644 (file)
@@ -111,8 +111,8 @@ static const struct vc5_format vc5_format_table[] = {
         FORMAT(B4G4R4A4_UNORM,    ABGR4444,     RGBA4,       SWIZ_YZWX, 16, 0),
         FORMAT(B4G4R4X4_UNORM,    ABGR4444,     RGBA4,       SWIZ_YZW1, 16, 0),
 
-        FORMAT(A1B5G5R5_UNORM,    NO,           RGB5_A1,     SWIZ_XYZW, 16, 0),
-        FORMAT(X1B5G5R5_UNORM,    NO,           RGB5_A1,     SWIZ_XYZ1, 16, 0),
+        FORMAT(A1B5G5R5_UNORM,    ABGR1555,     RGB5_A1,     SWIZ_XYZW, 16, 0),
+        FORMAT(X1B5G5R5_UNORM,    ABGR1555,     RGB5_A1,     SWIZ_XYZ1, 16, 0),
         FORMAT(B5G6R5_UNORM,      BGR565,       RGB565,      SWIZ_XYZ1, 16, 0),
 
         FORMAT(R8_UNORM,          R8,           R8,          SWIZ_X001, 16, 0),