mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 17:40:11 +01:00
gallium: use TXP rather than ExtDivide flag
This commit is contained in:
parent
12ab5f9701
commit
a2b917c1cd
1 changed files with 1 additions and 2 deletions
|
|
@ -513,10 +513,9 @@ compile_instruction(
|
|||
case OPCODE_TXP:
|
||||
/* texture lookup with divide by Q component */
|
||||
/* 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->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.Index = inst->TexSrcUnit;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue