Mesa (master): mesa: add header for share bptc decompress functions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jul 1 19:43:25 UTC 2018


Module: Mesa
Branch: master
Commit: bf4871f9e83def8a38bbecd0b1fe0b909075523d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bf4871f9e83def8a38bbecd0b1fe0b909075523d

Author: Denis Pauk <pauk.denis at gmail.com>
Date:   Tue Jun 26 23:30:49 2018 +0300

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 at gmail.com>

Signed-off-by: Denis Pauk <pauk.denis at gmail.com>
CC: Marek Olšák <maraeo at gmail.com>
Signed-off-by: Marek Olšák <marek.olsak at amd.com>

---

 src/mesa/Makefile.sources            |    1 +
 src/mesa/main/texcompress_bptc.c     | 1451 +---------------------------
 src/mesa/main/texcompress_bptc_tmp.h | 1743 ++++++++++++++++++++++++++++++++++
 3 files changed, 1761 insertions(+), 1434 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=bf4871f9e83def8a38bbecd0b1fe0b909075523d



More information about the mesa-commit mailing list