mesa: Make _mesa_get_compressed_formats match the texture compression specs
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 22 Jul 2011 23:45:50 +0000 (16:45 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 26 Jul 2011 02:57:24 +0000 (19:57 -0700)
commitb189d1635d89cd7d900e8f9a5eed88d7dc0b46cb
tree081d9086a8b10f93739e1b89b38d972ea025399b
parent143b65f7612c255f29d08392192098b1c2bf4b62
mesa: Make _mesa_get_compressed_formats match the texture compression specs

The implementation deviated slightly from the GL_EXT_texture_sRGB spec
and from other implementations.  A giant comment block was added to
justify the somewhat odd behavior of this function.

In addition, the interface had unnecessary cruft.  The 'all' parameter
was false at all callers, so it has been removed.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/get.c
src/mesa/main/texcompress.c
src/mesa/main/texcompress.h