From: Ilia Mirkin Date: Mon, 16 Feb 2015 06:33:11 +0000 (-0500) Subject: freedreno/a3xx: add hardware ETC1 support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d622afdbc3999a4675cf0c343d5ee7863736c40a;p=mesa.git freedreno/a3xx: add hardware ETC1 support Signed-off-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/freedreno/a3xx/a3xx.xml.h b/src/gallium/drivers/freedreno/a3xx/a3xx.xml.h index 366bf2f37c7..0dce61c5274 100644 --- a/src/gallium/drivers/freedreno/a3xx/a3xx.xml.h +++ b/src/gallium/drivers/freedreno/a3xx/a3xx.xml.h @@ -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, diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_format.c b/src/gallium/drivers/freedreno/a3xx/fd3_format.c index d0ce5279b9d..a67d0ac6f97 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_format.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_format.c @@ -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