From: Nicolai Hähnle Date: Wed, 7 Oct 2009 18:45:08 +0000 (+0200) Subject: Merge branch 'master' into r300g-glsl X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ca7220ea1d31dbdbf1fe7e6f3e6cc4ff8b0abde;p=mesa.git Merge branch 'master' into r300g-glsl Conflicts: src/gallium/drivers/r300/r300_tgsi_to_rc.c Signed-off-by: Nicolai Hähnle --- 7ca7220ea1d31dbdbf1fe7e6f3e6cc4ff8b0abde diff --cc src/gallium/drivers/r300/r300_tgsi_to_rc.c index cc5e5c19e94,4534a6dd80d..74d4fb50876 --- a/src/gallium/drivers/r300/r300_tgsi_to_rc.c +++ b/src/gallium/drivers/r300/r300_tgsi_to_rc.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)