i965/vs: Put lod parameter in the correct place for Gen4

This was never visible before due to the bogus sampler state pointer.
Fixes remaining vertex texturing breakage on Gen4.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit cace82b0cd)
This commit is contained in:
Chris Forbes 2013-07-30 16:03:58 +12:00 committed by Ian Romanick
parent 3bdd95270d
commit 8efee44c38

View file

@ -2427,7 +2427,7 @@ vec4_visitor::visit(ir_texture *ir)
}
} else /* brw->gen == 4 */ {
mrf = param_base;
writemask = WRITEMASK_Z;
writemask = WRITEMASK_W;
}
emit(MOV(dst_reg(MRF, mrf, lod_type, writemask), lod));
} else if (ir->op == ir_txf) {