i965g: fix typo converting wm src regs
authorKeith Whitwell <keithw@vmware.com>
Fri, 20 Nov 2009 04:40:41 +0000 (20:40 -0800)
committerKeith Whitwell <keithw@vmware.com>
Fri, 20 Nov 2009 04:40:41 +0000 (20:40 -0800)
src/gallium/drivers/i965/brw_wm_fp.c

index 0df84f8546c8e9083bff9b6be83a0495ade23a10..174486a1011feb288a724db4e2d3f3db5424abe5 100644 (file)
@@ -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: