i965: Drop ir->op != ir_txf condition in offset checking.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 1 Sep 2014 08:39:14 +0000 (01:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 16 Oct 2014 00:04:43 +0000 (17:04 -0700)
commitcee2027574579d63cdf9693156542e7862b27131
tree525dd3c17c44475a0ca62a370f48d1d6be3cc978
parenta2c3cfbb4d9547f2faa44df4ca996095ce852b9e
i965: Drop ir->op != ir_txf condition in offset checking.

brw_lower_unnormalized_offset sets ir->offset to NULL if it applies the
texelFetchOffset workarounds, so there's no need to special case it
here---there won't be an offset for ir_txf.

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