/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | glslang.y | 931 if ($1.basicType == EbtVoid) { 1077 parseContext.precisionQualifierCheck($$.loc, $$.basicType, $$.qualifier); 1094 parseContext.precisionQualifierCheck($2.loc, $2.basicType, $2.qualifier); 1238 if ($$.basicType == EbtVoid) 1239 $$.basicType = $2.basicType; 1531 $$.basicType = EbtVoid; 1535 $$.basicType = EbtFloat; 1540 $$.basicType = EbtDouble; 1545 $$.basicType = EbtFloat16; 1550 $$.basicType = EbtFloat; [all …]
|
D | glslang_tab.cpp | 5211 if ((yyvsp[-1].interm.type).basicType == EbtVoid) { in yyparse() 5420 …parseContext.precisionQualifierCheck((yyval.interm.type).loc, (yyval.interm.type).basicType, (yyva… in yyparse() 5442 …cisionQualifierCheck((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type).basicType, (yyvsp[0].inter… in yyparse() 5656 if ((yyval.interm.type).basicType == EbtVoid) in yyparse() 5657 (yyval.interm.type).basicType = (yyvsp[0].interm.type).basicType; in yyparse() 6158 (yyval.interm.type).basicType = EbtVoid; in yyparse() 6167 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6177 (yyval.interm.type).basicType = EbtDouble; in yyparse() 6187 (yyval.interm.type).basicType = EbtFloat16; in yyparse() 6197 (yyval.interm.type).basicType = EbtFloat; in yyparse() [all …]
|
D | attribute.cpp | 80 const TConstUnion* TAttributeArgs::getConstUnion(TBasicType basicType, int argNum) const in getConstUnion() argument 89 if (constVal == nullptr || constVal->getType() != basicType) in getConstUnion()
|
D | attribute.h | 95 const TConstUnion* getConstUnion(TBasicType basicType, int argNum) const;
|
D | ParseHelper.cpp | 2961 …ntext::voidErrorCheck(const TSourceLoc& loc, const TString& identifier, const TBasicType basicType) in voidErrorCheck() argument 2963 if (basicType == EbtVoid) { in voidErrorCheck() 2981 …if (pType.basicType != EbtBool || pType.arraySizes || pType.matrixCols > 1 || (pType.vectorSize > … in boolCheck() 3115 …} else if (qualifier.isMemory() && (publicType.basicType != EbtSampler) && !publicType.qualifier.i… in globalQualifierTypeCheck() 3121 publicType.basicType != EbtBlock && in globalQualifierTypeCheck() 3133 if (publicType.basicType == EbtBool && !parsingBuiltins) { in globalQualifierTypeCheck() 3138 if (isTypeInt(publicType.basicType) || publicType.basicType == EbtDouble) in globalQualifierTypeCheck() 3149 if (isTypeInt(publicType.basicType) || in globalQualifierTypeCheck() 3150 publicType.basicType == EbtDouble || in globalQualifierTypeCheck() 3161 …error(loc, "must be qualified as flat", TType::getBasicString(publicType.basicType), GetStorageQua… in globalQualifierTypeCheck() [all …]
|
/external/deqp/framework/opengl/ |
D | gluVarTypeUtil.hpp | 294 DataType basicType = curType.getBasicType(); in findNext() local 296 if (isDataTypeMatrix(basicType)) in findNext() 298 else if (isDataTypeVector(basicType)) in findNext() 349 DataType basicType = curType->getBasicType(); in isValidTypePath() local 353 if (!isDataTypeMatrix(basicType)) in isValidTypePath() 356 basicType = getDataTypeFloatVec(getDataTypeMatrixNumRows(basicType)); in isValidTypePath() 362 if (!isDataTypeVector(basicType)) in isValidTypePath() 365 basicType = getDataTypeScalarType(basicType); in isValidTypePath() 396 DataType basicType = curType->getBasicType(); in getVarType() local 401 basicType = getDataTypeFloatVec(getDataTypeMatrixNumRows(basicType)); in getVarType() [all …]
|
/external/deqp-deps/glslang/glslang/Include/ |
D | Types.h | 1220 TBasicType basicType; 1233 basicType = EbtVoid; in initType() 1277 bool isImage() const { return basicType == EbtSampler && sampler.isImage(); } in isImage() 1278 bool isSubpass() const { return basicType == EbtSampler && sampler.isSubpass(); } in isSubpass() 1291 … basicType(t), vectorSize(vs), matrixCols(mc), matrixRows(mr), vector1(isVector && vs == 1), in POOL_ALLOCATOR_NEW_DELETE() 1302 … basicType(t), vectorSize(vs), matrixCols(mc), matrixRows(mr), vector1(isVector && vs == 1), in basicType() function 1314 basicType(p.basicType), in TType() 1318 if (basicType == EbtSampler) in TType() 1324 if (p.userDef->basicType == EbtReference) { in TType() 1325 basicType = EbtReference; in TType() [all …]
|
/external/deqp/modules/gles31/functional/ |
D | es31fShaderSharedVarTests.cpp | 74 …SharedBasicVarCase (Context& context, const char* name, DataType basicType, Precision precision, … 92 static std::string getBasicCaseDescription (DataType basicType, Precision precision, const tcu::UVe… in getBasicCaseDescription() argument 97 str << getDataTypeName(basicType) << ", work group size = " << workGroupSize; in getBasicCaseDescription() 101 SharedBasicVarCase::SharedBasicVarCase (Context& context, const char* name, DataType basicType, Pre… in SharedBasicVarCase() argument 102 : TestCase (context, name, getBasicCaseDescription(basicType, precision, workGroupSize).c_str()) in SharedBasicVarCase() 103 , m_basicType (basicType) in SharedBasicVarCase() 368 for (int basicType = TYPE_FLOAT; basicType <= TYPE_BOOL_VEC4; basicType++) in init() local 370 if (glu::getDataTypeScalarType(DataType(basicType)) == glu::TYPE_DOUBLE) in init() 373 if (glu::isDataTypeBoolOrBVec(DataType(basicType))) in init() 376 …d(new SharedBasicVarCase(m_context, getDataTypeName(DataType(basicType)), DataType(basicType), PRE… in init() [all …]
|
D | es31fSSBOLayoutCase.cpp | 377 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local 379 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment() 382 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment() 383 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment() 389 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment() 418 glu::DataType basicType = type.getBasicType(); in computeStd430BaseAlignment() local 420 if (glu::isDataTypeMatrix(basicType)) in computeStd430BaseAlignment() 423 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd430BaseAlignment() 424 : glu::getDataTypeMatrixNumRows(basicType); in computeStd430BaseAlignment() 430 return getDataTypeByteAlignment(basicType); in computeStd430BaseAlignment() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/ssbo/ |
D | vktSSBOLayoutCase.cpp | 331 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local 333 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment() 336 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment() 337 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment() 343 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment() 372 glu::DataType basicType = type.getBasicType(); in computeStd430BaseAlignment() local 374 if (glu::isDataTypeMatrix(basicType)) in computeStd430BaseAlignment() 377 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd430BaseAlignment() 378 : glu::getDataTypeMatrixNumRows(basicType); in computeStd430BaseAlignment() 383 return getDataTypeByteAlignment(basicType); in computeStd430BaseAlignment() [all …]
|
/external/swiftshader/src/OpenGL/compiler/ |
D | Intermediate.cpp | 1014 TBasicType basicType = left->getBasicType(); in promote() local 1021 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1026 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1032 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1039 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1046 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1074 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1083 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1146 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1785 TBasicType basicType = type.getBasicType(); in fold() local [all …]
|
D | SymbolTable.h | 239 TBasicType basicType = type->getBasicType(); in IsGenType() local 240 …return basicType == EbtGenType || basicType == EbtGenIType || basicType == EbtGenUType || basicTyp… in IsGenType() 250 TBasicType basicType = type->getBasicType(); in IsVecType() local 251 …return basicType == EbtVec || basicType == EbtIVec || basicType == EbtUVec || basicType == EbtBVec; in IsVecType()
|
D | parseConst.cpp | 168 TBasicType basicType = type.getBasicType(); in visitConstantUnion() local 180 leftUnionArray[index].cast(basicType, rightUnionArray[i]); in visitConstantUnion() 193 leftUnionArray[i].cast(basicType, rightUnionArray[count]); in visitConstantUnion() 207 leftUnionArray[i].cast(basicType, rightUnionArray[0]); in visitConstantUnion()
|
/external/mesa3d/src/mesa/main/ |
D | uniform_query.cpp | 656 log_uniform(const void *values, enum glsl_base_type basicType, in log_uniform() argument 676 switch (basicType) { in log_uniform() 896 enum glsl_base_type basicType, unsigned src_components) in validate_uniform() argument 927 match = (basicType != GLSL_TYPE_DOUBLE); in validate_uniform() 930 match = (basicType == GLSL_TYPE_INT); in validate_uniform() 933 match = (basicType == GLSL_TYPE_INT && _mesa_is_desktop_gl(ctx)); in validate_uniform() 936 match = (basicType == uni->type->base_type); in validate_uniform() 945 glsl_type_name(basicType)); in validate_uniform() 950 log_uniform(values, basicType, components, 1, count, in validate_uniform() 1036 enum glsl_base_type basicType, unsigned src_components) in _mesa_uniform() argument [all …]
|
/external/deqp/modules/glshared/ |
D | glsShaderLibraryCase.cpp | 158 const DataType basicType = val.type.getBasicType(); in genVertexShader() local 159 const DataType floatType = getDataTypeFloatScalars(basicType); in genVertexShader() 164 if (getDataTypeScalarType(basicType) == TYPE_FLOAT) in genVertexShader() 258 const DataType basicType = val.type.getBasicType(); in genFragmentShader() local 259 const DataType floatType = getDataTypeFloatScalars(basicType); in genFragmentShader() 261 const char* const refTypeStr = getDataTypeName(basicType); in genFragmentShader() 263 if (getDataTypeScalarType(basicType) == TYPE_FLOAT) in genFragmentShader() 304 const DataType basicType = val.type.getBasicType(); in specializeVertexShader() local 305 const DataType floatType = getDataTypeFloatScalars(basicType); in specializeVertexShader() 307 const char* const refTypeStr = getDataTypeName(basicType); in specializeVertexShader() [all …]
|
D | glsShaderExecUtil.cpp | 547 const glu::DataType basicType = outputType.getBasicType(); in getRenderbufferFormatForOutput() local 548 const int numComps = glu::getDataTypeNumComponents(basicType); in getRenderbufferFormatForOutput() 551 switch (glu::getDataTypeScalarType(basicType)) in getRenderbufferFormatForOutput() 602 const glu::DataType basicType = symbol.varType.getBasicType(); in execute() local 603 const int vecSize = glu::getDataTypeScalarSize(basicType); in execute() 605 if (glu::isDataTypeFloatOrVec(basicType)) in execute() 607 else if (glu::isDataTypeIntOrIVec(basicType)) in execute() 609 else if (glu::isDataTypeUintOrUVec(basicType)) in execute() 611 else if (glu::isDataTypeMatrix(basicType)) in execute() 613 int numRows = glu::getDataTypeMatrixNumRows(basicType); in execute() [all …]
|
D | glsUniformBlockCase.cpp | 128 VarType::VarType (glu::DataType basicType, deUint32 flags) in VarType() argument 132 m_data.basicType = basicType; in VarType() 420 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local 422 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment() 425 int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment() 426 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment() 431 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment() 474 glu::DataType basicType = type.getBasicType(); in computeStd140Layout() local 478 entry.type = basicType; in computeStd140Layout() 484 if (glu::isDataTypeMatrix(basicType)) in computeStd140Layout() [all …]
|
D | glsUniformBlockCase.hpp | 76 VarType (glu::DataType basicType, deUint32 flags); 86 glu::DataType getBasicType (void) const { return m_data.basicType; } in getBasicType() 109 glu::DataType basicType; member
|
/external/deqp/external/vulkancts/modules/vulkan/ubo/ |
D | vktUniformBlockCase.cpp | 75 VarType::VarType (glu::DataType basicType, deUint32 flags) in VarType() argument 79 m_data.basicType = basicType; in VarType() 416 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local 418 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment() 421 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment() 422 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment() 428 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment() 457 glu::DataType basicType = type.getBasicType(); in computeStd430BaseAlignment() local 459 if (glu::isDataTypeMatrix(basicType)) in computeStd430BaseAlignment() 462 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd430BaseAlignment() [all …]
|
D | vktUniformBlockCase.hpp | 83 VarType (glu::DataType basicType, deUint32 flags); 93 glu::DataType getBasicType (void) const { return m_data.basicType; } in getBasicType() 117 glu::DataType basicType; member
|
/external/deqp/external/vulkancts/modules/vulkan/ |
D | vktShaderLibrary.cpp | 414 const DataType basicType = val.type.getBasicType(); in specializeFragmentShader() local 415 const char* const refTypeStr = getDataTypeName(basicType); in specializeFragmentShader() 625 const DataType basicType = values[ndx].type.getBasicType(); in computeStd140Layout() local 626 const bool isMatrix = isDataTypeMatrix(basicType); in computeStd140Layout() 627 const int numVecs = isMatrix ? getDataTypeMatrixNumColumns(basicType) : 1; in computeStd140Layout() 628 …pe vecType = isMatrix ? glu::getDataTypeFloatVec(getDataTypeMatrixNumRows(basicType)) : basicType; in computeStd140Layout() 648 const DataType basicType = values[ndx].type.getBasicType(); in computeStd430Layout() local 649 const int numVecs = isDataTypeMatrix(basicType) ? getDataTypeMatrixNumColumns(basicType) : 1; in computeStd430Layout() 650 …Type vecType = isDataTypeMatrix(basicType) ? glu::getDataTypeFloatVec(getDataTypeMatrixNumRows(ba… in computeStd430Layout() 664 const DataType basicType = value.type.getBasicType(); in copyToLayout() local [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderExecutor.cpp | 642 const glu::DataType basicType = symbol.varType.getBasicType(); in FragmentOutExecutor() local 643 const VkFormat format = getAttributeFormat(basicType); in FragmentOutExecutor() 680 const glu::DataType basicType = outputType.getBasicType(); in getRenderbufferFormatForOutput() local 681 const int numComps = glu::getDataTypeNumComponents(basicType); in getRenderbufferFormatForOutput() 684 switch (glu::getDataTypeScalarType(basicType)) in getRenderbufferFormatForOutput() 800 const glu::DataType basicType = symbol.varType.getBasicType(); in bindAttributes() local 801 const int vecSize = glu::getDataTypeScalarSize(basicType); in bindAttributes() 802 const VkFormat format = getAttributeFormat(basicType); in bindAttributes() 806 if (glu::isDataTypeFloatOrVec(basicType)) in bindAttributes() 808 else if (glu::isDataTypeFloat16OrVec(basicType)) in bindAttributes() [all …]
|
/external/deqp/external/openglcts/modules/common/ |
D | glcUniformBlockCase.hpp | 71 VarType(glu::DataType basicType, deUint32 flags); 95 return m_data.basicType; in getBasicType() 127 glu::DataType basicType; member
|
D | glcUniformBlockCase.cpp | 118 VarType::VarType(glu::DataType basicType, deUint32 flags) : m_type(TYPE_BASIC), m_flags(flags) in VarType() argument 120 m_data.basicType = basicType; in VarType() 391 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local 393 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment() 397 …isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) : glu::getDataTypeMatrixNumRows(basicType… in computeStd140BaseAlignment() 402 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment() 447 glu::DataType basicType = type.getBasicType(); in computeStd140Layout() local 451 entry.type = basicType; in computeStd140Layout() 457 if (glu::isDataTypeMatrix(basicType)) in computeStd140Layout() 462 …isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) : glu::getDataTypeMatrixNumRows(basicType… in computeStd140Layout() [all …]
|
/external/deqp-deps/glslang/hlsl/ |
D | hlslGrammar.cpp | 811 bool HlslGrammar::acceptTemplateVecMatBasicType(TBasicType& basicType) in acceptTemplateVecMatBasicType() argument 815 basicType = EbtFloat; in acceptTemplateVecMatBasicType() 818 basicType = EbtDouble; in acceptTemplateVecMatBasicType() 822 basicType = EbtInt; in acceptTemplateVecMatBasicType() 825 basicType = EbtUint; in acceptTemplateVecMatBasicType() 828 basicType = EbtBool; in acceptTemplateVecMatBasicType() 854 TBasicType basicType; in acceptVectorTemplateType() local 855 if (! acceptTemplateVecMatBasicType(basicType)) { in acceptVectorTemplateType() 878 new(&type) TType(basicType, EvqTemporary, vecSizeI); in acceptVectorTemplateType() 906 TBasicType basicType; in acceptMatrixTemplateType() local [all …]
|