Home
last modified time | relevance | path

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

12

/external/swiftshader/src/OpenGL/compiler/
DConstantUnion.h41 case EbtUInt: setFConst(static_cast<float>(constant.getUConst())); break; in cast()
51 case EbtUInt: setIConst(static_cast<int>(constant.getUConst())); break; in cast()
61 case EbtUInt: setUConst(static_cast<unsigned int>(constant.getUConst())); break; in cast()
71 case EbtUInt: setBConst(constant.getUConst() != 0); break; in cast()
81 case EbtUInt: setUConst(constant.getUConst()); break; in cast()
100 unsigned int getUConst() const { return uConst; } in getUConst() function
DIntermediate.cpp1581 tempConstArray[i].setUConst(unionArray[i].getUConst() / rightUnionArray[i].getUConst()); in fold()
1584 tempConstArray[i].setUConst(unionArray[i].getUConst() % rightUnionArray[i].getUConst()); in fold()
1806 case EbtUInt: tempConstArray[i].setUConst(~unionArray[i].getUConst()); break; in fold()
2009 tempConstArray[i].setFConst(sw::bit_cast<float>(unionArray[i].getUConst())); in fold()
2041 leftUnionArray[i].setFConst(static_cast<float>(node->getUConst(i))); in promoteConstantUnion()
2060 leftUnionArray[i].setIConst(static_cast<int>(node->getUConst(i))); in promoteConstantUnion()
2079 leftUnionArray[i].setUConst(static_cast<unsigned int>(node->getUConst(i))); in promoteConstantUnion()
2098 leftUnionArray[i].setBConst(node->getUConst(i) != 0); in promoteConstantUnion()
DValidateSwitch.cpp144 unsigned int uConst = condition->getUConst(0); in visitCase()
Dintermediate.h440 …int getUConst(int index) const { return unionArrayPointer ? unionArrayPointer[index].getUConst() :… in getUConst() function
DintermOut.cpp397 out << node->getUnionArrayPointer()[i].getUConst(); in visitConstantUnion()
/external/angle/src/compiler/translator/
DIntermNode.cpp2362 resultArray[i].setUConst(leftArray[i].getUConst() / in FoldBinary()
2363 rightArray[i].getUConst()); in FoldBinary()
2368 resultArray[i].setUConst(leftArray[i].getUConst() % in FoldBinary()
2369 rightArray[i].getUConst()); in FoldBinary()
2637 gl::unpackSnorm2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise()
2656 gl::unpackUnorm2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise()
2675 gl::unpackHalf2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise()
2704 gl::UnpackUnorm4x8(operandArray[0].getUConst(), f); in foldUnaryNonComponentWise()
2716 gl::UnpackSnorm4x8(operandArray[0].getUConst(), f); in foldUnaryNonComponentWise()
2779 -static_cast<int>(operandArray[i].getUConst()))); in foldUnaryComponentWise()
[all …]
DConstantUnion.cpp65 (rhs.getType() == EbtUInt && rhs.getUConst() <= 31u); in IsValidShiftOffset()
86 unsigned int TConstantUnion::getUConst() const in getUConst() function in sh::TConstantUnion
119 return getUConst() == 0; in isZero()
146 setFConst(static_cast<float>(constant.getUConst())); in cast()
165 setIConst(static_cast<int>(constant.getUConst())); in cast()
184 setUConst(static_cast<unsigned int>(constant.getUConst())); in cast()
212 setBConst(constant.getUConst() != 0); in cast()
231 setUConst(constant.getUConst()); in cast()
DConstantUnion.h58 unsigned int getUConst() const;
DValidateClipCullDistance.cpp117 idx = constIdx->getUConst(); in visitBinary()
DValidateSwitch.cpp231 unsigned int uConst = condition->getUConst(0); in visitCase()
DIntermNode.h341 unsigned int getUConst(size_t index) const in getUConst() function
343 return mUnionArrayPointer ? mUnionArrayPointer[index].getUConst() : 0; in getUConst()
DOutputTree.cpp615 mOut << node->getConstantValue()[i].getUConst(); in visitConstantUnion()
DOutputGLSLBase.cpp473 out << pConstUnion->getUConst() << "u"; in writeConstantUnion()
/external/deqp-deps/glslang/glslang/MachineIndependent/
DConstant.cpp206 … newConstArray[i].setUConst(leftUnionArray[i].getUConst() / rightUnionArray[i].getUConst()); in fold()
533 …rray[i].setUConst(static_cast<unsigned int>(-static_cast<int>(unionArray[i].getUConst()))); break; in fold()
679 newConstArray[i].setBConst(unionArray[i].getUConst() != 0); break; in fold()
687 newConstArray[i].setIConst(unionArray[i].getUConst()); break; in fold()
703 newConstArray[i].setDConst(unionArray[i].getUConst()); break; in fold()
845 newConstArray[i].setI8Const((signed char)unionArray[i].getUConst()); break; in fold()
847 newConstArray[i].setI16Const((signed short)unionArray[i].getUConst()); break; in fold()
849 newConstArray[i].setI64Const(unionArray[i].getUConst()); break; in fold()
851 newConstArray[i].setU8Const((unsigned char)unionArray[i].getUConst()); break; in fold()
853 newConstArray[i].setU16Const((unsigned short)unionArray[i].getUConst()); break; in fold()
[all …]
DpropagateNoContraction.cpp137 unsigned struct_dereference_index = node->getAsConstantUnion()->getConstArray()[0].getUConst(); in getStructIndexFromConstantUnion()
DParseHelper.cpp2006 offset[0] = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
2007 offset[1] = (*argp)[1]->getAsConstantUnion()->getConstArray()[1].getUConst(); in builtInOpCheck()
2008 offset[2] = (*argp)[1]->getAsConstantUnion()->getConstArray()[2].getUConst(); in builtInOpCheck()
2009 offset[3] = (*argp)[1]->getAsConstantUnion()->getConstArray()[3].getUConst(); in builtInOpCheck()
2023 mask[0] = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
2024 mask[1] = (*argp)[1]->getAsConstantUnion()->getConstArray()[1].getUConst(); in builtInOpCheck()
2025 mask[2] = (*argp)[1]->getAsConstantUnion()->getConstArray()[2].getUConst(); in builtInOpCheck()
2091 …location = (*argp)[10]->getAsConstantUnion()->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
2104 … location = (*argp)[1]->getAsConstantUnion()->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
2234 … unsigned vertexIdx = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
DConstant.cpp206 … newConstArray[i].setUConst(leftUnionArray[i].getUConst() / rightUnionArray[i].getUConst()); in fold()
538 …rray[i].setUConst(static_cast<unsigned int>(-static_cast<int>(unionArray[i].getUConst()))); break; in fold()
678 newConstArray[i].setBConst(unionArray[i].getUConst() != 0); break; in fold()
686 newConstArray[i].setIConst(unionArray[i].getUConst()); break; in fold()
702 newConstArray[i].setDConst(unionArray[i].getUConst()); break; in fold()
844 newConstArray[i].setI8Const((signed char)unionArray[i].getUConst()); break; in fold()
846 newConstArray[i].setI16Const((signed short)unionArray[i].getUConst()); break; in fold()
848 newConstArray[i].setI64Const(unionArray[i].getUConst()); break; in fold()
850 newConstArray[i].setU8Const((unsigned char)unionArray[i].getUConst()); break; in fold()
852 newConstArray[i].setU16Const((unsigned short)unionArray[i].getUConst()); break; in fold()
[all …]
DSpirvIntrinsics.cpp214 unsigned value = constant->getConstArray()[0].getUConst(); in getSpirvDecorateQualifierString()
DpropagateNoContraction.cpp137 unsigned struct_dereference_index = node->getAsConstantUnion()->getConstArray()[0].getUConst(); in getStructIndexFromConstantUnion()
DParseHelper.cpp2185 offset[0] = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
2186 offset[1] = (*argp)[1]->getAsConstantUnion()->getConstArray()[1].getUConst(); in builtInOpCheck()
2187 offset[2] = (*argp)[1]->getAsConstantUnion()->getConstArray()[2].getUConst(); in builtInOpCheck()
2188 offset[3] = (*argp)[1]->getAsConstantUnion()->getConstArray()[3].getUConst(); in builtInOpCheck()
2202 mask[0] = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
2203 mask[1] = (*argp)[1]->getAsConstantUnion()->getConstArray()[1].getUConst(); in builtInOpCheck()
2204 mask[2] = (*argp)[1]->getAsConstantUnion()->getConstArray()[2].getUConst(); in builtInOpCheck()
2280 …location = (*argp)[10]->getAsConstantUnion()->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
2293 … location = (*argp)[1]->getAsConstantUnion()->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
2441 … unsigned vertexIdx = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
/external/angle/src/tests/test_utils/
DConstantFoldingTest.h116 abs(static_cast<int>(node.getUConst() - value)) && in isEqual()
117 static_cast<int>(node.getUConst() - value) != std::numeric_limits<int>::min(); in isEqual()
DShaderCompileTreeTest.cpp87 isZero = (node->getUConst(i) == 0u); in visitConstantUnion()
/external/angle/src/compiler/translator/tree_util/
DReplaceClipCullDistanceVariable.cpp133 idx = constIdx->getUConst(); in visitBinary()
/external/angle/src/compiler/translator/tree_ops/vulkan/
DReplaceForShaderFramebufferFetch.cpp182 idx = constIdx->getUConst(); in visitBinary()
/external/angle/third_party/vulkan-deps/glslang/src/glslang/Include/
DConstantUnion.h123 unsigned int getUConst() const { return uConst; } in getUConst() function

12