/device/generic/vulkan-cereal/third-party/angle/src/compiler/translator/ |
D | CollectVariables.cpp | 71 void MarkActive(ShaderVariable *variable) in MarkActive() argument 73 if (!variable->active) in MarkActive() 75 if (variable->isStruct()) in MarkActive() 78 for (auto &field : variable->fields) in MarkActive() 83 variable->staticUse = true; in MarkActive() 84 variable->active = true; in MarkActive() 138 const TVariable &variable, 141 ShaderVariable recordAttribute(const TIntermSymbol &variable) const; 142 ShaderVariable recordOutputVariable(const TIntermSymbol &variable) const; 143 ShaderVariable recordVarying(const TIntermSymbol &variable) const; [all …]
|
D | VariablePacker.cpp | 24 void ExpandVariable(const ShaderVariable &variable, 28 void ExpandStructVariable(const ShaderVariable &variable, in ExpandStructVariable() argument 32 ASSERT(variable.isStruct()); in ExpandStructVariable() 34 const std::vector<ShaderVariable> &fields = variable.fields; in ExpandStructVariable() 43 void ExpandStructArrayVariable(const ShaderVariable &variable, in ExpandStructArrayVariable() argument 50 const unsigned int currentArraySize = variable.getNestedArraySize(arrayNestingIndex); in ExpandStructArrayVariable() 54 if (arrayNestingIndex + 1u < variable.arraySizes.size()) in ExpandStructArrayVariable() 56 ExpandStructArrayVariable(variable, arrayNestingIndex + 1u, elementName, expanded); in ExpandStructArrayVariable() 60 ExpandStructVariable(variable, elementName, expanded); in ExpandStructArrayVariable() 65 void ExpandVariable(const ShaderVariable &variable, in ExpandVariable() argument [all …]
|
D | blocklayout.cpp | 30 void encodeVariable(const ShaderVariable &variable, in encodeVariable() argument 35 ASSERT(!gl::IsSamplerType(variable.type)); in encodeVariable() 36 if (!gl::IsOpaqueType(variable.type)) in encodeVariable() 65 void TraverseStructVariable(const ShaderVariable &variable, in TraverseStructVariable() argument 69 const std::vector<ShaderVariable> &fields = variable.fields; in TraverseStructVariable() 71 visitor->enterStructAccess(variable, isRowMajorLayout); in TraverseStructVariable() 73 visitor->exitStructAccess(variable, isRowMajorLayout); in TraverseStructVariable() 76 void TraverseStructArrayVariable(const ShaderVariable &variable, in TraverseStructArrayVariable() argument 80 visitor->enterArray(variable); in TraverseStructArrayVariable() 84 const unsigned int currentArraySize = variable.getNestedArraySize(0); in TraverseStructArrayVariable() [all …]
|
D | blocklayoutHLSL.cpp | 135 void HLSLVariableRegisterCount(const ShaderVarType &variable, HLSLBlockEncoder *encoder) in HLSLVariableRegisterCount() argument 137 if (variable.isStruct()) in HLSLVariableRegisterCount() 139 for (size_t arrayElement = 0; arrayElement < variable.getArraySizeProduct(); arrayElement++) in HLSLVariableRegisterCount() 141 encoder->enterAggregateType(variable); in HLSLVariableRegisterCount() 143 for (const ShaderVariable &field : variable.fields) in HLSLVariableRegisterCount() 148 encoder->exitAggregateType(variable); in HLSLVariableRegisterCount() 154 encoder->encodeType(variable.type, variable.arraySizes, false); in HLSLVariableRegisterCount() 158 unsigned int HLSLVariableRegisterCount(const ShaderVariable &variable, ShShaderOutput outputType) in HLSLVariableRegisterCount() argument 161 HLSLVariableRegisterCount(variable, &encoder); in HLSLVariableRegisterCount()
|
D | ShaderStorageBlockOutputHLSL.cpp | 167 void MapVariableToField(const ShaderVariable &variable, in MapVariableToField() argument 172 ASSERT((field->type()->getStruct() == nullptr) == variable.fields.empty()); in MapVariableToField() 175 if (!variable.fields.empty()) in MapVariableToField() 178 ASSERT(variable.fields.size() == subStruct->fields().size()); in MapVariableToField() 180 for (size_t index = 0; index < variable.fields.size(); ++index) in MapVariableToField() 183 const ShaderVariable &subVariable = variable.fields[index]; in MapVariableToField() 245 void encodeVariable(const ShaderVariable &variable, in encodeVariable() argument 283 const ShaderVariable &variable = block->fields[index]; in GetShaderStorageBlockMembersInfo() local 284 MapVariableToField(variable, field, variable.name, &shaderVarToFieldMap); in GetShaderStorageBlockMembersInfo() 483 const TVariable &variable = node->variable(); in visitSymbol() local [all …]
|
D | SymbolTable.cpp | 192 TSymbolTable::VariableMetadata *TSymbolTable::getOrCreateVariableMetadata(const TVariable &variable) in getOrCreateVariableMetadata() argument 194 int id = variable.uniqueId().get(); in getOrCreateVariableMetadata() 203 void TSymbolTable::markStaticWrite(const TVariable &variable) in markStaticWrite() argument 205 auto metadata = getOrCreateVariableMetadata(variable); in markStaticWrite() 209 void TSymbolTable::markStaticRead(const TVariable &variable) in markStaticRead() argument 211 auto metadata = getOrCreateVariableMetadata(variable); in markStaticRead() 215 bool TSymbolTable::isStaticallyUsed(const TVariable &variable) const in isStaticallyUsed() 217 ASSERT(!variable.getConstPointer()); in isStaticallyUsed() 218 int id = variable.uniqueId().get(); in isStaticallyUsed() 223 void TSymbolTable::addInvariantVarying(const TVariable &variable) in addInvariantVarying() argument [all …]
|
D | ResourcesHLSL.cpp | 378 const TVariable &variable, in outputHLSL4_0_FL9_3Sampler() argument 382 << DecorateVariableIfNeeded(variable) << ArrayString(type) << " : register(s" in outputHLSL4_0_FL9_3Sampler() 385 << DecorateVariableIfNeeded(variable) << ArrayString(type) << " : register(t" in outputHLSL4_0_FL9_3Sampler() 391 const TVariable &variable, in outputUniform() argument 409 out << DecorateVariableIfNeeded(variable); in outputUniform() 445 const TVariable &variable = *uniformIt.second; in uniformsHeader() local 446 const TType &type = variable.getType(); in uniformsHeader() 451 groupedSamplerUniforms[group].push_back(&variable); in uniformsHeader() 455 unsigned int registerIndex = assignUniformRegister(type, variable.name(), nullptr); in uniformsHeader() 456 outputHLSL4_0_FL9_3Sampler(out, type, variable, registerIndex); in uniformsHeader() [all …]
|
D | BuiltinsWorkaroundGLSL.cpp | 47 if (node->variable().symbolType() == SymbolType::BuiltIn) in visitSymbol() 83 TIntermSymbol *variable = variableNode->getAsSymbolNode(); in visitDeclaration() local 84 if (variable && variable->variable().symbolType() == SymbolType::AngleInternal) in visitDeclaration() 86 if (variable->getName() == "angle_BaseInstance") in visitDeclaration()
|
D | OutputHLSL.cpp | 58 TIntermTyped *variable = (*sequence)[0]->getAsTyped(); in IsDeclarationWrittenOut() local 60 ASSERT(variable); in IsDeclarationWrittenOut() 61 return (variable->getQualifier() == EvqTemporary || variable->getQualifier() == EvqGlobal || in IsDeclarationWrittenOut() 62 variable->getQualifier() == EvqConst || variable->getQualifier() == EvqShared); in IsDeclarationWrittenOut() 103 const TVariable &variable = symbolNode->variable(); in GetInterfaceBlockOfUniformBlockNearestIndexOperator() local 104 const TType &variableType = variable.getType(); in GetInterfaceBlockOfUniformBlockNearestIndexOperator() 107 variable.symbolType() == SymbolType::UserDefined) in GetInterfaceBlockOfUniformBlockNearestIndexOperator() 582 if (mappedStruct.blockDeclarator->variable().symbolType() != SymbolType::Empty) in generateStructMapping() 585 mappedStruct.blockDeclarator->variable().name(); in generateStructMapping() 1149 const TVariable &variable = node->variable(); in visitSymbol() local [all …]
|
D | blocklayout.h | 160 virtual size_t getBaseAlignment(const ShaderVariable &variable) const; 170 size_t getBaseAlignment(const ShaderVariable &variable) const override; 206 virtual void visitVariable(const ShaderVariable &variable, bool isRowMajor) = 0; 233 virtual void visitNamedVariable(const ShaderVariable &variable, 244 void visitVariable(const ShaderVariable &variable, bool isRowMajor) final; 264 void visitNamedVariable(const ShaderVariable &variable, 270 virtual void encodeVariable(const ShaderVariable &variable, in encodeVariable() argument 287 void TraverseShaderVariable(const ShaderVariable &variable,
|
D | UtilsHLSL.cpp | 850 TString DecorateVariableIfNeeded(const TVariable &variable) in DecorateVariableIfNeeded() argument 852 if (variable.symbolType() == SymbolType::AngleInternal || in DecorateVariableIfNeeded() 853 variable.symbolType() == SymbolType::Empty) in DecorateVariableIfNeeded() 856 const ImmutableString &name = variable.name(); in DecorateVariableIfNeeded() 864 else if (variable.symbolType() == SymbolType::UserDefined && in DecorateVariableIfNeeded() 865 variable.getType().getQualifier() == EvqTemporary) in DecorateVariableIfNeeded() 867 return Decorate(variable.name()) + str(variable.uniqueId().get()); in DecorateVariableIfNeeded() 871 return Decorate(variable.name()); in DecorateVariableIfNeeded()
|
D | OutputGLSLBase.cpp | 172 std::string TOutputGLSLBase::getCommonLayoutQualifiers(TIntermTyped *variable) in getCommonLayoutQualifiers() argument 177 const TType &type = variable->getType(); in getCommonLayoutQualifiers() 250 void TOutputGLSLBase::writeLayoutQualifier(TIntermTyped *variable) in writeLayoutQualifier() argument 252 const TType &type = variable->getType(); in writeLayoutQualifier() 289 std::string otherQualifiers = getCommonLayoutQualifiers(variable); in writeLayoutQualifier() 523 out << hashName(&node->variable()); in visitSymbol() 975 out << (node->isPrecise() ? "precise " : "invariant ") << hashName(&symbol->variable()); in visitGlobalQualifierDeclaration() 1092 TIntermTyped *variable = sequence.front()->getAsTyped(); in visitDeclaration() local 1093 TIntermSymbol *symbolNode = variable->getAsSymbolNode(); in visitDeclaration() 1097 writeLayoutQualifier(variable); in visitDeclaration() [all …]
|
D | SymbolTable.h | 249 void markStaticRead(const TVariable &variable); 250 void markStaticWrite(const TVariable &variable); 253 bool isStaticallyUsed(const TVariable &variable) const; 277 void addInvariantVarying(const TVariable &variable); 282 bool isVaryingInvariant(const TVariable &variable) const; 319 VariableMetadata *getOrCreateVariableMetadata(const TVariable &variable);
|
/device/generic/vulkan-cereal/protocols/vulkan/chapters/ |
D | interfaces.txt | 76 the variable. 102 or code:Output storage class form the _user-defined variable interface_. 118 An output variable, block, or structure member in a given shader stage has 119 an interface match with an input variable, block, or structure member in a 168 The value of an input variable is undefined: if the preceding stage does not 169 write to a matching output variable, as described above. 176 how many locations are consumed by a given user-variable type. 237 output variable of the same type. 248 block>> and the <<interfaces-iointerfaces-user,user-defined variable 284 A variable or block member starting at component N will consume components [all …]
|
/device/generic/vulkan-cereal/third-party/angle/src/libANGLE/ |
D | ProgramLinkedResources.cpp | 38 for (auto &variable : *list) in SetActive() 40 if (variable.name == name) in SetActive() 42 variable.setActive(shaderType, active); in SetActive() 248 void visitNamedVariable(const sh::ShaderVariable &variable, in visitNamedVariable() argument 262 if (variable.isArray()) in visitNamedVariable() 270 SetActive(mUniformsOut, nameWithArrayIndex, mShaderType, variable.active); in visitNamedVariable() 274 LinkedUniform newUniform(variable.type, variable.precision, nameWithArrayIndex, in visitNamedVariable() 275 variable.arraySizes, -1, -1, -1, mBlockIndex, variableInfo); in visitNamedVariable() 277 newUniform.setActive(mShaderType, variable.active); in visitNamedVariable() 309 void visitNamedVariable(const sh::ShaderVariable &variable, in visitNamedVariable() argument [all …]
|
/device/generic/vulkan-cereal/third-party/angle/src/compiler/translator/tree_ops/ |
D | RewriteCubeMapSamplersAs2DArray.cpp | 228 TIntermTyped *variable = sequence.front()->getAsTyped(); in visitDeclaration() local 229 const TType &type = variable->getType(); in visitDeclaration() 235 TIntermSymbol *samplerVariable = variable->getAsSymbolNode(); in visitDeclaration() 238 declareSampler2DArray(&samplerVariable->variable(), node); in visitDeclaration() 304 const TVariable *samplerCubeVar = &symbol->variable(); in visitSymbol() 509 &absX->variable(), new TIntermUnary(EOpAbs, x->deepCopy(), nullptr)); in declareCoordTranslationFunction() 511 &absY->variable(), new TIntermUnary(EOpAbs, y->deepCopy(), nullptr)); in declareCoordTranslationFunction() 513 &absZ->variable(), new TIntermUnary(EOpAbs, z->deepCopy(), nullptr)); in declareCoordTranslationFunction() 528 body->appendStatement(CreateTempInitDeclarationNode(&pRecipVar->variable(), pRecip)); in declareCoordTranslationFunction() 531 &recipOuter->variable(), in declareCoordTranslationFunction() [all …]
|
D | RewriteStructSamplers.cpp | 42 const TVariable &oldVariable = symbolNode->variable(); in ReplaceTypeOfSymbolNode() 348 const TVariable &variable = asSymbol->variable(); in visitDeclaration() local 349 ASSERT(variable.symbolType() != SymbolType::Empty); in visitDeclaration() 350 extractStructSamplerUniforms(decl, variable, type.getStruct(), newSequence); in visitDeclaration() 361 const TVariable &variable = asSymbol->variable(); in visitDeclaration() local 362 ASSERT(variable.symbolType() != SymbolType::Empty); in visitDeclaration() 363 extractSampler(variable.name(), variable.symbolType(), variable.getType(), newSequence, in visitDeclaration() 528 const ImmutableString &variableName = currentNode->getAsSymbolNode()->variable().name(); in GetStructSamplerNameFromTypedNode() 602 const TVariable &variable, in extractStructSamplerUniforms() argument 610 enterArray(variable.getType()); in extractStructSamplerUniforms() [all …]
|
D | RewriteRowMajorMatrices.cpp | 439 TIntermTyped *variable = sequence.front()->getAsTyped(); in visitDeclaration() local 440 const TType &type = variable->getType(); in visitDeclaration() 496 const TVariable *variable = &symbol->variable(); in visitSymbol() local 497 bool needsRewrite = mInterfaceBlockMap->count(variable) != 0; in visitSymbol() 504 if (symbol->getType().getInterfaceBlock() && !variable->getType().isInterfaceBlock()) in visitSymbol() 606 const TVariable *variable = &variableNode->getAsSymbolNode()->variable(); in convertInterfaceBlock() local 617 bool variableIsTemp = variable->symbolType() == SymbolType::Empty; in convertInterfaceBlock() 619 variableIsTemp ? kEmptyImmutableString : variable->name(); in convertInterfaceBlock() 622 variable->symbolType(), variable->extension()); in convertInterfaceBlock() 626 mOuterPass.interfaceBlockMap[variable] = newVariable; in convertInterfaceBlock() [all …]
|
D | EmulateMultiDrawShaderBuiltins.cpp | 45 if (&node->variable() == BuiltInVariable::gl_DrawID()) in visitSymbol() 47 mVariable = &node->variable(); in visitSymbol() 63 if (&node->variable() == BuiltInVariable::gl_VertexID()) in visitSymbol() 86 if (&node->variable() == BuiltInVariable::gl_BaseVertex()) in visitSymbol() 88 mVariable = &node->variable(); in visitSymbol() 108 if (&node->variable() == BuiltInVariable::gl_BaseInstance()) in visitSymbol() 110 mVariable = &node->variable(); in visitSymbol()
|
D | RewriteStructSamplersOld.cpp | 40 const TVariable &oldVariable = symbolNode->variable(); in ReplaceTypeOfSymbolNode() 128 const TVariable &variable = asSymbol->variable(); in visitDeclaration() local 129 ASSERT(variable.symbolType() != SymbolType::Empty); in visitDeclaration() 130 extractStructSamplerUniforms(decl, variable, type.getStruct(), newSequence); in visitDeclaration() 265 const ImmutableString &variableName = currentNode->getAsSymbolNode()->variable().name(); in GetStructSamplerNameFromTypedNode() 339 const TVariable &variable, in extractStructSamplerUniforms() argument 350 extractFieldSamplers(variable.name(), field, variable.getType(), newSequence); in extractStructSamplerUniforms()
|
/device/generic/vulkan-cereal/third-party/angle/src/compiler/translator/tree_util/ |
D | ReplaceClipDistanceVariable.cpp | 59 TIntermTyped *variable = sequence.front()->getAsTyped(); in visitDeclaration() local 60 if (!variable->getAsSymbolNode() || in visitDeclaration() 61 variable->getAsSymbolNode()->getName() != "gl_ClipDistance") in visitDeclaration() 66 *mRedeclaredSym = variable->getAsSymbolNode(); in visitDeclaration() 148 if (&node->variable() == mToBeReplaced && node != mException) in visitSymbol() 186 glClipDistanceVar = &redeclaredGLClipDistance->variable(); in ReplaceClipDistanceAssignments()
|
D | IntermNode_util.cpp | 211 TVariable *variable = CreateTempVariable(symbolTable, type, qualifier); in DeclareTempVariable() local 212 *declarationOut = CreateTempDeclarationNode(variable); in DeclareTempVariable() 213 return variable; in DeclareTempVariable() 221 TVariable *variable = in DeclareTempVariable() local 223 *declarationOut = CreateTempInitDeclarationNode(variable, initializer); in DeclareTempVariable() 224 return variable; in DeclareTempVariable()
|
/device/generic/vulkan-cereal/third-party/angle/tools/flex-bison/third_party/skeletons/ |
D | bison.m4 | 709 # the %define variable VARIABLE is defined, emit its value. Contrary 726 # if the %define variable VARIABLE is undefined, complain fatally since that's 740 [b4_fatal([[$0: undefined %%define variable '%s']], [$1])])]) 747 # If the %define variable VARIABLE is undefined, complain fatally 754 [b4_fatal([[$0: undefined %%define variable '%s']], [$1])])]) 759 # That is, if the %define variable VARIABLE is undefined, complain fatally 771 [b4_fatal([[$0: undefined %%define variable '%s']], [$1])])]) 775 # If the %define variable VARIABLE is defined, expand IF-TRUE, else expand 789 # if the %define variable VARIABLE is defined, expand IF-TRUE, else expand 804 # Warn about %define variable VARIABLE having an incorrect [all …]
|
/device/google/trout/agl_services_build/toolchain/ |
D | agl_toolchain.cmake | 4 # Toolchain precedence: environment variable TROUT_CLANG_PATH > LV Clang Toolchain 5 # AGL sysroot precedence: environment variable TROUT_AGL_SYSROOT > LV AGL sysroot 20 …MESSAGE(FATAL_ERROR "Please run `lunch`, or define environment variable LV_BUILD_PATH or TROUT_CLA… 24 MESSAGE(FATAL_ERROR "Please define environment variable LV_BUILD_PATH or TROUT_AGL_SYSROOT")
|
/device/generic/vulkan-cereal/third-party/angle/src/tests/compiler_tests/ |
D | IntermNode_test.cpp | 50 TVariable *variable = in createTestSymbol() local 52 TIntermSymbol *node = new TIntermSymbol(variable); in createTestSymbol() 94 ASSERT_EQ(&original->variable(), ©->variable()); in checkSymbolCopy() 147 TVariable *variable = in TEST_F() local 149 TIntermSymbol *original = new TIntermSymbol(variable); in TEST_F()
|