i965/fs: Move texel offset handling to visit(ir_texture *).
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 1 Sep 2014 08:58:06 +0000 (01:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 16 Oct 2014 00:04:45 +0000 (17:04 -0700)
commit1f76fcf231cf7c8c19586e93ba8e4d800ad3be72
tree1ee4b8f3affecb2950abcd83d94a020c191accaa
parentcee2027574579d63cdf9693156542e7862b27131
i965/fs: Move texel offset handling to visit(ir_texture *).

This moves the handling of non-constant texel offset subexpression trees
to the place where we visit other such subtrees.  It also removes some
uses of ir->offset in emit_texture_gen7, which will be useful when we
write the backend for our new upcoming IR.

Based on a patch by Connor Abbott.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_fp.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp