diff options
author | Ilia Mirkin <[email protected]> | 2015-02-16 01:33:11 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-02-18 22:32:25 -0500 |
commit | d622afdbc3999a4675cf0c343d5ee7863736c40a (patch) | |
tree | 9d76ef38f4665d627f845db411de50b9c8a7677c /src | |
parent | 935ee6b652a97c1db08d999aa48eba0574e0b23e (diff) |
freedreno/a3xx: add hardware ETC1 support
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/a3xx.xml.h | 1 | ||||
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_format.c | 3 |
2 files changed, 4 insertions, 0 deletions
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 |