mesa: Add texel fetch functions for BPTC-compressed textures
authorNeil Roberts <neil@linux.intel.com>
Thu, 17 Jul 2014 13:30:29 +0000 (14:30 +0100)
committerNeil Roberts <neil@linux.intel.com>
Tue, 12 Aug 2014 17:23:50 +0000 (18:23 +0100)
commit442bcd7fd373b2a55c0db9ee806f6f4be64b0285
tree232ffd0d08e78c8d73fe4a13f9cedeba055d21a3
parent7e78033c11858b34e274be91586fdfa750c1db11
mesa: Add texel fetch functions for BPTC-compressed textures

Adds functions to fetch from any of the four BPTC-compressed formats.

v2: Set the alpha component to 1.0 when fetching from the half-float formats
    instead of leaving it uninitialised. Don't linearize the alpha component
    when fetching from sRGB.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/Makefile.sources
src/mesa/main/texcompress.c
src/mesa/main/texcompress_bptc.c [new file with mode: 0644]
src/mesa/main/texcompress_bptc.h [new file with mode: 0644]