freedreno/a5xx: rgtc formats
authorRob Clark <robdclark@gmail.com>
Sun, 23 Apr 2017 16:45:23 +0000 (12:45 -0400)
committerRob Clark <robdclark@gmail.com>
Sun, 23 Apr 2017 17:03:25 +0000 (13:03 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/a5xx.xml.h
src/gallium/drivers/freedreno/a5xx/fd5_format.c

index 929990f5197231cd6749e50492fb27a89724e113..44179ed9af8533dff731a52ac0d9f9d39c29b65b 100644 (file)
@@ -200,6 +200,10 @@ enum a5xx_tex_fmt {
        TFMT5_32_32_32_32_UINT = 131,
        TFMT5_32_32_32_32_SINT = 132,
        TFMT5_X8Z24_UNORM = 160,
+       TFMT5_RGTC1_UNORM = 183,
+       TFMT5_RGTC1_SNORM = 184,
+       TFMT5_RGTC2_UNORM = 187,
+       TFMT5_RGTC2_SNORM = 188,
 };
 
 enum a5xx_tex_fetchsize {
index 4e3c834c5170a451b6b8e7a85ec249e2c091b0e4..e6593a24ca41d6c0c8ae66fc8394e540ecc97978 100644 (file)
@@ -293,14 +293,14 @@ static struct fd5_format formats[PIPE_FORMAT_COUNT] = {
 //     _T(BPTC_RGB_FLOAT,  BPTC_FLOAT,  NONE, WZYX),
 //     _T(BPTC_RGB_UFLOAT, BPTC_UFLOAT, NONE, WZYX),
 
-//     _T(RGTC1_UNORM, RGTC1_UNORM, NONE, WZYX),
-//     _T(RGTC1_SNORM, RGTC1_SNORM, NONE, WZYX),
-//     _T(RGTC2_UNORM, RGTC2_UNORM, NONE, WZYX),
-//     _T(RGTC2_SNORM, RGTC2_SNORM, NONE, WZYX),
-//     _T(LATC1_UNORM, RGTC1_UNORM, NONE, WZYX),
-//     _T(LATC1_SNORM, RGTC1_SNORM, NONE, WZYX),
-//     _T(LATC2_UNORM, RGTC2_UNORM, NONE, WZYX),
-//     _T(LATC2_SNORM, RGTC2_SNORM, NONE, WZYX),
+       _T(RGTC1_UNORM, RGTC1_UNORM, NONE, WZYX),
+       _T(RGTC1_SNORM, RGTC1_SNORM, NONE, WZYX),
+       _T(RGTC2_UNORM, RGTC2_UNORM, NONE, WZYX),
+       _T(RGTC2_SNORM, RGTC2_SNORM, NONE, WZYX),
+       _T(LATC1_UNORM, RGTC1_UNORM, NONE, WZYX),
+       _T(LATC1_SNORM, RGTC1_SNORM, NONE, WZYX),
+       _T(LATC2_UNORM, RGTC2_UNORM, NONE, WZYX),
+       _T(LATC2_SNORM, RGTC2_SNORM, NONE, WZYX),
 
 //     _T(ASTC_4x4,   ASTC_4x4,   NONE, WZYX),
 //     _T(ASTC_5x4,   ASTC_5x4,   NONE, WZYX),