From: Rob Clark Date: Sun, 23 Apr 2017 16:45:23 +0000 (-0400) Subject: freedreno/a5xx: rgtc formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c21fc881edd32de80d21751221dc67f98accf1b0;p=mesa.git freedreno/a5xx: rgtc formats Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/a5xx/a5xx.xml.h b/src/gallium/drivers/freedreno/a5xx/a5xx.xml.h index 929990f5197..44179ed9af8 100644 --- a/src/gallium/drivers/freedreno/a5xx/a5xx.xml.h +++ b/src/gallium/drivers/freedreno/a5xx/a5xx.xml.h @@ -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 { diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_format.c b/src/gallium/drivers/freedreno/a5xx/fd5_format.c index 4e3c834c517..e6593a24ca4 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_format.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_format.c @@ -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),