/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
D | StaticType.h | 41 constexpr StaticMangledName BuildStaticMangledName(TBasicType basicType, in BuildStaticMangledName() argument 49 TBasicMangledName typeName(basicType); in BuildStaticMangledName() 65 constexpr StaticArrayMangledName BuildStaticArrayMangledName(TBasicType basicType, in BuildStaticArrayMangledName() argument 74 BuildStaticMangledName(basicType, precision, qualifier, primarySize, secondarySize); in BuildStaticArrayMangledName() 91 template <TBasicType basicType, 97 BuildStaticMangledName(basicType, precision, qualifier, primarySize, secondarySize); 100 template <TBasicType basicType, 108 BuildStaticArrayMangledName(basicType, 127 template <TBasicType basicType, 133 TType(basicType, [all …]
|
D | IntermNode.cpp | 53 TBasicType basicType, in UndefinedConstantFoldingError() argument 60 switch (basicType) in UndefinedConstantFoldingError() 863 TBasicType basicType = getBasicType(); in getConstantValue() local 886 constArray[resultIndex].cast(basicType, argumentConstantValue[0]); in getConstantValue() 900 constArray[resultIndex].cast(basicType, argumentConstantValue[0]); in getConstantValue() 921 basicType, argumentConstantValue[col * argumentRows + row]); in getConstantValue() 948 constArray[resultIndex].cast(basicType, argumentConstantValue[i]); in getConstantValue() 3426 TBasicType basicType = EbtVoid; in FoldAggregateBuiltIn() local 3435 basicType = argConstant->getType().getBasicType(); in FoldAggregateBuiltIn() 3457 ASSERT(basicType == EbtFloat); in FoldAggregateBuiltIn() [all …]
|
/third_party/glslang/glslang/MachineIndependent/ |
D | glslang.y | 1060 if ($1.basicType == EbtVoid) { 1205 parseContext.precisionQualifierCheck($$.loc, $$.basicType, $$.qualifier, $$.isCoopmat()); 1222 parseContext.precisionQualifierCheck($2.loc, $2.basicType, $2.qualifier, $2.isCoopmat()); 1370 if ($$.basicType == EbtVoid) 1371 $$.basicType = $2.basicType; 1753 $$->basicType = $1.basicType; 1775 $$.basicType = EbtVoid; 1779 $$.basicType = EbtFloat; 1783 $$.basicType = EbtInt; 1788 $$.basicType = EbtUint; [all …]
|
D | glslang_tab.cpp | 6380 if ((yyvsp[-1].interm.type).basicType == EbtVoid) { in yyparse() 6588 …parseContext.precisionQualifierCheck((yyval.interm.type).loc, (yyval.interm.type).basicType, (yyva… in yyparse() 6610 …cisionQualifierCheck((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type).basicType, (yyvsp[0].inter… in yyparse() 6838 if ((yyval.interm.type).basicType == EbtVoid) in yyparse() 6839 (yyval.interm.type).basicType = (yyvsp[0].interm.type).basicType; in yyparse() 7504 (yyval.interm.typeParameters)->basicType = (yyvsp[0].interm.type).basicType; in yyparse() 7538 (yyval.interm.type).basicType = EbtVoid; in yyparse() 7547 (yyval.interm.type).basicType = EbtFloat; in yyparse() 7556 (yyval.interm.type).basicType = EbtInt; in yyparse() 7566 (yyval.interm.type).basicType = EbtUint; in yyparse() [all …]
|
/third_party/glslang/glslang/Include/ |
D | Types.h | 1431 TTypeParameters() : basicType(EbtVoid), arraySizes(nullptr) {} in POOL_ALLOCATOR_NEW_DELETE() 1433 TBasicType basicType; variable 1436 …bool operator==(const TTypeParameters& rhs) const { return basicType == rhs.basicType && *arraySiz… 1437 …bool operator!=(const TTypeParameters& rhs) const { return basicType != rhs.basicType || *arraySiz… 1450 TBasicType basicType; 1472 basicType = EbtVoid; in initType() 1526 bool isImage() const { return basicType == EbtSampler && sampler.isImage(); } in isImage() 1527 bool isSubpass() const { return basicType == EbtSampler && sampler.isSubpass(); } in isSubpass() 1528 bool isAttachmentEXT() const { return basicType == EbtSampler && sampler.isAttachmentEXT(); } in isAttachmentEXT() 1541 …basicType(t), vectorSize(static_cast<uint32_t>(vs) & 0b1111), matrixCols(static_cast<uint32_t>(mc)… in POOL_ALLOCATOR_NEW_DELETE() [all …]
|
/third_party/vk-gl-cts/framework/opengl/ |
D | gluVarTypeUtil.hpp | 300 DataType basicType = curType.getBasicType(); in findNext() local 302 if (isDataTypeMatrix(basicType)) in findNext() 304 else if (isDataTypeVector(basicType)) in findNext() 355 DataType basicType = curType->getBasicType(); in isValidTypePath() local 359 if (!isDataTypeMatrix(basicType)) in isValidTypePath() 362 basicType = getDataTypeFloatVec(getDataTypeMatrixNumRows(basicType)); in isValidTypePath() 368 if (!isDataTypeVector(basicType)) in isValidTypePath() 371 basicType = getDataTypeScalarType(basicType); in isValidTypePath() 402 DataType basicType = curType->getBasicType(); in getVarType() local 407 basicType = getDataTypeFloatVec(getDataTypeMatrixNumRows(basicType)); in getVarType() [all …]
|
/third_party/vk-gl-cts/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 | 372 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local 374 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment() 377 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment() 378 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment() 384 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment() 413 glu::DataType basicType = type.getBasicType(); in computeStd430BaseAlignment() local 415 if (glu::isDataTypeMatrix(basicType)) in computeStd430BaseAlignment() 418 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd430BaseAlignment() 419 : glu::getDataTypeMatrixNumRows(basicType); in computeStd430BaseAlignment() 425 return getDataTypeByteAlignment(basicType); in computeStd430BaseAlignment() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/ |
D | vktSSBOLayoutCase.cpp | 328 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local 330 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment() 333 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment() 334 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment() 340 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment() 369 glu::DataType basicType = type.getBasicType(); in computeStd430BaseAlignment() local 371 if (glu::isDataTypeMatrix(basicType)) in computeStd430BaseAlignment() 374 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd430BaseAlignment() 375 : glu::getDataTypeMatrixNumRows(basicType); in computeStd430BaseAlignment() 380 return getDataTypeByteAlignment(basicType); in computeStd430BaseAlignment() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ssbo/ |
D | vktSSBOLayoutCase.cpp | 328 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local 330 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment() 333 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment() 334 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment() 340 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment() 369 glu::DataType basicType = type.getBasicType(); in computeStd430BaseAlignment() local 371 if (glu::isDataTypeMatrix(basicType)) in computeStd430BaseAlignment() 374 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd430BaseAlignment() 375 : glu::getDataTypeMatrixNumRows(basicType); in computeStd430BaseAlignment() 380 return getDataTypeByteAlignment(basicType); in computeStd430BaseAlignment() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
D | Intermediate.cpp | 1012 TBasicType basicType = left->getBasicType(); in promote() local 1019 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1024 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1030 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1037 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1044 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1072 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1081 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1144 setType(TType(basicType, higherPrecision, EvqTemporary, in promote() 1783 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()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/util/ |
D | vktTypeComparisonUtil.cpp | 134 void getCompareDependencies (std::set<glu::DataType> &compareFuncs, glu::DataType basicType) in getCompareDependencies() argument 136 switch (basicType) in getCompareDependencies() 145 compareFuncs.insert(basicType); in getCompareDependencies() 158 compareFuncs.insert(glu::getDataTypeFloatVec(glu::getDataTypeMatrixNumRows(basicType))); in getCompareDependencies() 159 compareFuncs.insert(basicType); in getCompareDependencies() 163 compareFuncs.insert(basicType); in getCompareDependencies()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/util/ |
D | vktTypeComparisonUtil.cpp | 134 void getCompareDependencies (std::set<glu::DataType> &compareFuncs, glu::DataType basicType) in getCompareDependencies() argument 136 switch (basicType) in getCompareDependencies() 145 compareFuncs.insert(basicType); in getCompareDependencies() 158 compareFuncs.insert(glu::getDataTypeFloatVec(glu::getDataTypeMatrixNumRows(basicType))); in getCompareDependencies() 159 compareFuncs.insert(basicType); in getCompareDependencies() 163 compareFuncs.insert(basicType); in getCompareDependencies()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory_model/ |
D | vktMemoryModelSharedLayoutCase.cpp | 219 const glu::DataType basicType = curType.getBasicType(); in generateSharedMemoryWrites() local 220 const string typeName = glu::getDataTypeName(basicType); in generateSharedMemoryWrites() 223 const glu::DataType promoteType = vkt::typecomputil::getPromoteType(basicType); in generateSharedMemoryWrites() 225 int numElements = glu::getDataTypeScalarSize(basicType); in generateSharedMemoryWrites() 226 if (glu::isDataTypeMatrix(basicType)) in generateSharedMemoryWrites() 227 …numElements = glu::getDataTypeMatrixNumColumns(basicType) * glu::getDataTypeMatrixNumRows(basicTyp… in generateSharedMemoryWrites() 234 if (basicType != promoteType || numElements > 1) in generateSharedMemoryWrites() 242 if (basicType != promoteType || numElements > 1) in generateSharedMemoryWrites() 243 src << glu::getDataTypeName(basicType) << "("; in generateSharedMemoryWrites() 249 if (basicType != promoteType) in generateSharedMemoryWrites() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory_model/ |
D | vktMemoryModelSharedLayoutCase.cpp | 219 const glu::DataType basicType = curType.getBasicType(); in generateSharedMemoryWrites() local 220 const string typeName = glu::getDataTypeName(basicType); in generateSharedMemoryWrites() 223 const glu::DataType promoteType = vkt::typecomputil::getPromoteType(basicType); in generateSharedMemoryWrites() 225 int numElements = glu::getDataTypeScalarSize(basicType); in generateSharedMemoryWrites() 226 if (glu::isDataTypeMatrix(basicType)) in generateSharedMemoryWrites() 227 …numElements = glu::getDataTypeMatrixNumColumns(basicType) * glu::getDataTypeMatrixNumRows(basicTyp… in generateSharedMemoryWrites() 234 if (basicType != promoteType || numElements > 1) in generateSharedMemoryWrites() 242 if (basicType != promoteType || numElements > 1) in generateSharedMemoryWrites() 243 src << glu::getDataTypeName(basicType) << "("; in generateSharedMemoryWrites() 249 if (basicType != promoteType) in generateSharedMemoryWrites() [all …]
|
/third_party/mesa3d/src/mesa/main/ |
D | uniform_query.cpp | 731 log_uniform(const void *values, enum glsl_base_type basicType, in log_uniform() argument 751 switch (basicType) { in log_uniform() 1144 enum glsl_base_type basicType, unsigned src_components) in validate_uniform() argument 1175 match = (basicType != GLSL_TYPE_DOUBLE); in validate_uniform() 1178 match = (basicType == GLSL_TYPE_INT); in validate_uniform() 1181 match = (basicType == GLSL_TYPE_INT && _mesa_is_desktop_gl(ctx)); in validate_uniform() 1184 match = basicType == GLSL_TYPE_FLOAT; in validate_uniform() 1187 match = (basicType == uni->type->base_type); in validate_uniform() 1196 glsl_type_name(basicType)); in validate_uniform() 1201 log_uniform(values, basicType, components, 1, count, in validate_uniform() [all …]
|
/third_party/vk-gl-cts/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 …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/ |
D | vktUniformBlockCase.cpp | 76 VarType::VarType (glu::DataType basicType, deUint32 flags) in VarType() argument 80 m_data.basicType = basicType; in VarType() 411 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local 413 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment() 416 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment() 417 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment() 423 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment() 452 glu::DataType basicType = type.getBasicType(); in computeStd430BaseAlignment() local 454 if (glu::isDataTypeMatrix(basicType)) in computeStd430BaseAlignment() 457 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd430BaseAlignment() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ubo/ |
D | vktUniformBlockCase.cpp | 76 VarType::VarType (glu::DataType basicType, deUint32 flags) in VarType() argument 80 m_data.basicType = basicType; in VarType() 411 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local 413 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment() 416 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment() 417 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment() 423 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment() 452 glu::DataType basicType = type.getBasicType(); in computeStd430BaseAlignment() local 454 if (glu::isDataTypeMatrix(basicType)) in computeStd430BaseAlignment() 457 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd430BaseAlignment() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/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 …]
|
/third_party/vk-gl-cts/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 …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/ |
D | vktShaderExecutor.cpp | 644 const glu::DataType basicType = symbol.varType.getBasicType(); in FragmentOutExecutor() local 645 const VkFormat format = getAttributeFormat(basicType); in FragmentOutExecutor() 682 const glu::DataType basicType = outputType.getBasicType(); in getRenderbufferFormatForOutput() local 683 const int numComps = glu::getDataTypeNumComponents(basicType); in getRenderbufferFormatForOutput() 686 switch (glu::getDataTypeScalarType(basicType)) in getRenderbufferFormatForOutput() 813 const glu::DataType basicType = symbol.varType.getBasicType(); in bindAttributes() local 814 const int vecSize = glu::getDataTypeScalarSize(basicType); in bindAttributes() 815 const VkFormat format = getAttributeFormat(basicType); in bindAttributes() 819 if (glu::isDataTypeDoubleOrDVec(basicType)) in bindAttributes() 821 if (glu::isDataTypeFloatOrVec(basicType)) in bindAttributes() [all …]
|