st/mesa: use DXT SRGB formats for COMPRESSED_SRGB
authorMarek Olšák <maraeo@gmail.com>
Tue, 21 Dec 2010 05:41:59 +0000 (06:41 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 23 Dec 2010 15:54:57 +0000 (16:54 +0100)
commit3f9e78ac390a095d42f94b8edc02016f18b255dd
tree7e991b1da3ffa20cd1dfe991e6112909f59b05b3
parentbf15ad37824652b2df61dac5991aa0d4eaa0c436
st/mesa: use DXT SRGB formats for COMPRESSED_SRGB

And also check if the formats are supported to return something meaningful
if compression cannot be used.
src/mesa/state_tracker/st_format.c