i965: Generalize coord+offset lowering pass for ir_txf
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 12 Oct 2013 11:02:55 +0000 (00:02 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 26 Oct 2013 09:56:25 +0000 (22:56 +1300)
commit06de9f8ff15559dffddf26d1969d35e74fbf253f
tree3b331f11ebda41031e7988935d557e53c15a3db0
parent72b5e9c42a6cfe085f7683057672ab2278e45c2e
i965: Generalize coord+offset lowering pass for ir_txf

ir_txf expects an ivec* coordinate, and may be larger than ivec2;
shuffle things around so that this will work.

V2: Fix style nits, use ir_builder

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