i965: fs: Add fixup for textureSize on Gen6/7
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 22 Nov 2012 09:13:46 +0000 (22:13 +1300)
committerEric Anholt <eric@anholt.net>
Fri, 14 Dec 2012 23:26:39 +0000 (15:26 -0800)
commitd2dbba87554d9490b49884185a29ca2b46e4a616
treef587efb5ad509e857c6113ae4b95a3314cc2c9d6
parent6e34723ac9fa2d5c34cb2a38118ecf5b856c4992
i965: fs: Add fixup for textureSize on Gen6/7

V2: Moved up into emit(ir_texture *) to avoid duplication and fix
ordering for Gen7; Gen6 math quirks moved into previous patches.

Tested on Gen6 only; passes all the cube_map_array piglits.

V3: Fixed weird whitespace
V4: Use sampler->type; otherwise broken on arrays of samplers.
v5: Minor style fixes (by anholt)

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