mesa: add header for share bptc decompress functions
authorDenis Pauk <pauk.denis@gmail.com>
Tue, 26 Jun 2018 20:30:49 +0000 (23:30 +0300)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 1 Jul 2018 19:42:36 +0000 (15:42 -0400)
commitbf4871f9e83def8a38bbecd0b1fe0b909075523d
tree51764460c3627498be3cc60ea3b63dce361eef65
parent99c6cae2278011309b7ca3d4735c7b341cbb4eef
mesa: add header for share bptc decompress functions

Move shared bptc functions to texcompress_bptc_tmp.h:
* fetch_rgba_unorm_from_block
* fetch_rgb_float_from_block
* compress_rgba_unorm
* compress_rgb_float

Create decompress functions:
* decompress_rgba_unorm
* decompress_rgb_float

Functions will be reused in gallium/auxiliary code.

v2: Add block decompress function
v3: Move all shared code to header
Suggested-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Denis Pauk <pauk.denis@gmail.com>
CC: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/Makefile.sources
src/mesa/main/texcompress_bptc.c
src/mesa/main/texcompress_bptc_tmp.h [new file with mode: 0644]