Lines Matching defs:srcReg
384 Parse_ParamReg(struct parse_state *parseState, struct prog_src_register *srcReg)
404 srcReg->File = PROGRAM_ENV_PARAM;
405 srcReg->Index = reg;
412 srcReg->RelAddr = GL_TRUE;
413 srcReg->File = PROGRAM_ENV_PARAM;
414 parseState->indirectRegisterFiles |= (1 << srcReg->File);
432 srcReg->Index = -k;
437 srcReg->Index = k;
634 Parse_SwizzleSrcReg(struct parse_state *parseState, struct prog_src_register *srcReg)
639 srcReg->RelAddr = GL_FALSE;
646 srcReg->Negate = NEGATE_XYZW;
651 srcReg->Negate = NEGATE_NONE;
656 srcReg->File = PROGRAM_TEMPORARY;
659 srcReg->Index = idx;
662 if (!Parse_ParamReg(parseState, srcReg))
666 srcReg->File = PROGRAM_INPUT;
669 srcReg->Index = idx;
676 srcReg->Swizzle = SWIZZLE_NOOP;
690 srcReg->Swizzle = SWIZZLE_XXXX;
692 srcReg->Swizzle = SWIZZLE_YYYY;
694 srcReg->Swizzle = SWIZZLE_ZZZZ;
696 srcReg->Swizzle = SWIZZLE_WWWW;
704 srcReg->Swizzle = 0;
708 srcReg->Swizzle |= 0 << (k*3);
710 srcReg->Swizzle |= 1 << (k*3);
712 srcReg->Swizzle |= 2 << (k*3);
714 srcReg->Swizzle |= 3 << (k*3);
728 Parse_ScalarSrcReg(struct parse_state *parseState, struct prog_src_register *srcReg)
733 srcReg->RelAddr = GL_FALSE;
739 srcReg->Negate = NEGATE_XYZW;
745 srcReg->Negate = NEGATE_NONE;
750 srcReg->File = PROGRAM_TEMPORARY;
753 srcReg->Index = idx;
756 if (!Parse_ParamReg(parseState, srcReg))
760 srcReg->File = PROGRAM_INPUT;
763 srcReg->Index = idx;
777 srcReg->Swizzle = 0;
780 srcReg->Swizzle = 1;
783 srcReg->Swizzle = 2;
786 srcReg->Swizzle = 3;
815 if (!Parse_SwizzleSrcReg(parseState, &inst->SrcReg[0]))
847 if (!Parse_SwizzleSrcReg(parseState, &inst->SrcReg[0]))
855 if (!Parse_SwizzleSrcReg(parseState, &inst->SrcReg[1]))
863 if (inst->SrcReg[0].File == PROGRAM_ENV_PARAM &&
864 inst->SrcReg[1].File == PROGRAM_ENV_PARAM &&
865 inst->SrcReg[0].Index != inst->SrcReg[1].Index)
869 if (inst->SrcReg[0].File == PROGRAM_INPUT &&
870 inst->SrcReg[1].File == PROGRAM_INPUT &&
871 inst->SrcReg[0].Index != inst->SrcReg[1].Index)
894 if (!Parse_SwizzleSrcReg(parseState, &inst->SrcReg[0]))
902 if (!Parse_SwizzleSrcReg(parseState, &inst->SrcReg[1]))
910 if (!Parse_SwizzleSrcReg(parseState, &inst->SrcReg[2]))
918 if ((inst->SrcReg[0].File == PROGRAM_ENV_PARAM &&
919 inst->SrcReg[1].File == PROGRAM_ENV_PARAM &&
920 inst->SrcReg[0].Index != inst->SrcReg[1].Index) ||
921 (inst->SrcReg[0].File == PROGRAM_ENV_PARAM &&
922 inst->SrcReg[2].File == PROGRAM_ENV_PARAM &&
923 inst->SrcReg[0].Index != inst->SrcReg[2].Index) ||
924 (inst->SrcReg[1].File == PROGRAM_ENV_PARAM &&
925 inst->SrcReg[2].File == PROGRAM_ENV_PARAM &&
926 inst->SrcReg[1].Index != inst->SrcReg[2].Index))
930 if ((inst->SrcReg[0].File == PROGRAM_INPUT &&
931 inst->SrcReg[1].File == PROGRAM_INPUT &&
932 inst->SrcReg[0].Index != inst->SrcReg[1].Index) ||
933 (inst->SrcReg[0].File == PROGRAM_INPUT &&
934 inst->SrcReg[2].File == PROGRAM_INPUT &&
935 inst->SrcReg[0].Index != inst->SrcReg[2].Index) ||
936 (inst->SrcReg[1].File == PROGRAM_INPUT &&
937 inst->SrcReg[2].File == PROGRAM_INPUT &&
938 inst->SrcReg[1].Index != inst->SrcReg[2].Index))
964 if (!Parse_ScalarSrcReg(parseState, &inst->SrcReg[0]))
994 if (!Parse_ScalarSrcReg(parseState, &inst->SrcReg[0]))
1030 * | "PRINT" <string literal> "," <srcReg>
1040 struct prog_src_register *srcReg = &inst->SrcReg[0];
1066 srcReg->RelAddr = GL_FALSE;
1067 srcReg->Negate = NEGATE_NONE;
1068 srcReg->Swizzle = SWIZZLE_NOOP;
1074 srcReg->File = PROGRAM_TEMPORARY;
1077 srcReg->Index = idx;
1080 srcReg->File = PROGRAM_ENV_PARAM;
1081 if (!Parse_ParamReg(parseState, srcReg))
1085 srcReg->File = PROGRAM_INPUT;
1088 srcReg->Index = idx;
1091 srcReg->File = PROGRAM_OUTPUT;
1094 srcReg->Index = idx;
1101 srcReg->File = PROGRAM_UNDEFINED;
1249 if (inst->SrcReg[0].File == PROGRAM_INPUT)
1250 parseState->inputsRead |= (1 << inst->SrcReg[0].Index);
1251 if (inst->SrcReg[1].File == PROGRAM_INPUT)
1252 parseState->inputsRead |= (1 << inst->SrcReg[1].Index);
1253 if (inst->SrcReg[2].File == PROGRAM_INPUT)
1254 parseState->inputsRead |= (1 << inst->SrcReg[2].Index);