freedreno/a4xx: add BPTC support
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 20 Nov 2015 00:17:04 +0000 (19:17 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 20 Nov 2015 14:25:39 +0000 (09:25 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
src/gallium/drivers/freedreno/a4xx/fd4_format.c

index a3fb570597fa87a9937d12daef9d35f7fbf137f6..82c19b90b7d7815fd3c63db1275e69f4c416a6e1 100644 (file)
@@ -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,
index 087d04f3c7434fecefd985b2f824ed0daf0d939f..d109f36b53cb3d670bd5e3f07b2c47b5d89b84bd 100644 (file)
@@ -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),