Merge branch 'master' into r300g-glsl
authorNicolai Hähnle <nhaehnle@gmail.com>
Wed, 7 Oct 2009 18:45:08 +0000 (20:45 +0200)
committerNicolai Hähnle <nhaehnle@gmail.com>
Wed, 7 Oct 2009 18:45:08 +0000 (20:45 +0200)
Conflicts:
src/gallium/drivers/r300/r300_tgsi_to_rc.c

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
1  2 
src/gallium/drivers/r300/r300_tgsi_to_rc.c
src/mesa/drivers/dri/r300/r300_fragprog_common.c

@@@ -260,14 -263,12 +263,12 @@@ static void transform_instruction(struc
      if (src->Instruction.Opcode == TGSI_OPCODE_END)
          return;
  
-     struct rc_instruction * dst = rc_insert_new_instruction(ttr->compiler, ttr->compiler->Program.Instructions.Prev);
-     int i;
+     dst = rc_insert_new_instruction(ttr->compiler, ttr->compiler->Program.Instructions.Prev);
 -    dst->I.Opcode = translate_opcode(src->Instruction.Opcode);
 -    dst->I.SaturateMode = translate_saturate(src->Instruction.Saturate);
 +    dst->U.I.Opcode = translate_opcode(src->Instruction.Opcode);
 +    dst->U.I.SaturateMode = translate_saturate(src->Instruction.Saturate);
  
      if (src->Instruction.NumDstRegs)
 -        transform_dstreg(ttr, &dst->I.DstReg, &src->FullDstRegisters[0]);
 +        transform_dstreg(ttr, &dst->U.I.DstReg, &src->FullDstRegisters[0]);
  
      for(i = 0; i < src->Instruction.NumSrcRegs; ++i) {
          if (src->FullSrcRegisters[i].SrcRegister.File == TGSI_FILE_SAMPLER)