broadcom/vc5: Add missing SRGBA8 ETC2 support.
authorEric Anholt <eric@anholt.net>
Fri, 3 Nov 2017 01:49:58 +0000 (18:49 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 7 Nov 2017 17:40:25 +0000 (09:40 -0800)
Fixes piglit oes_compressed_etc2_texture-miptree srgb8-alpha8.

src/gallium/drivers/vc5/vc5_formats.c

index d9c7a80b3eeab4bb9fbdfcfcc1f08ad392e3db62..92b88ef0e0093985853aa78be8dd488a0bdc3f23 100644 (file)
@@ -195,6 +195,7 @@ static const struct vc5_format vc5_format_table[] = {
         FORMAT(ETC2_RGB8A1,       NO,           RGB8_PUNCHTHROUGH_ALPHA1, SWIZ_XYZW, 16, 0),
         FORMAT(ETC2_SRGB8A1,      NO,           RGB8_PUNCHTHROUGH_ALPHA1, SWIZ_XYZW, 16, 0),
         FORMAT(ETC2_RGBA8,        NO,           RGBA8_ETC2_EAC, SWIZ_XYZW, 16, 0),
+        FORMAT(ETC2_SRGBA8,       NO,           RGBA8_ETC2_EAC, SWIZ_XYZW, 16, 0),
         FORMAT(ETC2_R11_UNORM,    NO,           R11_EAC,     SWIZ_X001, 16, 0),
         FORMAT(ETC2_R11_SNORM,    NO,           SIGNED_R11_EAC, SWIZ_X001, 16, 0),
         FORMAT(ETC2_RG11_UNORM,   NO,           RG11_EAC,    SWIZ_XY01, 16, 0),