gallium/auxiliary: Add helper support for bptc format compress/decompress
authorDenis Pauk <pauk.denis@gmail.com>
Tue, 26 Jun 2018 20:30:50 +0000 (23:30 +0300)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 1 Jul 2018 19:42:37 +0000 (15:42 -0400)
commitf69bc797e15fe6beb9e439009fab55f7fae0b7f9
treeee695da5940eee8db43a5faf818960463cae76fa
parentbf4871f9e83def8a38bbecd0b1fe0b909075523d
gallium/auxiliary: Add helper support for bptc format compress/decompress

Reuse code shared with mesa/main/texcompress_bptc.

v2: Use block decompress function
v3: Include static bptc code from texcompress_bptc_tmp.h
Suggested-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Denis Pauk <pauk.denis@gmail.com>
CC: Nicolai Hähnle <nicolai.haehnle@amd.com>
CC: Marek Olšák <maraeo@gmail.com>
CC: Gert Wollny <gw.fossdev@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/meson.build
src/gallium/auxiliary/util/u_format_bptc.c [new file with mode: 0644]
src/gallium/auxiliary/util/u_format_bptc.h [new file with mode: 0644]
src/gallium/auxiliary/util/u_format_table.py
src/gallium/auxiliary/util/u_tile.c