Lines Matching defs:block

290 	virtual void				validateSingleBlock		(const glu::InterfaceBlock& block, const std::vector<int>& instanceIndex, const std::string& resource, glw::GLint propValue, const std::string& implementationName) const = 0;
337 const glu::InterfaceBlock& block = shader->getDefaultBlock().interfaceBlocks[blockNdx];
339 if (m_filter.matchesFilter(block) && block.interfaceName == blockName)
342 DE_ASSERT(instanceIndex.size() == block.dimensions.size());
344 validateSingleBlock(block, instanceIndex, resource, propValue, implementationName);
550 // Atomics are buffer backed with stride of 4 even though they are not in an interface block
585 m_testCtx.getLog() << tcu::TestLog::Message << "Verifying block index, expecting -1" << tcu::TestLog::EndMessage;
590 setError("resource block index invalid");
595 m_testCtx.getLog() << tcu::TestLog::Message << "Verifying block index, expecting a valid block index" << tcu::TestLog::EndMessage;
600 setError("resource block index invalid");
612 GLU_EXPECT_NO_ERROR(gl.getError(), "query block name");
628 setError("resource block index invalid");
854 const glu::InterfaceBlock* block = path.front().getInterfaceBlock();
855 int currentLocation = block->layout.location;
857 // Find the block member
858 for (int memberNdx = 0; memberNdx < (int)block->variables.size(); ++memberNdx)
860 if (block->variables[memberNdx].layout.location != -1)
861 currentLocation = block->variables[memberNdx].layout.location;
863 if (&block->variables[memberNdx] == path[1].getDeclaration())
868 currentLocation += getVariableLocationLength(block->variables[memberNdx].varType);
881 // inside uniform block
894 // default block uniform
902 // default block input/output
936 reasonStr = "Uniform block variables have effective location of -1";
1184 void validateSingleBlock (const glu::InterfaceBlock& block, const std::vector<int>& instanceIndex, const std::string& resource, glw::GLint propValue, const std::string& implementationName) const;
1192 void BlockNameLengthValidator::validateSingleBlock (const glu::InterfaceBlock& block, const std::vector<int>& instanceIndex, const std::string& resource, glw::GLint propValue, const std::string& implementationName) const
1195 DE_UNREF(block);
1213 void validateSingleBlock (const glu::InterfaceBlock& block, const std::vector<int>& instanceIndex, const std::string& resource, glw::GLint propValue, const std::string& implementationName) const;
1221 void BufferBindingValidator::validateSingleBlock (const glu::InterfaceBlock& block, const std::vector<int>& instanceIndex, const std::string& resource, glw::GLint propValue, const std::string& implementationName) const
1226 if (block.layout.binding != -1)
1231 for (int dimensionNdx = (int)(block.dimensions.size()) - 1; dimensionNdx >= 0; --dimensionNdx)
1234 dimensionSize *= block.dimensions[dimensionNdx];
1237 const int expected = (block.dimensions.empty()) ? (block.layout.binding) : (block.layout.binding + flatIndex);
1238 m_testCtx.getLog() << tcu::TestLog::Message << "Verifying block binding, expecting " << expected << tcu::TestLog::EndMessage;
1299 const glu::InterfaceBlock& block = shader->getDefaultBlock().interfaceBlocks[blockNdx];
1301 if (m_filter.matchesFilter(block) && block.interfaceName == blockName)
1344 reason = "Top-level block member is not an array";
1349 reason = "Top-level block member is not an array of an aggregate type";
1354 reason = "Top-level block member is an unsized top-level array";
1359 reason = "Top-level block member is a sized top-level array";
1392 m_testCtx.getLog() << tcu::TestLog::Message << "Verifying top level array stride, expecting 0. (Top-level block member is not an array)." << tcu::TestLog::EndMessage;
1402 m_testCtx.getLog() << tcu::TestLog::Message << "Verifying top level array stride, expecting 0. (Top-level block member is not an array of an aggregate type)." << tcu::TestLog::EndMessage;
1816 const glu::InterfaceBlock& block = shader->getDefaultBlock().interfaceBlocks[blockNdx];
1818 if (((1u << block.storage) & validStorageBits) == 0)
1821 if (block.interfaceName == blockInterfaceName)
1881 const glu::InterfaceBlock& block = shader->getDefaultBlock().interfaceBlocks[blockNdx];
1883 if (((1u << block.storage) & validStorageBits) == 0)
1886 for (int varNdx = 0; varNdx < (int)block.variables.size(); ++varNdx)
1888 if (block.variables[varNdx].name == memberName)
1889 return block.interfaceName;
1983 // builtin interface bock, remove block name
1988 // user-defined inteface block, remove name
2009 // free builtin variable, add block name
2018 // free user variable, add block name
2279 const tcu::ScopedLogSection section (m_testCtx.getLog(), "BlockResource", "Interface block \"" + targetResources[targetResourceNdx] + "\"");