[Mesa-dev] [PATCH v3 0/4] Add ETC2 block patching for HALTI0

Christian Gmeiner christian.gmeiner at gmail.com
Thu Feb 28 06:26:36 UTC 2019


HALTI0 GPUs have broken ETC2 support (for RGB and RGBA)
formats. The blob driver does per-block patching. The patching
is quite simple: color swaping.

This patch series adds support for the needed block patching
and enabled ETC2 support for HALTI0.

Passes all tested formats of the following piglit:
 spec/!opengl es 3.0/oes_compressed_etc2_texture-miptree_gles3

Christian Gmeiner (4):
  etnaviv: implement ETC2 block patching for HALTI0
  etnaviv: keep track of mapped bo address
  etnaviv: hook-up etc2 patching
  etnaviv: enable ETC2 texture compression support for HALTI0 GPUs

 src/gallium/drivers/etnaviv/Makefile.sources  |   2 +
 src/gallium/drivers/etnaviv/etnaviv_context.h |   1 +
 src/gallium/drivers/etnaviv/etnaviv_etc2.c    | 146 ++++++++++++++++++
 src/gallium/drivers/etnaviv/etnaviv_etc2.h    |  51 ++++++
 .../drivers/etnaviv/etnaviv_resource.c        |   3 +
 .../drivers/etnaviv/etnaviv_resource.h        |   5 +
 src/gallium/drivers/etnaviv/etnaviv_screen.c  |  12 +-
 .../drivers/etnaviv/etnaviv_transfer.c        |  75 +++++++--
 src/gallium/drivers/etnaviv/meson.build       |   2 +
 9 files changed, 277 insertions(+), 20 deletions(-)
 create mode 100644 src/gallium/drivers/etnaviv/etnaviv_etc2.c
 create mode 100644 src/gallium/drivers/etnaviv/etnaviv_etc2.h

-- 
2.20.1



More information about the mesa-dev mailing list