Lines Matching refs:emit

335 				Instruction *callMain = emit(sw::Shader::OPCODE_CALL);  in output()
339 emit(sw::Shader::OPCODE_RET); in output()
526 emit(sw::Shader::OPCODE_MUL, result, i, left, i, right); in visitBinary()
539 Instruction *dot = emit(sw::Shader::OPCODE_DP(size), result, 0, left, 0, right, i); in visitBinary()
553 Instruction *mul = emit(sw::Shader::OPCODE_MUL, result, i, left, 0, right, i); in visitBinary()
558 Instruction *mad = emit(sw::Shader::OPCODE_MAD, result, i, left, j, right, i, result, i); in visitBinary()
594 Instruction *mov = emit(sw::Shader::OPCODE_MOV, result, 0, left, srcIndex); in visitBinary()
611 Instruction *mov = emit(sw::Shader::OPCODE_MOV, result, index, left, index); in visitBinary()
628 emit(sw::Shader::OPCODE_EXTRACT, result, left, right); in visitBinary()
679 Instruction *mov = emit(sw::Shader::OPCODE_MOV, result, left); in visitBinary()
711 emit(sw::Shader::OPCODE_EQ, &equal, 0, left, index, right, index); in visitBinary()
712 emit(sw::Shader::OPCODE_AND, result, result, &equal); in visitBinary()
724 emit(sw::Shader::OPCODE_NE, &notEqual, 0, left, index, right, index); in visitBinary()
725 emit(sw::Shader::OPCODE_OR, result, result, &notEqual); in visitBinary()
734 …case EOpVectorTimesScalar: if(visit == PostVisit) emit(getOpcode(sw::Shader::OPCODE_MUL, lef… in visitBinary()
742 emit(sw::Shader::OPCODE_MUL, result, i, left, i, right, 0); in visitBinary()
749 emit(sw::Shader::OPCODE_MUL, result, i, left, 0, right, i); in visitBinary()
763 Instruction *dot = emit(dpOpcode, result, 0, left, 0, right, i); in visitBinary()
771 Instruction *mul = emit(sw::Shader::OPCODE_MUL, result, left, right); in visitBinary()
777 Instruction *mad = emit(sw::Shader::OPCODE_MAD, result, 0, left, i, right, 0, result); in visitBinary()
790 Instruction *mul = emit(sw::Shader::OPCODE_MUL, result, i, left, 0, right, i); in visitBinary()
795 Instruction *mad = emit(sw::Shader::OPCODE_MAD, result, i, left, j, right, i, result, i); in visitBinary()
806 emit(sw::Shader::OPCODE_OR, result, left, right); in visitBinary()
813 emit(sw::Shader::OPCODE_MOV, result, left); in visitBinary()
814 Instruction *ifnot = emit(sw::Shader::OPCODE_IF, 0, result); in visitBinary()
819 emit(sw::Shader::OPCODE_MOV, result, right); in visitBinary()
820 emit(sw::Shader::OPCODE_ENDIF); in visitBinary()
824 …case EOpLogicalXor: if(visit == PostVisit) emit(sw::Shader::OPCODE_XOR, result, left, right… in visitBinary()
830 emit(sw::Shader::OPCODE_AND, result, left, right); in visitBinary()
837 emit(sw::Shader::OPCODE_MOV, result, left); in visitBinary()
838 emit(sw::Shader::OPCODE_IF, 0, result); in visitBinary()
842 emit(sw::Shader::OPCODE_MOV, result, right); in visitBinary()
843 emit(sw::Shader::OPCODE_ENDIF); in visitBinary()
862 Instruction *mov = emit(op, result, outCol, arg, isMov ? 1 - row : row); in emitDeterminant()
876 …Instruction *det = emit(sw::Shader::OPCODE_DET2, result, outCol, arg, negate ? col1 : col0, arg, n… in emitDeterminant()
891 …Instruction *det = emit(sw::Shader::OPCODE_DET3, result, outCol, arg, col0, arg, negate ? col2 : c… in emitDeterminant()
898 … Instruction *det = emit(sw::Shader::OPCODE_DET4, result, outCol, arg, 0, arg, 1, arg, 2, arg, 3); in emitDeterminant()
946 emit(negOpcode, result, index, arg, index); in visitUnary()
950 case EOpVectorLogicalNot: if(visit == PostVisit) emit(sw::Shader::OPCODE_NOT, result, arg); break; in visitUnary()
951 case EOpLogicalNot: if(visit == PostVisit) emit(sw::Shader::OPCODE_NOT, result, arg); break; in visitUnary()
960 emit(addOpcode, arg, index, arg, index, &one); in visitUnary()
974 emit(subOpcode, arg, index, arg, index, &one); in visitUnary()
986 emit(addOpcode, result, index, arg, index, &one); in visitUnary()
998 emit(subOpcode, result, index, arg, index, &one); in visitUnary()
1004 …case EOpRadians: if(visit == PostVisit) emit(sw::Shader::OPCODE_MUL, result, arg, &rad); … in visitUnary()
1005 …case EOpDegrees: if(visit == PostVisit) emit(sw::Shader::OPCODE_MUL, result, arg, &deg); … in visitUnary()
1006 case EOpSin: if(visit == PostVisit) emit(sw::Shader::OPCODE_SIN, result, arg); break; in visitUnary()
1007 case EOpCos: if(visit == PostVisit) emit(sw::Shader::OPCODE_COS, result, arg); break; in visitUnary()
1008 case EOpTan: if(visit == PostVisit) emit(sw::Shader::OPCODE_TAN, result, arg); break; in visitUnary()
1009 …case EOpAsin: if(visit == PostVisit) emit(sw::Shader::OPCODE_ASIN, result, arg); break; in visitUnary()
1010 …case EOpAcos: if(visit == PostVisit) emit(sw::Shader::OPCODE_ACOS, result, arg); break; in visitUnary()
1011 …case EOpAtan: if(visit == PostVisit) emit(sw::Shader::OPCODE_ATAN, result, arg); break; in visitUnary()
1012 …case EOpSinh: if(visit == PostVisit) emit(sw::Shader::OPCODE_SINH, result, arg); break; in visitUnary()
1013 …case EOpCosh: if(visit == PostVisit) emit(sw::Shader::OPCODE_COSH, result, arg); break; in visitUnary()
1014 …case EOpTanh: if(visit == PostVisit) emit(sw::Shader::OPCODE_TANH, result, arg); break; in visitUnary()
1015 …case EOpAsinh: if(visit == PostVisit) emit(sw::Shader::OPCODE_ASINH, result, arg); brea… in visitUnary()
1016 …case EOpAcosh: if(visit == PostVisit) emit(sw::Shader::OPCODE_ACOSH, result, arg); brea… in visitUnary()
1017 …case EOpAtanh: if(visit == PostVisit) emit(sw::Shader::OPCODE_ATANH, result, arg); brea… in visitUnary()
1018 case EOpExp: if(visit == PostVisit) emit(sw::Shader::OPCODE_EXP, result, arg); break; in visitUnary()
1019 case EOpLog: if(visit == PostVisit) emit(sw::Shader::OPCODE_LOG, result, arg); break; in visitUnary()
1020 …case EOpExp2: if(visit == PostVisit) emit(sw::Shader::OPCODE_EXP2, result, arg); break; in visitUnary()
1021 …case EOpLog2: if(visit == PostVisit) emit(sw::Shader::OPCODE_LOG2, result, arg); break; in visitUnary()
1022 …case EOpSqrt: if(visit == PostVisit) emit(sw::Shader::OPCODE_SQRT, result, arg); break; in visitUnary()
1023 case EOpInverseSqrt: if(visit == PostVisit) emit(sw::Shader::OPCODE_RSQ, result, arg); break; in visitUnary()
1024 …case EOpAbs: if(visit == PostVisit) emit(getOpcode(sw::Shader::OPCODE_ABS, result), r… in visitUnary()
1025 …case EOpSign: if(visit == PostVisit) emit(getOpcode(sw::Shader::OPCODE_SGN, result), r… in visitUnary()
1026 …case EOpFloor: if(visit == PostVisit) emit(sw::Shader::OPCODE_FLOOR, result, arg); brea… in visitUnary()
1027 …case EOpTrunc: if(visit == PostVisit) emit(sw::Shader::OPCODE_TRUNC, result, arg); brea… in visitUnary()
1028 …case EOpRound: if(visit == PostVisit) emit(sw::Shader::OPCODE_ROUND, result, arg); brea… in visitUnary()
1029 …case EOpRoundEven: if(visit == PostVisit) emit(sw::Shader::OPCODE_ROUNDEVEN, result, arg); … in visitUnary()
1030 …case EOpCeil: if(visit == PostVisit) emit(sw::Shader::OPCODE_CEIL, result, arg, result… in visitUnary()
1031 case EOpFract: if(visit == PostVisit) emit(sw::Shader::OPCODE_FRC, result, arg); break; in visitUnary()
1032 …case EOpIsNan: if(visit == PostVisit) emit(sw::Shader::OPCODE_ISNAN, result, arg); brea… in visitUnary()
1033 …case EOpIsInf: if(visit == PostVisit) emit(sw::Shader::OPCODE_ISINF, result, arg); brea… in visitUnary()
1034 …case EOpLength: if(visit == PostVisit) emit(sw::Shader::OPCODE_LEN(dim(arg)), result, ar… in visitUnary()
1035 …case EOpNormalize: if(visit == PostVisit) emit(sw::Shader::OPCODE_NRM(dim(arg)), result, ar… in visitUnary()
1036 …case EOpDFdx: if(visit == PostVisit) emit(sw::Shader::OPCODE_DFDX, result, arg); break; in visitUnary()
1037 …case EOpDFdy: if(visit == PostVisit) emit(sw::Shader::OPCODE_DFDY, result, arg); break; in visitUnary()
1038 …case EOpFwidth: if(visit == PostVisit) emit(sw::Shader::OPCODE_FWIDTH, result, arg); bre… in visitUnary()
1039 case EOpAny: if(visit == PostVisit) emit(sw::Shader::OPCODE_ANY, result, arg); break; in visitUnary()
1040 case EOpAll: if(visit == PostVisit) emit(sw::Shader::OPCODE_ALL, result, arg); break; in visitUnary()
1041 …case EOpFloatBitsToInt: if(visit == PostVisit) emit(sw::Shader::OPCODE_FLOATBITSTOINT, result, a… in visitUnary()
1042 …case EOpFloatBitsToUint: if(visit == PostVisit) emit(sw::Shader::OPCODE_FLOATBITSTOUINT, result, … in visitUnary()
1043 …case EOpIntBitsToFloat: if(visit == PostVisit) emit(sw::Shader::OPCODE_INTBITSTOFLOAT, result, a… in visitUnary()
1044 …case EOpUintBitsToFloat: if(visit == PostVisit) emit(sw::Shader::OPCODE_UINTBITSTOFLOAT, result, … in visitUnary()
1045 …case EOpPackSnorm2x16: if(visit == PostVisit) emit(sw::Shader::OPCODE_PACKSNORM2x16, result, ar… in visitUnary()
1046 …case EOpPackUnorm2x16: if(visit == PostVisit) emit(sw::Shader::OPCODE_PACKUNORM2x16, result, ar… in visitUnary()
1047 …case EOpPackHalf2x16: if(visit == PostVisit) emit(sw::Shader::OPCODE_PACKHALF2x16, result, arg… in visitUnary()
1048 …case EOpUnpackSnorm2x16: if(visit == PostVisit) emit(sw::Shader::OPCODE_UNPACKSNORM2x16, result, … in visitUnary()
1049 …case EOpUnpackUnorm2x16: if(visit == PostVisit) emit(sw::Shader::OPCODE_UNPACKUNORM2x16, result, … in visitUnary()
1050 …case EOpUnpackHalf2x16: if(visit == PostVisit) emit(sw::Shader::OPCODE_UNPACKHALF2x16, result, a… in visitUnary()
1060 Instruction *mov = emit(sw::Shader::OPCODE_MOV, result, j, arg, i); in visitUnary()
1097 Instruction *div = emit(sw::Shader::OPCODE_DIV, &invDet, &one, &invDet); in visitUnary()
1103 emit(sw::Shader::OPCODE_MUL, result, i, result, i, &invDet); in visitUnary()
1148 Instruction *label = emit(sw::Shader::OPCODE_LABEL); in visitAggregate()
1175 emit(sw::Shader::OPCODE_RET); in visitAggregate()
1210 Instruction *call = emit(sw::Shader::OPCODE_CALL); in visitAggregate()
1248 emit(sw::Shader::OPCODE_MOV, &coord, &projCoord); in visitAggregate()
1252 Instruction *rcp = emit(sw::Shader::OPCODE_RCPX, &coord, arg[1]); in visitAggregate()
1256 Instruction *mul = emit(sw::Shader::OPCODE_MUL, &coord, arg[1], &coord); in visitAggregate()
1262 emit(sw::Shader::OPCODE_MOV, &coord, arg[1]); in visitAggregate()
1273 …Instruction *tex = emit(textureFunction.offset ? sw::Shader::OPCODE_TEXOFFSET : sw::Shader::OPCODE… in visitAggregate()
1278 … Instruction *bias = emit(sw::Shader::OPCODE_MOV, &coord, arg[textureFunction.offset ? 3 : 2]); in visitAggregate()
1281 …Instruction *tex = emit(textureFunction.offset ? sw::Shader::OPCODE_TEXOFFSET : sw::Shader::OPCODE… in visitAggregate()
1290 Instruction *lod = emit(sw::Shader::OPCODE_MOV, &coord, arg[2]); in visitAggregate()
1293 emit(textureFunction.offset ? sw::Shader::OPCODE_TEXLDLOFFSET : sw::Shader::OPCODE_TEXLDL, in visitAggregate()
1303emit(textureFunction.offset ? sw::Shader::OPCODE_TEXELFETCHOFFSET : sw::Shader::OPCODE_TEXELFETCH, in visitAggregate()
1315 emit(textureFunction.offset ? sw::Shader::OPCODE_TEXGRADOFFSET : sw::Shader::OPCODE_TEXGRAD, in visitAggregate()
1322 emit(sw::Shader::OPCODE_TEXSIZE, result, arg[1], arg[0]); in visitAggregate()
1401 Instruction *init = emit(sw::Shader::OPCODE_MOV, result, i, &zero); in visitAggregate()
1465 Instruction *mov = emit(sw::Shader::OPCODE_MOV, result, index + offset, argi, index); in visitAggregate()
1479 …case EOpMod: if(visit == PostVisit) emit(sw::Shader::OPCODE_MOD, result, arg[0], arg[… in visitAggregate()
1484 emit(sw::Shader::OPCODE_TRUNC, arg1, arg[0]); in visitAggregate()
1489 …case EOpPow: if(visit == PostVisit) emit(sw::Shader::OPCODE_POW, result, arg[0], arg[… in visitAggregate()
1490 …case EOpAtan: if(visit == PostVisit) emit(sw::Shader::OPCODE_ATAN2, result, arg[0], ar… in visitAggregate()
1491 …case EOpMin: if(visit == PostVisit) emit(getOpcode(sw::Shader::OPCODE_MIN, result), r… in visitAggregate()
1492 …case EOpMax: if(visit == PostVisit) emit(getOpcode(sw::Shader::OPCODE_MAX, result), r… in visitAggregate()
1496 emit(getOpcode(sw::Shader::OPCODE_MAX, result), result, arg[0], arg[1]); in visitAggregate()
1497 emit(getOpcode(sw::Shader::OPCODE_MIN, result), result, result, arg[2]); in visitAggregate()
1500 …case EOpMix: if(visit == PostVisit) emit(sw::Shader::OPCODE_LRP, result, arg[2], arg[1], a… in visitAggregate()
1501 …case EOpStep: if(visit == PostVisit) emit(sw::Shader::OPCODE_STEP, result, arg[0], arg[1]);… in visitAggregate()
1502 …case EOpSmoothStep: if(visit == PostVisit) emit(sw::Shader::OPCODE_SMOOTH, result, arg[0], arg[1]… in visitAggregate()
1503 …case EOpDistance: if(visit == PostVisit) emit(sw::Shader::OPCODE_DIST(dim(arg[0])), result, arg… in visitAggregate()
1504 …case EOpDot: if(visit == PostVisit) emit(sw::Shader::OPCODE_DP(dim(arg[0])), result, arg[0… in visitAggregate()
1505 …case EOpCross: if(visit == PostVisit) emit(sw::Shader::OPCODE_CRS, result, arg[0], arg[1]); … in visitAggregate()
1506 …case EOpFaceForward: if(visit == PostVisit) emit(sw::Shader::OPCODE_FORWARD(dim(arg[0])), result, … in visitAggregate()
1507 …case EOpReflect: if(visit == PostVisit) emit(sw::Shader::OPCODE_REFLECT(dim(arg[0])), result, … in visitAggregate()
1508 …case EOpRefract: if(visit == PostVisit) emit(sw::Shader::OPCODE_REFRACT(dim(arg[0])), result, … in visitAggregate()
1519 emit(sw::Shader::OPCODE_MUL, result, i, arg[0], i, arg[1], i); in visitAggregate()
1528 Instruction *mul = emit(sw::Shader::OPCODE_MUL, result, i, arg[0], 0, arg[1]); in visitAggregate()
1574 emit(sw::Shader::OPCODE_SELECT, node, condition, trueBlock, falseBlock); in visitSelection()
1578 emit(sw::Shader::OPCODE_IF, 0, condition); in visitSelection()
1588 emit(sw::Shader::OPCODE_ELSE); in visitSelection()
1593 emit(sw::Shader::OPCODE_ENDIF); in visitSelection()
1619 emit(sw::Shader::OPCODE_IF, 0, condition); in visitSelection()
1628 emit(sw::Shader::OPCODE_ELSE); in visitSelection()
1632 emit(sw::Shader::OPCODE_ENDIF); in visitSelection()
1670 emit(sw::Shader::OPCODE_MOV, &iterate, &True); in visitLoop()
1672 emit(sw::Shader::OPCODE_WHILE, 0, &iterate); // FIXME: Implement real do-while in visitLoop()
1679 emit(sw::Shader::OPCODE_TEST); in visitLoop()
1682 emit(sw::Shader::OPCODE_MOV, &iterate, condition); in visitLoop()
1684 emit(sw::Shader::OPCODE_ENDWHILE); in visitLoop()
1721 emit(sw::Shader::OPCODE_WHILE, 0, condition); in visitLoop()
1728 emit(sw::Shader::OPCODE_TEST); in visitLoop()
1740 emit(sw::Shader::OPCODE_ENDWHILE); in visitLoop()
1756 case EOpKill: if(visit == PostVisit) emit(sw::Shader::OPCODE_DISCARD); break; in visitBranch()
1757 case EOpBreak: if(visit == PostVisit) emit(sw::Shader::OPCODE_BREAK); break; in visitBranch()
1758 case EOpContinue: if(visit == PostVisit) emit(sw::Shader::OPCODE_CONTINUE); break; in visitBranch()
1769 emit(sw::Shader::OPCODE_LEAVE); in visitBranch()
1795 emit(sw::Shader::OPCODE_SWITCH); in visitSwitch()
1813 emit(sw::Shader::OPCODE_ELSE); in visitSwitch()
1819 emit(sw::Shader::OPCODE_IF, 0, &result); in visitSwitch()
1841 emit(sw::Shader::OPCODE_ELSE); in visitSwitch()
1854 emit(sw::Shader::OPCODE_ENDIF); in visitSwitch()
1857 emit(sw::Shader::OPCODE_ENDSWITCH); in visitSwitch()
1862 …Instruction *OutputASM::emit(sw::Shader::Opcode op, TIntermTyped *dst, TIntermNode *src0, TIntermN… in emit() function in glsl::OutputASM
1864 return emit(op, dst, 0, src0, 0, src1, 0, src2, 0, src3, 0, src4, 0); in emit()
1867 …Instruction *OutputASM::emit(sw::Shader::Opcode op, TIntermTyped *dst, int dstIndex, TIntermNode *… in emit() function in glsl::OutputASM
1903 case EbtInt: return emit(sw::Shader::OPCODE_B2I, dst, dstIndex, src, srcIndex); in emitCast()
1904 case EbtUInt: return emit(sw::Shader::OPCODE_B2I, dst, dstIndex, src, srcIndex); in emitCast()
1905 case EbtFloat: return emit(sw::Shader::OPCODE_B2F, dst, dstIndex, src, srcIndex); in emitCast()
1912 case EbtBool: return emit(sw::Shader::OPCODE_I2B, dst, dstIndex, src, srcIndex); in emitCast()
1913 case EbtFloat: return emit(sw::Shader::OPCODE_I2F, dst, dstIndex, src, srcIndex); in emitCast()
1920 case EbtBool: return emit(sw::Shader::OPCODE_I2B, dst, dstIndex, src, srcIndex); in emitCast()
1921 case EbtFloat: return emit(sw::Shader::OPCODE_U2F, dst, dstIndex, src, srcIndex); in emitCast()
1928 case EbtBool: return emit(sw::Shader::OPCODE_F2B, dst, dstIndex, src, srcIndex); in emitCast()
1929 case EbtInt: return emit(sw::Shader::OPCODE_F2I, dst, dstIndex, src, srcIndex); in emitCast()
1930 case EbtUInt: return emit(sw::Shader::OPCODE_F2U, dst, dstIndex, src, srcIndex); in emitCast()
1942 return emit(sw::Shader::OPCODE_MOV, dst, dstIndex, src, srcIndex); in emitCast()
1949 emit(op, dst, index, src0, index, src1, index, src2, index); in emitBinary()
1976 Instruction *cmp = emit(opcode, dst, 0, left, index, right, index); in emitCmp()
2274 Instruction *mov = emit(sw::Shader::OPCODE_MOV, dst, index, src, offset + index); in copy()
2411 Instruction *mad = emit(sw::Shader::OPCODE_IMAD, &address, &address, &oldScale, right); in lvalue()
2418 Instruction *mul = emit(sw::Shader::OPCODE_IMUL, &address, &address, &oldScale); in lvalue()
2423 emit(sw::Shader::OPCODE_IMAD, &address, right, &newScale, &address); in lvalue()
2434 emit(sw::Shader::OPCODE_IADD, &address, &address, right); in lvalue()
2439 emit(sw::Shader::OPCODE_IMAD, &address, right, &newScale, &address); in lvalue()