From: Ilia Mirkin Date: Fri, 20 Nov 2015 00:17:04 +0000 (-0500) Subject: freedreno/a4xx: add BPTC support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a93da4e83ee332367a0d6aa601cbcd7f59321b2;p=mesa.git freedreno/a4xx: add BPTC support Signed-off-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h b/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h index a3fb570597f..82c19b90b7d 100644 --- a/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h +++ b/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h @@ -195,6 +195,9 @@ enum a4xx_tex_fmt { TFMT4_DXT1 = 86, TFMT4_DXT3 = 87, TFMT4_DXT5 = 88, + TFMT4_BPTC_UFLOAT = 97, + TFMT4_BPTC_FLOAT = 98, + TFMT4_BPTC = 99, TFMT4_ATC_RGB = 100, TFMT4_ATC_RGBA_EXPLICIT = 101, TFMT4_ATC_RGBA_INTERPOLATED = 102, diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_format.c b/src/gallium/drivers/freedreno/a4xx/fd4_format.c index 087d04f3c74..d109f36b53c 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_format.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_format.c @@ -275,6 +275,11 @@ static struct fd4_format formats[PIPE_FORMAT_COUNT] = { _T(DXT5_RGBA, DXT5, NONE, WZYX), _T(DXT5_SRGBA, DXT5, NONE, WZYX), + _T(BPTC_RGBA_UNORM, BPTC, NONE, WZYX), + _T(BPTC_SRGBA, BPTC, NONE, WZYX), + _T(BPTC_RGB_FLOAT, BPTC_FLOAT, NONE, WZYX), + _T(BPTC_RGB_UFLOAT, BPTC_UFLOAT, NONE, WZYX), + /* faked */ _T(RGTC1_UNORM, 8_8_8_8_UNORM, NONE, WZYX), _T(RGTC1_SNORM, 8_8_8_8_SNORM, NONE, WZYX),