r600g: use surface format not underlying texture format
authorDave Airlie <airlied@redhat.com>
Sun, 6 Feb 2011 08:57:11 +0000 (18:57 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 6 Feb 2011 09:00:04 +0000 (19:00 +1000)
commit780c183b8fdf2d301e1eea7f0b83cd96fb6cbf84
tree4e397c8f7199982eb1d919be8ab292a1ca7b8de0
parent68b701f5ded5f6b73a6b07cf37d862fab4836607
r600g: use surface format not underlying texture format

This uses the surface format to set the CB up not the underlying texture
format, since these can and do differ.

Fixes piglit fbo-srgb.
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c