mesa: Choose RGTC formats for GL_COMPRESSED_RED, GL_COMPRESSED_RG.
authorEric Anholt <eric@anholt.net>
Wed, 20 Apr 2011 16:31:34 +0000 (09:31 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 23 Apr 2011 20:14:56 +0000 (13:14 -0700)
commitbc880b8d405e72be29c80e7e7e505f59755a388a
tree7b1faf4b5e8cd5d3992e62afaec230972e306ec2
parentda49de811d5e74cf476399db9c641fdb8387dbb3
mesa: Choose RGTC formats for GL_COMPRESSED_RED, GL_COMPRESSED_RG.

We were falling through to the default R8 and RG88 formats instead of
compressing when possible.  Noticed by swrast fbo-blending-formats
actually doing rendering.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texformat.c