Home
last modified time | relevance | path

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

1234

/external/deqp-deps/glslang/glslang/MachineIndependent/
DIntermediate.cpp119 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addBinaryMath()
231 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addAssign()
281 if (child->getType().getBasicType() == EbtBlock) in addUnaryMath()
290 …if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().… in addUnaryMath()
300 if (child->getType().getBasicType() == EbtStruct || child->getType().isArray()) in addUnaryMath()
458 switch (node->getBasicType()) { in isConversionAllowed()
471 if (source == EShSourceHlsl && node->getBasicType() == EbtSampler) in isConversionAllowed()
476 if (node->getBasicType() == EbtSampler && op == EOpAssign && in isConversionAllowed()
503 switch (node->getBasicType()) { in createConversion()
520 switch (node->getBasicType()) { in createConversion()
[all …]
DParseHelper.cpp334 if ((variable->getType().getBasicType() == EbtBlock || in handleVariable()
335 … variable->getType().getBasicType() == EbtStruct) && variable->getType().getStruct() == nullptr) { in handleVariable()
357 if (variable->getType().getBasicType() == EbtReference && in handleVariable()
441 if (base->getBasicType() == EbtBlock) { in handleBracketDereference()
452 else if (base->getBasicType() == EbtSampler && version >= 130) { in handleBracketDereference()
488 if ((! limits.generalSamplerIndexing && base->getBasicType() == EbtSampler) || in handleIndexLimits()
774 (base->isFloatingDomain() || base->isIntegerDomain() || base->getBasicType() == EbtBool)) { in handleDotDereference()
795 TType type(base->getBasicType(), EvqTemporary, selectors.size()); in handleDotDereference()
809 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotDereference()
813 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotDereference()
[all …]
Dreflection.cpp186 if (baseType.getBasicType() != EbtBlock) in blowUpActiveAggregate()
198 if (baseType.getBasicType() != EbtBlock) in blowUpActiveAggregate()
300 bool block = base->getBasicType() == EbtBlock; in addDereferencedUniform()
365 return type.getBasicType() != EbtBlock && type.getBasicType() != EbtStruct; in isReflectionGranularity()
579 switch (type.getBasicType()) { in mapToGlType()
592 switch (type.getBasicType()) { in mapToGlType()
608 switch (type.getBasicType()) { in mapToGlType()
688 switch (type.getBasicType()) { in mapToGlType()
DlinkValidate.cpp1044 if (size == 2 && type.getBasicType() == EbtDouble && type.getVectorSize() == 3 && in addUsedLocation()
1053 TIoRange range(locationRange, componentRange, type.getBasicType(), 0); in addUsedLocation()
1063 TIoRange range2(locationRange2, componentRange2, type.getBasicType(), 0); in addUsedLocation()
1077 … int consumedComponents = type.getVectorSize() * (type.getBasicType() == EbtDouble ? 2 : 1); in addUsedLocation()
1084 …TIoRange range(locationRange, componentRange, type.getBasicType(), qualifier.hasIndex() ? qualifie… in addUsedLocation()
1108 …} else if (range.location.overlap(usedIo[set][r].location) && type.getBasicType() != usedIo[set][r… in checkLocationRange()
1202 if (type.getBasicType() == EbtDouble && type.getVectorSize() > 2) in computeTypeLocationSize()
1336 if (type.getBasicType() == EbtDouble) { in computeTypeXfbSize()
1350 switch (type.getBasicType()) { in getBaseAlignmentScalar()
1457 if (type.getBasicType() == EbtStruct) { in getBaseAlignment()
[all …]
DConstant.cpp175 …returnType.shallowCopy(TType(getType().getBasicType(), EvqConst, 0, rightNode->getMatrixCols(), ge… in fold()
179 switch (getType().getBasicType()) { in fold()
270 returnType.shallowCopy(TType(getBasicType(), EvqConst, getMatrixRows())); in fold()
281 returnType.shallowCopy(TType(getBasicType(), EvqConst, rightNode->getMatrixCols())); in fold()
289 switch (getType().getBasicType()) { in fold()
351 switch (getType().getBasicType()) { in fold()
528 switch (getType().getBasicType()) { in fold()
546 switch (getType().getBasicType()) { in fold()
1071 switch(children[0]->getAsTyped()->getBasicType()) { in fold()
1105 switch(children[0]->getAsTyped()->getBasicType()) { in fold()
[all …]
Diomapper.cpp445 type.getBasicType() == EbtBlock || in resolveUniformLocation()
446 type.getBasicType() == EbtAtomicUint || in resolveUniformLocation()
547 return type.getBasicType() == glslang::EbtSampler && type.getSampler().isPureSampler(); in isSamplerType()
551 return (type.getBasicType() == glslang::EbtSampler && in isTextureType()
625 return type.getBasicType() == glslang::EbtSampler && type.getSampler().isImage(); in isImageType()
732 return (type.getBasicType() == glslang::EbtSampler && type.getSampler().isImage()) || in isUavType()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp102 if(glu::isDataTypeFloatType(symIter->varType.getBasicType())) in packFloat16Bit()
104 if(glu::isDataTypeVector(symIter->varType.getBasicType())) in packFloat16Bit()
106 for(int i = 0; i < glu::getDataTypeScalarSize(symIter->varType.getBasicType()); i++) in packFloat16Bit()
111 else if (glu::isDataTypeMatrix(symIter->varType.getBasicType())) in packFloat16Bit()
115 switch (symIter->varType.getBasicType()) in packFloat16Bit()
224 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
226 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
245 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(input->varType.getBasicType())) in generateVertexShader()
247 …std::string tname = glu::getDataTypeName(getDataTypeFloat16Scalars(input->varType.getBasicType())); in generateVertexShader()
257 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(output->varType.getBasicType())) in generateVertexShader()
[all …]
DvktShaderIntegerFunctionTests.cpp83 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
462 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
516 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
572 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
624 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
680 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
730 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
784 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
835 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
889 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
DvktShaderCommonFunctionTests.cpp311 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
599 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
611 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
695 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
718 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
809 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
839 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
934 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
943 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1007 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
/external/swiftshader/src/OpenGL/compiler/
DIntermediate.cpp67 switch(type.getBasicType()) in TypeToConstructorOperator()
343 …if (left->isMatrix() || left->isArray() || left->isVector() || left->getBasicType() == EbtStruct) { in addBinaryMath()
350 if (left->getBasicType() != EbtBool || left->isMatrix() || left->isArray() || left->isVector()) { in addBinaryMath()
357 if (!IsInteger(left->getBasicType()) || left->isMatrix() || left->isArray()) { in addBinaryMath()
365 if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool) { in addBinaryMath()
371 …if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool || left->getBasicType() =… in addBinaryMath()
382 if(!IsInteger(left->getBasicType()) || !IsInteger(right->getBasicType())) in addBinaryMath()
390 if(!isBitShift && left->getBasicType() != right->getBasicType()) in addBinaryMath()
484 …if (!IsInteger(child->getType().getBasicType()) || child->getType().isMatrix() || child->getType()… in addUnaryMath()
490 …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 …]
DOutputASM.cpp35 switch(type.getBasicType()) in glVariableType()
171 UNREACHABLE(type.getBasicType()); in glVariableType()
180 if(type.getBasicType() == EbtFloat) in glVariablePrecision()
192 else if(type.getBasicType() == EbtInt) in glVariablePrecision()
557 TBasicType baseType = in->getType().getBasicType(); in getOpcode()
673 if(symbol->getBasicType() != EbtInvariant) // Typeless declarations are not new varyings in visitSymbol()
1060 TBasicType basicType = arg->getType().getBasicType(); in visitUnary()
1358 if(function->ret && function->ret->getType().getBasicType() != EbtVoid) in visitAggregate()
1392 if(IsShadowSampler(s->getBasicType())) in visitAggregate()
1394 ASSERT(s->getBasicType() == EbtSampler2DShadow); in visitAggregate()
[all …]
/external/deqp/modules/gles31/functional/
Des31fProgramInterfaceDefinition.cpp61 if (varType.isBasicType() && predicate(varType.getBasicType())) in containsMatchingSubtype()
120 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexInput()
131 …aTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isD… in isIllegalVertexOutput()
133 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexOutput()
177 …aTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isD… in isIllegalFragmentOutput()
179 …if (glu::isDataTypeBoolOrBVec(varType.getBasicType()) || isOpaqueType || glu::isDataTypeMatrix(var… in isIllegalFragmentOutput()
201 …return glu::isDataTypeIntOrIVec(varType.getBasicType()) || glu::isDataTypeUintOrUVec(varType.getBa… in isTypeIntegerOrContainsIntegers()
Des31fShaderIntegerFunctionTests.cpp81 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
371 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
425 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
467 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
519 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
561 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
611 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
651 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
702 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
742 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
Des31fShaderCommonFunctionTests.cpp368 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
524 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
536 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
606 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
629 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
706 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
736 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
818 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
827 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
881 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
Des31fProgramInterfaceDefinitionUtil.cpp401 if (glu::isDataTypeScalar(varType.getBasicType())) in writeVariableReadAccumulateExpression()
403 else if (glu::isDataTypeVector(varType.getBasicType())) in writeVariableReadAccumulateExpression()
405 else if (glu::isDataTypeMatrix(varType.getBasicType())) in writeVariableReadAccumulateExpression()
407 else if (glu::isDataTypeSamplerMultisample(varType.getBasicType())) in writeVariableReadAccumulateExpression()
409 else if (glu::isDataTypeSampler(varType.getBasicType())) in writeVariableReadAccumulateExpression()
411 else if (glu::isDataTypeImage(varType.getBasicType())) in writeVariableReadAccumulateExpression()
413 else if (varType.getBasicType() == glu::TYPE_UINT_ATOMIC_COUNTER) in writeVariableReadAccumulateExpression()
570 if (glu::isDataTypeScalar(varType.getBasicType())) in writeVariableWriteExpression()
571 buf << glu::getDataTypeName(varType.getBasicType()) << "(" << sourceVec4Name << ".y)"; in writeVariableWriteExpression()
572 …else if (glu::isDataTypeVector(varType.getBasicType()) || glu::isDataTypeMatrix(varType.getBasicTy… in writeVariableWriteExpression()
[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/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 …]
DglsShaderLibraryCase.cpp158 const DataType basicType = val.type.getBasicType(); in genVertexShader()
182 if (getDataTypeScalarType(val.type.getBasicType()) == TYPE_FLOAT) in genVertexShader()
214 if (getDataTypeScalarType(val.type.getBasicType()) == TYPE_FLOAT) in genCompareOp()
258 const DataType basicType = val.type.getBasicType(); in genFragmentShader()
304 const DataType basicType = val.type.getBasicType(); in specializeVertexShader()
325 const DataType basicType = val.type.getBasicType(); in specializeVertexShader()
379 const DataType basicType = val.type.getBasicType(); in specializeFragmentShader()
399 const DataType basicType = val.type.getBasicType(); in specializeFragmentShader()
427 const char* const typeStr = getDataTypeName(val.type.getBasicType()); in generateUniformDeclarations()
447 const DataType basicType = val.type.getBasicType(); in generateVertexSpecialization()
[all …]
/external/deqp/modules/gles3/functional/
Des3fShaderCommonFunctionTests.cpp294 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
446 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
458 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
528 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
551 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
628 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
658 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
740 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
749 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
803 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DReferenceType.java215 && arrType1.getBasicType() instanceof ObjectType in getFirstCommonSuperclass()
216 && arrType2.getBasicType() instanceof ObjectType) { in getFirstCommonSuperclass()
217 return new ArrayType(((ObjectType) arrType1.getBasicType()) in getFirstCommonSuperclass()
218 .getFirstCommonSuperclass((ObjectType) arrType2.getBasicType()), arrType1 in getFirstCommonSuperclass()
/external/deqp-deps/glslang/hlsl/
DhlslParseHelper.cpp194 const TBasicType txBasicType = txType.getBasicType(); in getLayoutFromTxType()
236 if (node->getType().getBasicType() == EbtSampler) { in lValueErrorCheck()
689 if ((variable->getType().getBasicType() == EbtBlock || in handleVariable()
690 … variable->getType().getBasicType() == EbtStruct) && variable->getType().getStruct() == nullptr) { in handleVariable()
725 if (base->getType().getBasicType() == EbtSampler && !base->isArray()) { in handleBracketOperator()
781 const TBasicType indexBasicType = index->getType().getBasicType(); in makeIntegerIndex()
942 if (base->getType().getBasicType() == EbtSampler) { in handleDotDereference()
965 TType type(base->getBasicType(), EvqTemporary, selectors.size()); in handleDotDereference()
970 TType scalarType(base->getBasicType(), EvqTemporary, 1); in handleDotDereference()
974 TType vectorType(base->getBasicType(), EvqTemporary, selectors.size()); in handleDotDereference()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/
DvktShaderLibrary.cpp172 const DataType valueType = val.type.getBasicType(); in genVertexShader()
196 res << " " << (getTransportType(val.type.getBasicType()) != val.type.getBasicType() ? "v_" : "") in genVertexShader()
226 if (getDataTypeScalarType(val.type.getBasicType()) == glu::TYPE_FLOAT) in genCompareOp()
260 const DataType valueType = val.type.getBasicType(); in genFragmentShader()
311 const DataType valueType = val.type.getBasicType(); in specializeVertexShader()
335 const DataType valueType = val.type.getBasicType(); in specializeVertexShader()
389 const DataType valueType = val.type.getBasicType(); in specializeFragmentShader()
414 const DataType basicType = val.type.getBasicType(); in specializeFragmentShader()
447 const DataType valueType = val.type.getBasicType(); in generateVertexSpecialization()
489 const char* const refTypeStr = getDataTypeName(val.type.getBasicType()); in generateFragmentSpecialization()
[all …]

1234