Lines Matching refs:fsrc
364 tgsi_src(struct nvfx_vpc *vpc, const struct tgsi_full_src_register *fsrc) { in tgsi_src() argument
367 switch (fsrc->Register.File) { in tgsi_src()
369 src.reg = nvfx_reg(NVFXSR_INPUT, fsrc->Register.Index); in tgsi_src()
372 if(fsrc->Register.Indirect) { in tgsi_src()
374 src.reg.index = fsrc->Register.Index; in tgsi_src()
376 src.reg = vpc->r_const[fsrc->Register.Index]; in tgsi_src()
380 src.reg = vpc->imm[fsrc->Register.Index]; in tgsi_src()
383 src.reg = vpc->r_temp[fsrc->Register.Index]; in tgsi_src()
392 src.abs = fsrc->Register.Absolute; in tgsi_src()
393 src.negate = fsrc->Register.Negate; in tgsi_src()
394 src.swz[0] = fsrc->Register.SwizzleX; in tgsi_src()
395 src.swz[1] = fsrc->Register.SwizzleY; in tgsi_src()
396 src.swz[2] = fsrc->Register.SwizzleZ; in tgsi_src()
397 src.swz[3] = fsrc->Register.SwizzleW; in tgsi_src()
402 if(fsrc->Register.Indirect) { in tgsi_src()
403 if(fsrc->Indirect.File == TGSI_FILE_ADDRESS && in tgsi_src()
404 (fsrc->Register.File == TGSI_FILE_CONSTANT || in tgsi_src()
405 fsrc->Register.File == TGSI_FILE_INPUT)) { in tgsi_src()
407 src.indirect_reg = fsrc->Indirect.Index; in tgsi_src()
408 src.indirect_swz = fsrc->Indirect.SwizzleX; in tgsi_src()
475 const struct tgsi_full_src_register *fsrc; in nvfx_vertprog_parse_instruction() local
477 fsrc = &finst->Src[i]; in nvfx_vertprog_parse_instruction()
478 if (fsrc->Register.File == TGSI_FILE_TEMPORARY) { in nvfx_vertprog_parse_instruction()
479 src[i] = tgsi_src(vpc, fsrc); in nvfx_vertprog_parse_instruction()
484 const struct tgsi_full_src_register *fsrc; in nvfx_vertprog_parse_instruction() local
486 fsrc = &finst->Src[i]; in nvfx_vertprog_parse_instruction()
488 switch (fsrc->Register.File) { in nvfx_vertprog_parse_instruction()
490 if (ai == -1 || ai == fsrc->Register.Index) { in nvfx_vertprog_parse_instruction()
491 ai = fsrc->Register.Index; in nvfx_vertprog_parse_instruction()
492 src[i] = tgsi_src(vpc, fsrc); in nvfx_vertprog_parse_instruction()
496 tgsi_src(vpc, fsrc), none, none)); in nvfx_vertprog_parse_instruction()
501 ci == fsrc->Register.Index) { in nvfx_vertprog_parse_instruction()
502 ci = fsrc->Register.Index; in nvfx_vertprog_parse_instruction()
503 src[i] = tgsi_src(vpc, fsrc); in nvfx_vertprog_parse_instruction()
507 tgsi_src(vpc, fsrc), none, none)); in nvfx_vertprog_parse_instruction()
512 ii == fsrc->Register.Index) { in nvfx_vertprog_parse_instruction()
513 ii = fsrc->Register.Index; in nvfx_vertprog_parse_instruction()
514 src[i] = tgsi_src(vpc, fsrc); in nvfx_vertprog_parse_instruction()
518 tgsi_src(vpc, fsrc), none, none)); in nvfx_vertprog_parse_instruction()