st/mesa: add support for ETC2 formats

Graphics / Mesa 3D Graphics Library / Mesa - Marek Olšák [amd.com] - 11 August 2014 14:53 UTC

The formats are emulated by translating them into plain uncompressed formats, because I don't know of any hardware which supports them.

This is required for GLES 3.0 and ARB_ES3_compatibility (GL 4.3).

463b0ea st/mesa: add support for ETC2 formats
src/mesa/state_tracker/st_cb_texture.c | 54 ++++++++++++++++++++++++++++++--
src/mesa/state_tracker/st_format.c | 24 ++++++++++++++
src/mesa/state_tracker/st_texture.c | 11 ++++---
src/mesa/state_tracker/st_texture.h | 12 ++++++-
4 files changed, 93 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share