etnaviv: implement ETC2 block patching for HALTI0
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Thu, 28 Feb 2019 06:26:37 +0000 (07:26 +0100)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 1 Mar 2019 07:02:17 +0000 (08:02 +0100)
commit5bb4e6956dcd8e0a6916207cc02af3fe5f631e44
tree8c9d6509de793d512b1eb89b5627ba49245e4124
parente8f863e7189076d7005c4586f1512d0f87afc1d8
etnaviv: implement ETC2 block patching for HALTI0

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

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/drivers/etnaviv/Makefile.sources
src/gallium/drivers/etnaviv/etnaviv_etc2.c [new file with mode: 0644]
src/gallium/drivers/etnaviv/etnaviv_etc2.h [new file with mode: 0644]
src/gallium/drivers/etnaviv/meson.build