mesa/st: fix generate mipmap for signed compressed formats.
authorDave Airlie <airlied@redhat.com>
Wed, 2 Mar 2011 05:28:32 +0000 (15:28 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Mar 2011 05:30:17 +0000 (15:30 +1000)
commit64f19b90d777ab21f8053eddcce83369754592a6
tree8dace1fd3725012964c3f3220602618284d8ccf5
parent8d62b2aca99ba67f794dd682ed1ec49dc8826390
mesa/st: fix generate mipmap for signed compressed formats.

This was always converting to 8-bit per channel unsigned formats,
which isn't suitable for RGTC signed formats, this special cases
those two formats and converts to floats for those.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_gen_mipmap.c