mesa: Add decoding functions for GL_COMPRESSED_RGB8_ETC2
authorAnuj Phogat <anuj.phogat@gmail.com>
Mon, 17 Sep 2012 21:47:56 +0000 (14:47 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 8 Dec 2012 00:29:48 +0000 (16:29 -0800)
commit81911101eedffed5ab13bce5a76bbcd2eefaffd6
tree2074f7deb6c1281b9aa30fb67ef889d6eca70185
parent38d523584c918ee255c669936a4d16b1c9657e85
mesa: Add decoding functions for GL_COMPRESSED_RGB8_ETC2

Data in GL_COMPRESSED_RGB8_ETC2 format is decoded and stored in
MESA_FORMAT_RGBX8888_REV.

v2: Use CLAMP macro and stdbool.h
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texcompress.c
src/mesa/main/texcompress_etc.c
src/mesa/main/texcompress_etc.h
src/mesa/main/texstore.c
src/mesa/swrast/s_texfetch.c