freedreno/a3xx: add hardware ETC1 support
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 16 Feb 2015 06:33:11 +0000 (01:33 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 19 Feb 2015 03:32:25 +0000 (22:32 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a3xx/a3xx.xml.h
src/gallium/drivers/freedreno/a3xx/fd3_format.c

index 366bf2f37c7b53419804fac5c365ab1b39a6458b..0dce61c5274d237775f4e92726c0547942c26df6 100644 (file)
@@ -130,6 +130,7 @@ enum a3xx_tex_fmt {
        TFMT_I420_Y = 24,
        TFMT_I420_U = 26,
        TFMT_I420_V = 27,
+       TFMT_ETC1 = 34,
        TFMT_DXT1 = 36,
        TFMT_DXT3 = 37,
        TFMT_DXT5 = 38,
index d0ce5279b9d9713749186aab366468e1320a3e23..a67d0ac6f97746d4c5d74f00b536dc04da3b5eef 100644 (file)
@@ -246,6 +246,9 @@ static struct fd3_format formats[PIPE_FORMAT_COUNT] = {
        VT(R32G32B32A32_FLOAT,   32_32_32_32_FLOAT, R32G32B32A32_FLOAT, WZYX),
        _T(R32G32B32X32_FLOAT,   32_32_32_32_FLOAT, R32G32B32A32_FLOAT, WZYX),
        V_(R32G32B32A32_FIXED,   32_32_32_32_FIXED, NONE,               WZYX),
+
+       /* compressed */
+       _T(ETC1_RGB8, ETC1, NONE, WZYX),
 };
 
 enum a3xx_vtx_fmt