softpipe: use pipe_get_tile_rgba_format()
authorBrian Paul <brianp@vmware.com>
Thu, 15 Sep 2011 22:21:12 +0000 (16:21 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 16 Sep 2011 13:38:53 +0000 (07:38 -0600)
commit81c688babe6d2539d580429c3bfdc5fc1729ab0d
treeb50d81a6803a7890de71ea77c955f82783932405
parent89999204eca233b879ed055aaf2c6a299c263b16
softpipe: use pipe_get_tile_rgba_format()

Pass an explicit surface format as we do with pipe_put_tile_rgba_format().
This fixes the piglit fbo-srgb-blit test.  With GL_EXT_framebuffer_sRGB we
override the resource's format with an explicit format (linear vs. sRGB).
We need to do so both when getting and putting tiles.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=40402

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/softpipe/sp_tile_cache.c