gallium: use TXP rather than ExtDivide flag

This commit is contained in:
Brian 2008-03-12 13:21:41 -06:00
parent 12ab5f9701
commit a2b917c1cd

View file

@ -513,10 +513,9 @@ compile_instruction(
case OPCODE_TXP: case OPCODE_TXP:
/* texture lookup with divide by Q component */ /* texture lookup with divide by Q component */
/* convert to TEX w/ special flag for division */ /* convert to TEX w/ special flag for division */
fullinst->Instruction.Opcode = TGSI_OPCODE_TEX; fullinst->Instruction.Opcode = TGSI_OPCODE_TXP;
fullinst->Instruction.NumSrcRegs = 2; fullinst->Instruction.NumSrcRegs = 2;
fullinst->InstructionExtTexture.Texture = map_texture_target( inst->TexSrcTarget ); fullinst->InstructionExtTexture.Texture = map_texture_target( inst->TexSrcTarget );
fullinst->FullSrcRegisters[0].SrcRegisterExtSwz.ExtDivide = TGSI_EXTSWIZZLE_W;
fullinst->FullSrcRegisters[1].SrcRegister.File = TGSI_FILE_SAMPLER; fullinst->FullSrcRegisters[1].SrcRegister.File = TGSI_FILE_SAMPLER;
fullinst->FullSrcRegisters[1].SrcRegister.Index = inst->TexSrcUnit; fullinst->FullSrcRegisters[1].SrcRegister.Index = inst->TexSrcUnit;
break; break;