Home
last modified time | relevance | path

Searched refs:getBasicType (Results 1 – 25 of 167) sorted by relevance

1234567

/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
DIntermediate.cpp119 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addBinaryMath()
131 if (left->isReference() && isTypeInt(right->getBasicType())) { in addBinaryMath()
145 if (op == EOpAdd && right->isReference() && isTypeInt(left->getBasicType())) { in addBinaryMath()
288 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addAssign()
358 if (child->getType().getBasicType() == EbtBlock) in addUnaryMath()
367 …if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().… in addUnaryMath()
377 if (child->getType().getBasicType() == EbtStruct || child->getType().isArray()) in addUnaryMath()
536 switch (node->getBasicType()) { in isConversionAllowed()
547 if (getSource() == EShSourceHlsl && node->getBasicType() == EbtSampler) in isConversionAllowed()
552 if (node->getBasicType() == EbtSampler && op == EOpAssign && in isConversionAllowed()
[all …]
DSpirvIntrinsics.cpp205 if (constant->getBasicType() == EbtFloat) { in getSpirvDecorateQualifierString()
209 else if (constant->getBasicType() == EbtInt) { in getSpirvDecorateQualifierString()
213 else if (constant->getBasicType() == EbtUint) { in getSpirvDecorateQualifierString()
217 else if (constant->getBasicType() == EbtBool) { in getSpirvDecorateQualifierString()
221 else if (constant->getBasicType() == EbtString) { in getSpirvDecorateQualifierString()
279 if (constant->getBasicType() != EbtFloat && in makeSpirvTypeParameters()
280 constant->getBasicType() != EbtInt && in makeSpirvTypeParameters()
281 constant->getBasicType() != EbtUint && in makeSpirvTypeParameters()
282 constant->getBasicType() != EbtBool && in makeSpirvTypeParameters()
283 constant->getBasicType() != EbtString) in makeSpirvTypeParameters()
Dreflection.cpp100 if (base.getType().getBasicType() == EbtBlock) { in addUniform()
140 if (type.getBasicType() == EbtBlock) { in addPipeIOVariable()
147 if (type.isArray() && type.getBasicType() == EbtBlock) { in addPipeIOVariable()
201 if (type.getBasicType() == EbtBlock) in getArrayStride()
222 …bool blockParent = (parentType.getBasicType() == EbtBlock && parentType.getQualifier().storage == … in countAggregateMembers()
263 …bool blockParent = (baseType.getBasicType() == EbtBlock && baseType.getQualifier().storage == EvqB… in blowUpActiveAggregate()
282 if (terminalType->getBasicType() == EbtBlock) {} in blowUpActiveAggregate()
285 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) in blowUpActiveAggregate()
303 if (terminalType->getBasicType() == EbtBlock) {} in blowUpActiveAggregate()
306 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) { in blowUpActiveAggregate()
[all …]
DParseHelper.cpp594 if (base->getBasicType() == EbtBlock) { in handleBracketDereference()
605 else if (base->getBasicType() == EbtSampler && version >= 130) { in handleBracketDereference()
648 if ((! limits.generalSamplerIndexing && base->getBasicType() == EbtSampler) || in handleIndexLimits()
947 (base->isFloatingDomain() || base->isIntegerDomain() || base->getBasicType() == EbtBool)) { in handleDotDereference()
1015 TType type(base->getBasicType(), EvqTemporary, selectors.size()); in handleDotSwizzle()
1029 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotSwizzle()
1033 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotSwizzle()
1199 if (function.getType().getBasicType() != EbtVoid) in handleFunctionDefinition()
1542 if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
1577 else if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
[all …]
DlinkValidate.cpp586 block->getType().getBasicType() != unitBlock->getType().getBasicType() || in mergeBlockDefinitions()
712 …if (symbol->getType().getBasicType() == EbtBlock && unitSymbol->getType().getBasicType() == EbtBlo… in mergeLinkerObjects()
752 if (unitLinkerObjects[unitLinkObj]->getAsSymbolNode()->getBasicType() == EbtBlock && in mergeLinkerObjects()
772 if (symbol->getBasicType() == EbtBlock && IsAnonymous(symbol->getName())) { in mergeLinkerObjects()
857 …if (symbol.getType().getBasicType() == EbtBlock && unitSymbol.getType().getBasicType() == EbtBlock… in mergeErrorCheck()
994 if (type.getBasicType() == glslang::EbtBlock) in sharedBlockCheck()
1480 } else if (size == 2 && type.getBasicType() == EbtDouble && type.getVectorSize() == 3 && in addUsedLocation()
1489 TIoRange range(locationRange, componentRange, type.getBasicType(), 0); in addUsedLocation()
1499 TIoRange range2(locationRange2, componentRange2, type.getBasicType(), 0); in addUsedLocation()
1515 … int consumedComponents = type.getVectorSize() * (type.getBasicType() == EbtDouble ? 2 : 1); in addUsedLocation()
[all …]
/external/deqp-deps/glslang/glslang/MachineIndependent/
DIntermediate.cpp119 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addBinaryMath()
131 if (left->isReference() && isTypeInt(right->getBasicType())) { in addBinaryMath()
145 if (op == EOpAdd && right->isReference() && isTypeInt(left->getBasicType())) { in addBinaryMath()
288 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addAssign()
358 if (child->getType().getBasicType() == EbtBlock) in addUnaryMath()
367 …if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().… in addUnaryMath()
377 if (child->getType().getBasicType() == EbtStruct || child->getType().isArray()) in addUnaryMath()
536 switch (node->getBasicType()) { in isConversionAllowed()
547 if (getSource() == EShSourceHlsl && node->getBasicType() == EbtSampler) in isConversionAllowed()
552 if (node->getBasicType() == EbtSampler && op == EOpAssign && in isConversionAllowed()
[all …]
Dreflection.cpp100 if (base.getType().getBasicType() == EbtBlock) { in addUniform()
140 if (type.getBasicType() == EbtBlock) { in addPipeIOVariable()
147 if (type.isArray() && type.getBasicType() == EbtBlock) { in addPipeIOVariable()
201 if (type.getBasicType() == EbtBlock) in getArrayStride()
222 …bool blockParent = (parentType.getBasicType() == EbtBlock && parentType.getQualifier().storage == … in countAggregateMembers()
263 …bool blockParent = (baseType.getBasicType() == EbtBlock && baseType.getQualifier().storage == EvqB… in blowUpActiveAggregate()
282 if (terminalType->getBasicType() == EbtBlock) {} in blowUpActiveAggregate()
285 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) in blowUpActiveAggregate()
303 if (terminalType->getBasicType() == EbtBlock) {} in blowUpActiveAggregate()
306 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) { in blowUpActiveAggregate()
[all …]
DParseHelper.cpp492 if (base->getBasicType() == EbtBlock) { in handleBracketDereference()
503 else if (base->getBasicType() == EbtSampler && version >= 130) { in handleBracketDereference()
546 if ((! limits.generalSamplerIndexing && base->getBasicType() == EbtSampler) || in handleIndexLimits()
845 (base->isFloatingDomain() || base->isIntegerDomain() || base->getBasicType() == EbtBool)) { in handleDotDereference()
913 TType type(base->getBasicType(), EvqTemporary, selectors.size()); in handleDotSwizzle()
927 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotSwizzle()
931 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotSwizzle()
1078 if (function.getType().getBasicType() != EbtVoid) in handleFunctionDefinition()
1370 if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
1405 else if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
[all …]
/external/angle/src/compiler/translator/
DIntermNode.cpp633 if (getBasicType() != EbtStruct) in setPrecisionAndQualifier()
665 if (getBasicType() == EbtBool) in setPrecisionFromChildren()
717 ASSERT(getBasicType() != EbtBool); in setBuiltInFunctionPrecision()
725 if (typed && IsSampler(typed->getBasicType())) in setBuiltInFunctionPrecision()
819 TBasicType basicType = getBasicType(); in getConstantValue()
1360 setType(TType(mOperand->getBasicType(), EbpHigh, resultQualifier, operandPrimarySize)); in promote()
1541 setType(TType(mOperand->getBasicType(), mOperand->getPrecision(), resultQualifier, in promote()
1652 setType(TType(mLeft->getBasicType(), mLeft->getPrecision(), resultQualifier, in promote()
1657 setType(TType(mLeft->getBasicType(), mLeft->getPrecision(), resultQualifier)); in promote()
1717 ASSERT(mLeft->getBasicType() == EbtBool && mRight->getBasicType() == EbtBool); in promote()
[all …]
DResourcesHLSL.cpp30 if (IsSampler(type.getBasicType())) in UniformRegisterPrefix()
104 switch (type.getBasicType()) in InterfaceBlockScalarVectorFieldPaddingString()
211 if (IsSampler(type.getBasicType()) || in assignUniformRegister()
212 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister()
216 else if (IsImage(type.getBasicType())) in assignUniformRegister()
254 if (IsSampler(type.getBasicType()) || in assignUniformRegister()
255 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister()
259 else if (IsImage(type.getBasicType())) in assignUniformRegister()
279 ASSERT(IsSampler(type.getBasicType())); in assignSamplerInStructUniformRegister()
436 out << "uniform " << SamplerString(type.getBasicType()) << " sampler_" in outputHLSL4_0_FL9_3Sampler()
[all …]
DParseContext.cpp40 if (IsSampler(type.getBasicType())) in ContainsSampler()
44 if (type.getBasicType() == EbtStruct) in ContainsSampler()
65 ASSERT(IsImage(imageNode->getBasicType())); in GetImageArgumentToken()
82 if (!SupportsPrecision(type.getBasicType())) in CanSetDefaultPrecisionOnType()
86 if (type.getBasicType() == EbtUInt) in CanSetDefaultPrecisionOnType()
662 if (node->getBasicType() == EbtVoid) in checkCanBeLValue()
666 if (IsOpaqueType(node->getBasicType())) in checkCanBeLValue()
669 message += getBasicString(node->getBasicType()); in checkCanBeLValue()
790 if (type.getBasicType() != EbtStruct && IsOpaqueType(argTyped->getBasicType())) in checkConstructorArguments()
793 reason += getBasicString(argTyped->getBasicType()); in checkConstructorArguments()
[all …]
DOutputVulkanGLSL.cpp51 bool needsSetBinding = IsSampler(type.getBasicType()) || in writeLayoutQualifier()
54 IsImage(type.getBasicType()) || IsSubpassInputType(type.getBasicType()); in writeLayoutQualifier()
58 bool needsInputAttachmentIndex = IsSubpassInputType(type.getBasicType()); in writeLayoutQualifier()
174 if (type.getBasicType() == EbtSamplerExternalOES) in writeVariableType()
/external/angle/src/compiler/translator/TranslatorMetalDirect/
DTranslatorMetalUtils.cpp25 switch (t->getBasicType()) in getBasicMetalString()
233 switch (t->getBasicType()) in getBuiltInMetalTypeNameString()
292 ASSERT(t->getBasicType() != EbtStruct); in getBuiltInMetalTypeNameString()
293 ASSERT(t->getBasicType() != EbtInterfaceBlock); in getBuiltInMetalTypeNameString()
299 if (type.getBasicType() == EbtStruct) in GetMetalTypeName()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp103 if(glu::isDataTypeFloatType(symIter->varType.getBasicType())) in packFloat16Bit()
105 if(glu::isDataTypeVector(symIter->varType.getBasicType())) in packFloat16Bit()
107 for(int i = 0; i < glu::getDataTypeScalarSize(symIter->varType.getBasicType()); i++) in packFloat16Bit()
112 else if (glu::isDataTypeMatrix(symIter->varType.getBasicType())) in packFloat16Bit()
116 switch (symIter->varType.getBasicType()) in packFloat16Bit()
225 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
227 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
246 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(input->varType.getBasicType())) in generateVertexShader()
248 …std::string tname = glu::getDataTypeName(getDataTypeFloat16Scalars(input->varType.getBasicType())); in generateVertexShader()
258 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(output->varType.getBasicType())) in generateVertexShader()
[all …]
DvktShaderCommonFunctionTests.cpp209 sizes.push_back(getComponentByteSize(sym.varType.getBasicType())); in getComponentByteSizes()
217 totalSize += getComponentByteSize(sym.varType.getBasicType()) * sym.varType.getScalarSize(); in computeTotalByteSize()
230 const auto componentBytes = getComponentByteSize(var.varType.getBasicType()); in getInputOutputPointers()
302 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
511 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
522 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
579 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
593 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
637 const glu::DataType type = spec.inputs[0].varType.getBasicType(); in infNanRandomFloats()
690 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
[all …]
/external/swiftshader/src/OpenGL/compiler/
DIntermediate.cpp67 switch(type.getBasicType()) in TypeToConstructorOperator()
341 …if (left->isMatrix() || left->isArray() || left->isVector() || left->getBasicType() == EbtStruct) { in addBinaryMath()
348 if (left->getBasicType() != EbtBool || left->isMatrix() || left->isArray() || left->isVector()) { in addBinaryMath()
355 if (!IsInteger(left->getBasicType()) || left->isMatrix() || left->isArray()) { in addBinaryMath()
363 if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool) { in addBinaryMath()
369 …if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool || left->getBasicType() =… in addBinaryMath()
380 if(!IsInteger(left->getBasicType()) || !IsInteger(right->getBasicType())) in addBinaryMath()
388 if(!isBitShift && left->getBasicType() != right->getBasicType()) in addBinaryMath()
482 …if (!IsInteger(child->getType().getBasicType()) || child->getType().isMatrix() || child->getType()… in addUnaryMath()
488 …if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().… in addUnaryMath()
[all …]
DSymbolTable.h239 TBasicType basicType = type->getBasicType(); in IsGenType()
250 TBasicType basicType = type->getBasicType(); in IsVecType()
268 switch(type->getBasicType()) in GenType()
289 switch(type->getBasicType()) in VecType()
355 if(ptype1->getBasicType() == EbtGSampler2D)
358 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
363 else if(ptype1->getBasicType() == EbtGSampler3D)
366 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
371 else if(ptype1->getBasicType() == EbtGSamplerCube)
374 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
[all …]
DParseHelper.cpp374 if(IsSampler(node->getBasicType())) in lValueErrorCheck()
378 else if(node->getBasicType() == EbtVoid) in lValueErrorCheck()
587 if (op != EOpConstructStruct && IsSampler(typed->getBasicType())) { in constructorErrorCheck()
591 if (typed->getBasicType() == EbtVoid) { in constructorErrorCheck()
619 if (type->getBasicType() != EbtBool || type->isArray() || type->isMatrix() || type->isVector()) { in boolErrorCheck()
778 type.getBasicType() != EbtStruct && IsSampler(type.getBasicType())) { in parameterSamplerErrorCheck()
788 if (IsSampler(type.getBasicType())) in containsSampler()
791 if (type.getBasicType() == EbtStruct || type.isInterfaceBlock()) { in containsSampler()
817 if (constant->getBasicType() == EbtUInt) in arraySizeErrorCheck()
1037 if(voidErrorCheck(line, identifier, type.getBasicType())) in declareVariable()
[all …]
/external/deqp/modules/gles31/functional/
Des31fProgramInterfaceDefinition.cpp67 if (varType.isBasicType() && predicate(varType.getBasicType())) in containsMatchingSubtype()
126 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexInput()
137 …aTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isD… in isIllegalVertexOutput()
139 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexOutput()
183 …aTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isD… in isIllegalFragmentOutput()
185 …if (glu::isDataTypeBoolOrBVec(varType.getBasicType()) || isOpaqueType || glu::isDataTypeMatrix(var… in isIllegalFragmentOutput()
207 …return glu::isDataTypeIntOrIVec(varType.getBasicType()) || glu::isDataTypeUintOrUVec(varType.getBa… in isTypeIntegerOrContainsIntegers()
Des31fShaderIntegerFunctionTests.cpp81 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
343 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
397 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
439 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
491 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
533 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
583 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
623 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
674 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
714 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
/external/deqp/framework/opengl/
DgluVarTypeUtil.hpp189 …nst VarType& type) const { return type.isBasicType() && isDataTypeScalar(type.getBasicType()); } }; in operator ()()
190 …ype& type) const { return type.isBasicType() && isDataTypeScalarOrVector(type.getBasicType()); } }; in operator ()()
247 DE_ASSERT(isDataTypeMatrix(parentType.getBasicType())); in removeTraversed()
248 if (curComp.index+1 < getDataTypeMatrixNumColumns(parentType.getBasicType())) in removeTraversed()
253 DE_ASSERT(isDataTypeVector(parentType.getBasicType())); in removeTraversed()
254 if (curComp.index+1 < getDataTypeScalarSize(parentType.getBasicType())) in removeTraversed()
294 DataType basicType = curType.getBasicType(); in findNext()
349 DataType basicType = curType->getBasicType(); in isValidTypePath()
396 DataType basicType = curType->getBasicType(); in getVarType()
DgluVarTypeUtil.cpp140 else if (curType.isBasicType() && isDataTypeMatrix(curType.getBasicType())) in parseTypePath()
142 TCU_CHECK(de::inBounds(ndx, 0, getDataTypeMatrixNumColumns(curType.getBasicType()))); in parseTypePath()
145 else if (curType.isBasicType() && isDataTypeVector(curType.getBasicType())) in parseTypePath()
147 TCU_CHECK(de::inBounds(ndx, 0, getDataTypeScalarSize(curType.getBasicType()))); in parseTypePath()
/external/angle/src/tests/compiler_tests/
DShaderImage_test.cpp40 ASSERT_EQ(imageType, storeArgument1Typed->getBasicType()); in CheckImageStoreCall()
43 ASSERT_EQ(EbtInt, storeArgument2Typed->getBasicType()); in CheckImageStoreCall()
47 ASSERT_EQ(storeValueType, storeArgument3Typed->getBasicType()); in CheckImageStoreCall()
67 ASSERT_EQ(imageType, loadArgument1Typed->getBasicType()); in CheckImageLoadCall()
70 ASSERT_EQ(EbtInt, loadArgument2Typed->getBasicType()); in CheckImageLoadCall()
103 ASSERT_EQ(imageType, myImageNode->getBasicType()); in CheckImageDeclaration()
/external/deqp/modules/glshared/
DglsShaderExecUtil.cpp117 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
119 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
155 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
157 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
196 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateGeometryShader()
198 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateGeometryShader()
235 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateGeometryShader()
237 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateGeometryShader()
311 if (useIntOutputs && glu::isDataTypeFloatOrVec(output.varType.getBasicType())) in generateFragShaderOutputDecl()
313 const int vecSize = glu::getDataTypeScalarSize(output.varType.getBasicType()); in generateFragShaderOutputDecl()
[all …]
/external/deqp/modules/gles3/functional/
Des3fShaderCommonFunctionTests.cpp281 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
409 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
421 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
491 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
514 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
591 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
621 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
703 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
712 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
766 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]

1234567