From: Brian Date: Wed, 12 Mar 2008 19:21:41 +0000 (-0600) Subject: gallium: use TXP rather than ExtDivide flag X-Git-Tag: 062012170305~17580^2~390^2~2310 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2b917c1cdb9cdd9b016e5cb9637e90c58fa911b;p=profile%2Fivi%2Fmesa.git gallium: use TXP rather than ExtDivide flag --- diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index 9446b01..f3cfda0 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -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;