etnaviv: Add support for ETC2 texture compression

Graphics / Mesa 3D Graphics Library / Mesa - Wladimir J. van der Laan [gmail.com] - 21 July 2017 06:18 EDT

Add support for ETC2 compressed textures in the etnaviv driver.

One step closer towards GL ES 3 support.

For now, treat SRGB and RGB formats the same. It looks like these are distinguished using a different bit in sampler state, and not part of the format, but I have not yet been able to confirm this for sure.

(Only enabled on GC3000+ for now, as the GC2000 ETC2 decoder implementation is buggy and we don't work around that)

322b34e etnaviv: Add support for ETC2 texture compression
src/gallium/drivers/etnaviv/etnaviv_format.c | 11 +++++++++++
src/gallium/drivers/etnaviv/etnaviv_screen.c | 12 +++++++++++-
2 files changed, 22 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share