Home | History | Annotate | Download | only in nv30

Lines Matching refs:fsrc

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