From: Keith Whitwell Date: Fri, 20 Nov 2009 04:40:41 +0000 (-0800) Subject: i965g: fix typo converting wm src regs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95d7aca4b9963820e7ead81830340dbeb563897b;p=mesa.git i965g: fix typo converting wm src regs --- diff --git a/src/gallium/drivers/i965/brw_wm_fp.c b/src/gallium/drivers/i965/brw_wm_fp.c index 0df84f8546c..174486a1011 100644 --- a/src/gallium/drivers/i965/brw_wm_fp.c +++ b/src/gallium/drivers/i965/brw_wm_fp.c @@ -1023,7 +1023,7 @@ static void emit_insn( struct brw_wm_compile *c, inst->Instruction.Saturate ); for (i = 0; i < inst->Instruction.NumSrcRegs; i++) - src[i] = translate_src( c, &inst->FullSrcRegisters[0] ); + src[i] = translate_src( c, &inst->FullSrcRegisters[i] ); switch (opcode) { case TGSI_OPCODE_ABS: