glsl_to_tgsi: fix texture offset translation
authorDave Airlie <airlied@gmail.com>
Mon, 10 Dec 2012 02:23:47 +0000 (12:23 +1000)
committerDave Airlie <airlied@gmail.com>
Mon, 10 Dec 2012 02:23:47 +0000 (12:23 +1000)
commitaf2d9affb19e34e8de08420cee83aeb3da02d4be
tree56e08be9a70e66741a5a441096782125456932f9
parent157f5d043afe8cf7f47baa7b29cf6dfc756feb40
glsl_to_tgsi: fix texture offset translation

I noticed the texelFetch offset test failed on 2D rect samplers
with GLSL 1.40. This is because I wrote the immediate->offset
translation wrong.

Fixed the translation to actually use the ureg info to set the
offsets up.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp