Home | History | Annotate | Download | only in util

Lines Matching refs:newInst

271       struct tgsi_full_instruction newInst;
357 newInst = tgsi_default_full_instruction();
358 newInst.Instruction.Opcode = TGSI_OPCODE_MUL;
359 newInst.Instruction.NumDstRegs = 1;
360 newInst.Dst[0].Register.File = TGSI_FILE_TEMPORARY;
361 newInst.Dst[0].Register.Index = pctx->texTemp;
362 newInst.Instruction.NumSrcRegs = 2;
363 newInst.Src[0].Register.File = TGSI_FILE_INPUT;
364 newInst.Src[0].Register.Index = wincoordInput;
365 newInst.Src[1].Register.File = TGSI_FILE_IMMEDIATE;
366 newInst.Src[1].Register.Index = pctx->numImmed;
367 ctx->emit_instruction(ctx, &newInst);
370 newInst = tgsi_default_full_instruction();
371 newInst.Instruction.Opcode = TGSI_OPCODE_TEX;
372 newInst.Instruction.NumDstRegs = 1;
373 newInst.Dst[0].Register.File = TGSI_FILE_TEMPORARY;
374 newInst.Dst[0].Register.Index = pctx->texTemp;
375 newInst.Instruction.NumSrcRegs = 2;
376 newInst.Instruction.Texture = TRUE;
377 newInst.Texture.Texture = TGSI_TEXTURE_2D;
378 newInst.Src[0].Register.File = TGSI_FILE_TEMPORARY;
379 newInst.Src[0].Register.Index = pctx->texTemp;
380 newInst.Src[1].Register.File = TGSI_FILE_SAMPLER;
381 newInst.Src[1].Register.Index = pctx->freeSampler;
382 ctx->emit_instruction(ctx, &newInst);
385 newInst = tgsi_default_full_instruction();
386 newInst.Instruction.Opcode = TGSI_OPCODE_KIL;
387 newInst.Instruction.NumDstRegs = 0;
388 newInst.Instruction.NumSrcRegs = 1;
389 newInst.Src[0].Register.File = TGSI_FILE_TEMPORARY;
390 newInst.Src[0].Register.Index = pctx->texTemp;
391 newInst.Src[0].Register.Negate = 1;
392 ctx->emit_instruction(ctx, &newInst);