Lines Matching refs:fsrc

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