gallivm: fix sampling for s3tc srgb formats when using texture cache
authorRoland Scheidegger <sroland@vmware.com>
Wed, 4 Nov 2015 13:21:43 +0000 (14:21 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 4 Nov 2015 13:21:43 +0000 (14:21 +0100)
commitc19443bc8b68ef4697ead1998286e42bd4d8a572
tree4b908887bb244739537f399ae9f7a87a3c6652fd
parentd56a1478a8006af48aa65ab62e676e5f974f1ec3
gallivm: fix sampling for s3tc srgb formats when using texture cache

This actually stored the values as 8bit linear values in the cache,
then did another srgb->linear conversion...
We don't want to do the former (decoding 8bit srgb values to 8bit linear
completely defeats the purpose of srgb in the first place), so just decode
to 8bit srgb.
Fixes piglit.spec.ext_texture_srgb.texwrap formats-s3tc tests.
src/gallium/auxiliary/gallivm/lp_bld_format_soa.c