vc4: Add support for sampling from sRGB.
authorEric Anholt <eric@anholt.net>
Thu, 2 Oct 2014 21:01:29 +0000 (14:01 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 3 Oct 2014 01:28:45 +0000 (18:28 -0700)
commit24d998056275f4fab9bf3e98c962d91245ef1b7b
tree3930f42c2853390c7b849e1d9a2a799eff1a3725
parent3dd9a0d6fdea1ff5b1fe903fce206bf1d1515400
vc4: Add support for sampling from sRGB.

This isn't perfect -- the filtering is happening on the srgb values, and
we're decoding afterwards, which is not what you want.  I think that's the
cause of some additional texwrap(GL_CLAMP, LINEAR) failures, though many
other texwrap tests on srgb start to pass since unfiltered values come out
correct.
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.h