Lines Matching refs:srcReg
384 Parse_ParamReg(struct parse_state *parseState, struct prog_src_register *srcReg) in Parse_ParamReg() argument
404 srcReg->File = PROGRAM_ENV_PARAM; in Parse_ParamReg()
405 srcReg->Index = reg; in Parse_ParamReg()
412 srcReg->RelAddr = GL_TRUE; in Parse_ParamReg()
413 srcReg->File = PROGRAM_ENV_PARAM; in Parse_ParamReg()
414 parseState->indirectRegisterFiles |= (1 << srcReg->File); in Parse_ParamReg()
432 srcReg->Index = -k; in Parse_ParamReg()
437 srcReg->Index = k; in Parse_ParamReg()
634 Parse_SwizzleSrcReg(struct parse_state *parseState, struct prog_src_register *srcReg) in Parse_SwizzleSrcReg() argument
639 srcReg->RelAddr = GL_FALSE; in Parse_SwizzleSrcReg()
646 srcReg->Negate = NEGATE_XYZW; in Parse_SwizzleSrcReg()
651 srcReg->Negate = NEGATE_NONE; in Parse_SwizzleSrcReg()
656 srcReg->File = PROGRAM_TEMPORARY; in Parse_SwizzleSrcReg()
659 srcReg->Index = idx; in Parse_SwizzleSrcReg()
662 if (!Parse_ParamReg(parseState, srcReg)) in Parse_SwizzleSrcReg()
666 srcReg->File = PROGRAM_INPUT; in Parse_SwizzleSrcReg()
669 srcReg->Index = idx; in Parse_SwizzleSrcReg()
676 srcReg->Swizzle = SWIZZLE_NOOP; in Parse_SwizzleSrcReg()
690 srcReg->Swizzle = SWIZZLE_XXXX; in Parse_SwizzleSrcReg()
692 srcReg->Swizzle = SWIZZLE_YYYY; in Parse_SwizzleSrcReg()
694 srcReg->Swizzle = SWIZZLE_ZZZZ; in Parse_SwizzleSrcReg()
696 srcReg->Swizzle = SWIZZLE_WWWW; in Parse_SwizzleSrcReg()
704 srcReg->Swizzle = 0; in Parse_SwizzleSrcReg()
708 srcReg->Swizzle |= 0 << (k*3); in Parse_SwizzleSrcReg()
710 srcReg->Swizzle |= 1 << (k*3); in Parse_SwizzleSrcReg()
712 srcReg->Swizzle |= 2 << (k*3); in Parse_SwizzleSrcReg()
714 srcReg->Swizzle |= 3 << (k*3); in Parse_SwizzleSrcReg()
728 Parse_ScalarSrcReg(struct parse_state *parseState, struct prog_src_register *srcReg) in Parse_ScalarSrcReg() argument
733 srcReg->RelAddr = GL_FALSE; in Parse_ScalarSrcReg()
739 srcReg->Negate = NEGATE_XYZW; in Parse_ScalarSrcReg()
745 srcReg->Negate = NEGATE_NONE; in Parse_ScalarSrcReg()
750 srcReg->File = PROGRAM_TEMPORARY; in Parse_ScalarSrcReg()
753 srcReg->Index = idx; in Parse_ScalarSrcReg()
756 if (!Parse_ParamReg(parseState, srcReg)) in Parse_ScalarSrcReg()
760 srcReg->File = PROGRAM_INPUT; in Parse_ScalarSrcReg()
763 srcReg->Index = idx; in Parse_ScalarSrcReg()
777 srcReg->Swizzle = 0; in Parse_ScalarSrcReg()
780 srcReg->Swizzle = 1; in Parse_ScalarSrcReg()
783 srcReg->Swizzle = 2; in Parse_ScalarSrcReg()
786 srcReg->Swizzle = 3; in Parse_ScalarSrcReg()
1040 struct prog_src_register *srcReg = &inst->SrcReg[0]; in Parse_PrintInstruction() local
1066 srcReg->RelAddr = GL_FALSE; in Parse_PrintInstruction()
1067 srcReg->Negate = NEGATE_NONE; in Parse_PrintInstruction()
1068 srcReg->Swizzle = SWIZZLE_NOOP; in Parse_PrintInstruction()
1074 srcReg->File = PROGRAM_TEMPORARY; in Parse_PrintInstruction()
1077 srcReg->Index = idx; in Parse_PrintInstruction()
1080 srcReg->File = PROGRAM_ENV_PARAM; in Parse_PrintInstruction()
1081 if (!Parse_ParamReg(parseState, srcReg)) in Parse_PrintInstruction()
1085 srcReg->File = PROGRAM_INPUT; in Parse_PrintInstruction()
1088 srcReg->Index = idx; in Parse_PrintInstruction()
1091 srcReg->File = PROGRAM_OUTPUT; in Parse_PrintInstruction()
1094 srcReg->Index = idx; in Parse_PrintInstruction()
1101 srcReg->File = PROGRAM_UNDEFINED; in Parse_PrintInstruction()