Home
last modified time | relevance | path

Searched refs:setIConst (Results 1 – 25 of 38) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DConstantUnion.h50 case EbtInt: setIConst(static_cast<int>(constant.getIConst())); break; in cast()
51 case EbtUInt: setIConst(static_cast<int>(constant.getUConst())); break; in cast()
52 case EbtBool: setIConst(static_cast<int>(constant.getBConst())); break; in cast()
53 case EbtFloat: setIConst(static_cast<int>(constant.getFConst())); break; in cast()
80 case EbtInt: setIConst(constant.getIConst()); break; in cast()
94 void setIConst(int i) {iConst = i; type = EbtInt; } in setIConst() function
247 case EbtInt: returnValue.setIConst(iConst + constant.iConst); break;
261 case EbtInt: returnValue.setIConst(iConst - constant.iConst); break;
275 case EbtInt: returnValue.setIConst(iConst * constant.iConst); break;
289 case EbtInt: returnValue.setIConst(iConst % constant.iConst); break;
[all …]
DIntermediate.cpp729 unionArray->setIConst(fields.offsets[i]); in addSwizzle()
793 u[0].setIConst(index); in CreateIndexNode()
1565 tempConstArray[i].setIConst(INT_MAX); in fold()
1568 tempConstArray[i].setIConst(unionArray[i].getIConst() / rightUnionArray[i].getIConst()); in fold()
1571 tempConstArray[i].setIConst(unionArray[i].getIConst() % rightUnionArray[i].getIConst()); in fold()
1789 case EbtInt: tempConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold()
1805 case EbtInt: tempConstArray[i].setIConst(~unionArray[i].getIConst()); break; in fold()
1975 tempConstArray[i].setIConst(sw::bit_cast<int>(unionArray[i].getFConst())); in fold()
2057 leftUnionArray[i].setIConst(static_cast<int>(node->getIConst(i))); in promoteConstantUnion()
2060 leftUnionArray[i].setIConst(static_cast<int>(node->getUConst(i))); in promoteConstantUnion()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DConstantUnion.cpp158 setIConst(static_cast<int>(constant.getIConst())); in cast()
161 setIConst(static_cast<int>(constant.getUConst())); in cast()
164 setIConst(static_cast<int>(constant.getBConst())); in cast()
167 setIConst(static_cast<int>(constant.getFConst())); in cast()
224 setIConst(constant.getIConst()); in cast()
415 returnValue.setIConst(gl::WrappingSum<int>(lhs.iConst, rhs.iConst)); in add()
450 returnValue.setIConst(gl::WrappingDiff<int>(lhs.iConst, rhs.iConst)); in sub()
485 returnValue.setIConst(gl::WrappingMul(lhs.iConst, rhs.iConst)); in mul()
515 returnValue.setIConst(iConst % constant.iConst); in operator %()
542 returnValue.setIConst(0); in rshift()
[all …]
DIntermNode.cpp65 result->setIConst(0); in UndefinedConstantFoldingError()
1919 constArray->setIConst(mOperand->getOutermostArraySize()); in fold()
2165 resultArray[i].setIConst(INT_MAX); in FoldBinary()
2182 resultArray[i].setIConst(0x7fffffff); in FoldBinary()
2186 resultArray[i].setIConst(lhs / divisor); in FoldBinary()
2202 resultArray[i].setIConst(0); in FoldBinary()
2206 resultArray[i].setIConst(lhs % divisor); in FoldBinary()
2625 resultArray[i].setIConst(std::numeric_limits<int>::min()); in foldUnaryComponentWise()
2629 resultArray[i].setIConst(-operandArray[i].getIConst()); in foldUnaryComponentWise()
2656 resultArray[i].setIConst(operandArray[i].getIConst()); in foldUnaryComponentWise()
[all …]
DConstantUnion.h28 void setIConst(int i) in setIConst() function
DSymbolTable_autogen.cpp11397 unionArray[0].setIConst(resources.MaxVertexAttribs); in initializeBuiltInVariables()
11406 unionArray[0].setIConst(resources.MaxVertexUniformVectors); in initializeBuiltInVariables()
11415 unionArray[0].setIConst(resources.MaxVertexTextureImageUnits); in initializeBuiltInVariables()
11424 unionArray[0].setIConst(resources.MaxCombinedTextureImageUnits); in initializeBuiltInVariables()
11433 unionArray[0].setIConst(resources.MaxTextureImageUnits); in initializeBuiltInVariables()
11442 unionArray[0].setIConst(resources.MaxFragmentUniformVectors); in initializeBuiltInVariables()
11450 unionArray[0].setIConst(resources.MaxVaryingVectors); in initializeBuiltInVariables()
11458 unionArray[0].setIConst(resources.MaxDrawBuffers); in initializeBuiltInVariables()
11467 unionArray[0].setIConst(resources.MaxDualSourceDrawBuffers); in initializeBuiltInVariables()
11476 unionArray[0].setIConst(resources.MaxVertexOutputVectors); in initializeBuiltInVariables()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DConstantUnion.cpp162 setIConst(static_cast<int>(constant.getIConst())); in cast()
165 setIConst(static_cast<int>(constant.getUConst())); in cast()
168 setIConst(static_cast<int>(constant.getBConst())); in cast()
171 setIConst(static_cast<int>(constant.getFConst())); in cast()
228 setIConst(constant.getIConst()); in cast()
419 returnValue.setIConst(gl::WrappingSum<int>(lhs.iConst, rhs.iConst)); in add()
454 returnValue.setIConst(gl::WrappingDiff<int>(lhs.iConst, rhs.iConst)); in sub()
489 returnValue.setIConst(gl::WrappingMul(lhs.iConst, rhs.iConst)); in mul()
519 returnValue.setIConst(iConst % constant.iConst); in operator %()
546 returnValue.setIConst(0); in rshift()
[all …]
DIntermNode.cpp66 result->setIConst(0); in UndefinedConstantFoldingError()
2270 constArray->setIConst(mOperand->getOutermostArraySize()); in fold()
2516 resultArray[i].setIConst(INT_MAX); in FoldBinary()
2533 resultArray[i].setIConst(0x7fffffff); in FoldBinary()
2537 resultArray[i].setIConst(lhs / divisor); in FoldBinary()
2553 resultArray[i].setIConst(0); in FoldBinary()
2557 resultArray[i].setIConst(lhs % divisor); in FoldBinary()
2977 resultArray[i].setIConst(std::numeric_limits<int>::min()); in foldUnaryComponentWise()
2981 resultArray[i].setIConst(-operandArray[i].getIConst()); in foldUnaryComponentWise()
3008 resultArray[i].setIConst(operandArray[i].getIConst()); in foldUnaryComponentWise()
[all …]
DConstantUnion.h30 void setIConst(int i) in setIConst() function
DSymbolTable_ESSL_autogen.cpp24703 unionArray[0].setIConst(resources.MaxVertexAttribs); in initializeBuiltInVariables()
24712 unionArray[0].setIConst(resources.MaxVertexUniformVectors); in initializeBuiltInVariables()
24721 unionArray[0].setIConst(resources.MaxVertexTextureImageUnits); in initializeBuiltInVariables()
24730 unionArray[0].setIConst(resources.MaxCombinedTextureImageUnits); in initializeBuiltInVariables()
24739 unionArray[0].setIConst(resources.MaxTextureImageUnits); in initializeBuiltInVariables()
24748 unionArray[0].setIConst(resources.MaxFragmentUniformVectors); in initializeBuiltInVariables()
24757 unionArray[0].setIConst(resources.MaxVaryingVectors); in initializeBuiltInVariables()
24766 unionArray[0].setIConst(resources.MaxDrawBuffers); in initializeBuiltInVariables()
24775 unionArray[0].setIConst(resources.MaxDualSourceDrawBuffers); in initializeBuiltInVariables()
24784 unionArray[0].setIConst(resources.MaxVertexOutputVectors); in initializeBuiltInVariables()
[all …]
DSymbolTable_autogen.cpp39496 unionArray[0].setIConst(resources.MaxVertexAttribs); in initializeBuiltInVariables()
39505 unionArray[0].setIConst(resources.MaxVertexUniformVectors); in initializeBuiltInVariables()
39514 unionArray[0].setIConst(resources.MaxVertexTextureImageUnits); in initializeBuiltInVariables()
39523 unionArray[0].setIConst(resources.MaxCombinedTextureImageUnits); in initializeBuiltInVariables()
39532 unionArray[0].setIConst(resources.MaxTextureImageUnits); in initializeBuiltInVariables()
39541 unionArray[0].setIConst(resources.MaxFragmentUniformVectors); in initializeBuiltInVariables()
39550 unionArray[0].setIConst(resources.MaxVaryingVectors); in initializeBuiltInVariables()
39559 unionArray[0].setIConst(resources.MaxDrawBuffers); in initializeBuiltInVariables()
39568 unionArray[0].setIConst(resources.MaxDualSourceDrawBuffers); in initializeBuiltInVariables()
39577 unionArray[0].setIConst(resources.MaxVertexOutputVectors); in initializeBuiltInVariables()
[all …]
/third_party/glslang/glslang/Include/
DConstantUnion.h76 void setIConst(int i) in setIConst() function
449 case EbtInt: returnValue.setIConst(iConst + constant.iConst); break;
471 case EbtInt: returnValue.setIConst(iConst - constant.iConst); break;
493 case EbtInt: returnValue.setIConst(iConst * constant.iConst); break;
515 case EbtInt: returnValue.setIConst(iConst % constant.iConst); break;
591 case EbtInt: returnValue.setIConst(iConst >> constant.iConst); break;
592 case EbtUint: returnValue.setIConst(iConst >> constant.uConst); break;
594 case EbtInt8: returnValue.setIConst(iConst >> constant.i8Const); break;
595 case EbtUint8: returnValue.setIConst(iConst >> constant.u8Const); break;
596 case EbtInt16: returnValue.setIConst(iConst >> constant.i16Const); break;
[all …]
/third_party/glslang/glslang/MachineIndependent/
DConstant.cpp195 newConstArray[i].setIConst(0x7FFFFFFF); in fold()
197 newConstArray[i].setIConst((int)-0x80000000ll); in fold()
199 … newConstArray[i].setIConst(leftUnionArray[i].getIConst() / rightUnionArray[i].getIConst()); in fold()
295 newConstArray[i].setIConst(0); in fold()
306 newConstArray[i].setIConst(0); in fold()
532 case EbtInt: newConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold()
624 newConstArray[i].setIConst(abs(unionArray[i].getIConst())); in fold()
633 newConstArray[i].setIConst(SIGN(unionArray[i].getIConst())); in fold()
681 newConstArray[i].setIConst(unionArray[i].getBConst()); break; in fold()
687 newConstArray[i].setIConst(unionArray[i].getUConst()); break; in fold()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DIntermNode_util.cpp65 u[i].setIConst(0); in CreateZeroNode()
80 u[i].setIConst(42); in CreateZeroNode()
128 u[0].setIConst(index); in CreateIndexNode()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DIntermNode_util.cpp65 u[i].setIConst(0); in CreateZeroNode()
80 u[i].setIConst(42); in CreateZeroNode()
128 u[0].setIConst(index); in CreateIndexNode()
DDriverUniform.cpp207 uniformIndex->setIConst(static_cast<int>(fieldIndex)); in createDriverUniformRef()
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRemoveArrayLengthMethod.cpp61 constArray->setIConst(node->getOperand()->getOutermostArraySize()); in visitUnary()
DRewriteUnaryMinusOperatorInt.cpp83 one->setIConst(1); in visitUnary()
DRemoveDynamicIndexing.cpp73 constant->setIConst(i); in CreateIntConstantNode()
DRewriteAtomicCounters.cpp557 offsetFieldIndex->setIConst(1); in convertFunctionArgument()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRemoveArrayLengthMethod.cpp58 constArray->setIConst(node->getOperand()->getOutermostArraySize()); in visitUnary()
DRemoveDynamicIndexing.cpp76 constant->setIConst(i); in CreateIntConstantNode()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
DRewriteUnaryMinusOperatorInt.cpp88 one->setIConst(1); in visitUnary()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/compiler_tests/
DIntermNode_test.cpp162 constValue[0].setIConst(101); in TEST_F()
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DIntermNode_test.cpp162 constValue[0].setIConst(101); in TEST_F()

12