Lines Matching refs:fsrc
371 tgsi_src(struct nvfx_fpc *fpc, const struct tgsi_full_src_register *fsrc)
375 switch (fsrc->Register.File) {
377 src.reg = fpc->r_input[fsrc->Register.Index];
380 src.reg = nvfx_reg(NVFXSR_CONST, fsrc->Register.Index);
383 assert(fsrc->Register.Index < fpc->nr_imm);
384 src.reg = fpc->r_imm[fsrc->Register.Index];
387 src.reg = fpc->r_temp[fsrc->Register.Index];
391 src.reg = fpc->r_result[fsrc->Register.Index];
400 src.abs = fsrc->Register.Absolute;
401 src.negate = fsrc->Register.Negate;
402 src.swz[0] = fsrc->Register.SwizzleX;
403 src.swz[1] = fsrc->Register.SwizzleY;
404 src.swz[2] = fsrc->Register.SwizzleZ;
405 src.swz[3] = fsrc->Register.SwizzleW;
455 const struct tgsi_full_src_register *fsrc;
457 fsrc = &finst->Src[i];
458 if (fsrc->Register.File == TGSI_FILE_TEMPORARY) {
459 src[i] = tgsi_src(fpc, fsrc);
464 const struct tgsi_full_src_register *fsrc;
466 fsrc = &finst->Src[i];
468 switch (fsrc->Register.File) {
470 if(fpc->fp->info.input_semantic_name[fsrc->Register.Index] == TGSI_SEMANTIC_FOG && (0
471 || fsrc->Register.SwizzleX == PIPE_SWIZZLE_ALPHA
472 || fsrc->Register.SwizzleY == PIPE_SWIZZLE_ALPHA
473 || fsrc->Register.SwizzleZ == PIPE_SWIZZLE_ALPHA
474 || fsrc->Register.SwizzleW == PIPE_SWIZZLE_ALPHA
478 addend.swz[0] = fsrc->Register.SwizzleX;
479 addend.swz[1] = fsrc->Register.SwizzleY;
480 addend.swz[2] = fsrc->Register.SwizzleZ;
481 addend.swz[3] = fsrc->Register.SwizzleW;
483 nvfx_fp_emit(fpc, arith(0, ADD, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), addend, none));
484 } else if (ai == -1 || ai == fsrc->Register.Index) {
485 ai = fsrc->Register.Index;
486 src[i] = tgsi_src(fpc, fsrc);
489 nvfx_fp_emit(fpc, arith(0, MOV, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), none, none));
494 ci == fsrc->Register.Index) {
495 ci = fsrc->Register.Index;
496 src[i] = tgsi_src(fpc, fsrc);
499 nvfx_fp_emit(fpc, arith(0, MOV, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), none, none));
504 ii == fsrc
505 ii = fsrc->Register.Index;
506 src[i] = tgsi_src(fpc, fsrc);
509 nvfx_fp_emit(fpc, arith(0, MOV, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), none, none));
516 unit = fsrc->Register.Index;