glsl_to_tgsi: fix dst register for texturing fetches.
authorDave Airlie <airlied@gmail.com>
Sat, 1 Sep 2012 03:55:38 +0000 (13:55 +1000)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Sun, 20 Jan 2013 14:08:27 +0000 (15:08 +0100)
commitcc8ff5354da0eeba5551b5d5bd12898c38e6191f
tree473bb76e8244a340878b430912ffb61d5a1eadee
parentc4263ac0baa37ee7cff9e36f973afab5fda433d4
glsl_to_tgsi: fix dst register for texturing fetches.

I've no idea why there isn't a piglit that triggers this behaviour,
but while enabling TBOs for softpipe and r600g, I noticed all the
integer tests failed. I tracked it back to the TXF returning a float
when it should be returning an int. This fixed it and I haven't
seen any regressions in a full piglit run on softpipe.

http://bugs.freedesktop.org/55010

NOTE: This is a candidate for the 9.0 branch.

Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 9785ae0973cc206afc36dbc7d5b9553f92d06b47)
src/mesa/state_tracker/st_glsl_to_tgsi.cpp