etnaviv: implement ETC2 block patching for HALTI0

Graphics / Mesa 3D Graphics Library / Mesa - Christian Gmeiner [gmail.com] - 1 March 2019 07:02 EST

ETC2 is supported with HALTI0, however that implementation is buggy in hardware. The blob driver does per-block patching to work around this. We need to swap colors for t-mode etc2 blocks.

Changes v2 -> v3:- Drop redundant format check

5bb4e6956dc etnaviv: implement ETC2 block patching for HALTI0
src/gallium/drivers/etnaviv/Makefile.sources | 2 +
src/gallium/drivers/etnaviv/etnaviv_etc2.c | 146 +++++++++++++++++++++++++++
src/gallium/drivers/etnaviv/etnaviv_etc2.h | 51 ++++++++++
src/gallium/drivers/etnaviv/meson.build | 2 +
4 files changed, 201 insertions(+)

Upstream: cgit.freedesktop.org


  • Share