Home
last modified time | relevance | path

Searched refs:numInstances (Results 1 – 23 of 23) sorted by relevance

/external/gptfdisk/
Dparttypes.cc19 int PartType::numInstances = 0; member in PartType
33 numInstances++; in PartType()
34 if (numInstances == 1) { in PartType()
40 numInstances++; in PartType()
41 if (numInstances == 1) { // should never happen; just being paranoid in PartType()
47 numInstances++; in PartType()
48 if (numInstances == 1) { in PartType()
56 numInstances--; in ~PartType()
57 if (numInstances == 0) { in ~PartType()
Dmbrpart.cc35 int MBRPart::numInstances = 0; member in MBRPart
51 if (numInstances == 0) { in MBRPart()
57 numInstances++; in MBRPart()
61 numInstances++; in MBRPart()
66 numInstances--; in ~MBRPart()
Dgptcurses.cc36 int GPTDataCurses::numInstances = 0; member in GPTDataCurses
39 if (numInstances > 0) { in GPTDataCurses()
49 numInstances++; in GPTDataCurses()
61 numInstances--; in ~GPTDataCurses()
62 if ((numInstances == 0) && !isendwin()) in ~GPTDataCurses()
Dparttypes.h34 static int numInstances;
Dgptcurses.h78 static int numInstances;
Dmbrpart.h69 static int numInstances; variable
/external/mesa3d/src/mesa/main/
Dapi_validate.c522 GLsizei count, GLsizei numInstances) in _mesa_validate_DrawArraysInstanced() argument
544 if (numInstances <= 0) { in _mesa_validate_DrawArraysInstanced()
545 if (numInstances < 0) in _mesa_validate_DrawArraysInstanced()
547 "glDrawArraysInstanced(numInstances=%d)", numInstances); in _mesa_validate_DrawArraysInstanced()
566 const GLvoid *indices, GLsizei numInstances, in _mesa_validate_DrawElementsInstanced() argument
586 if (numInstances <= 0) { in _mesa_validate_DrawElementsInstanced()
587 if (numInstances < 0) in _mesa_validate_DrawElementsInstanced()
589 "glDrawElementsInstanced(numInstances=%d)", numInstances); in _mesa_validate_DrawElementsInstanced()
626 GLsizei numInstances) in _mesa_validate_DrawTransformFeedback() argument
651 if (numInstances <= 0) { in _mesa_validate_DrawTransformFeedback()
[all …]
Dapi_validate.h88 GLsizei numInstances);
/external/mesa3d/src/mesa/vbo/
Dvbo_exec_array.c584 GLsizei count, GLuint numInstances, GLuint baseInstance) in vbo_draw_arrays() argument
597 prim[0].num_instances = numInstances; in vbo_draw_arrays()
688 GLsizei numInstances) in vbo_exec_DrawArraysInstanced() argument
694 _mesa_lookup_enum_by_nr(mode), start, count, numInstances); in vbo_exec_DrawArraysInstanced()
696 if (!_mesa_validate_DrawArraysInstanced(ctx, mode, start, count, numInstances)) in vbo_exec_DrawArraysInstanced()
702 vbo_draw_arrays(ctx, mode, start, count, numInstances, 0); in vbo_exec_DrawArraysInstanced()
714 GLsizei numInstances, GLuint baseInstance) in vbo_exec_DrawArraysInstancedBaseInstance() argument
721 numInstances, baseInstance); in vbo_exec_DrawArraysInstancedBaseInstance()
724 numInstances)) in vbo_exec_DrawArraysInstancedBaseInstance()
730 vbo_draw_arrays(ctx, mode, first, count, numInstances, baseInstance); in vbo_exec_DrawArraysInstancedBaseInstance()
[all …]
/external/deqp/modules/gles31/functional/
Des31fUniformBlockTests.cpp62 …t char* name, const char* description, const VarType& type, deUint32 layoutFlags, int numInstances) in BlockBasicTypeCase() argument
69 if (numInstances > 0) in BlockBasicTypeCase()
71 block.setArraySize(numInstances); in BlockBasicTypeCase()
77 …ontext& context, const char* name, const VarType& type, deUint32 layoutFlags, int numInstances = 0) in createBlockBasicTypeCases() argument
79 …ext, (string(name) + "_vertex").c_str(), "", type, layoutFlags|DECLARE_VERTEX, numInstances)); in createBlockBasicTypeCases()
80 …, (string(name) + "_fragment").c_str(), "", type, layoutFlags|DECLARE_FRAGMENT, numInstances)); in createBlockBasicTypeCases()
83 …ng(name) + "_both").c_str(), "", type, layoutFlags|DECLARE_VERTEX|DECLARE_FRAGMENT, numInstances)); in createBlockBasicTypeCases()
89 …char* name, const char* description, deUint32 layoutFlags, BufferMode bufferMode, int numInstances) in Block2LevelStructArrayCase() argument
92 , m_numInstances (numInstances) in Block2LevelStructArrayCase()
Des31fSSBOLayoutTests.cpp126 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock() local
129 if (numInstances > 0) in generateBlock()
130 block.setArraySize(numInstances); in generateBlock()
132 if (numInstances > 0 || rnd.getBool()) in generateBlock()
166 for (int instanceNdx = 0; instanceNdx < (numInstances ? numInstances : 1); instanceNdx++) in generateBlock()
311 …t char* name, const char* description, const VarType& type, deUint32 layoutFlags, int numInstances) in BlockBasicTypeCase() argument
318 if (numInstances > 0) in BlockBasicTypeCase()
320 block.setArraySize(numInstances); in BlockBasicTypeCase()
354 …char* name, const char* description, deUint32 layoutFlags, BufferMode bufferMode, int numInstances) in BlockSingleStructCase() argument
357 , m_numInstances (numInstances) in BlockSingleStructCase()
[all …]
Des31fOpaqueTypeIndexingTests.cpp660 …void getShaderSpec (ShaderSpec* spec, int numInstances, int numReads, const int* readIndic…
713 void BlockArrayIndexingCase::getShaderSpec (ShaderSpec* spec, int numInstances, int numReads, const… in getShaderSpec() argument
734 "} " << instanceName << "[" << numInstances << "];\n"; in getShaderSpec()
775 const int numInstances = m_numInstances; in iterate() local
778 vector<deUint32> inValues (numInstances); in iterate()
784 readIndices[readNdx] = rnd.getInt(0, numInstances-1); in iterate()
786 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in iterate()
789 getShaderSpec(&shaderSpec, numInstances, numReads, &readIndices[0]); in iterate()
795 const BufferVector buffers (renderCtx, numInstances); in iterate()
809 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in iterate()
Des31fProgramInterfaceDefinitionUtil.cpp850 int numInstances = 1; in getNumShaderBlocks() local
853 numInstances *= shader->getDefaultBlock().interfaceBlocks[ndx].dimensions[dimensionNdx]; in getNumShaderBlocks()
855 retVal += numInstances; in getNumShaderBlocks()
914 int numInstances = 1; in accumulateShader() local
917 numInstances *= shader->getDefaultBlock().interfaceBlocks[ndx].dimensions[dimensionNdx]; in accumulateShader()
920 …retVal += numInstances * accumulateComplexType(shader->getDefaultBlock().interfaceBlocks[ndx].vari… in accumulateShader()
1058 int numInstances = 1; in getMaxBufferBinding() local
1061 numInstances *= shader->getDefaultBlock().interfaceBlocks[ndx].dimensions[dimensionNdx]; in getMaxBufferBinding()
1063 maxBinding = de::max(maxBinding, binding + numInstances - 1); in getMaxBufferBinding()
1154 …const int numInstances = getNumTypeInstances(shader->getDefaultBlock().variables[ndx].varType, pre… in getUniformMaxBinding() local
[all …]
Des31fTessellationGeometryInteractionTests.cpp2111 std::string getGeometryShaderSource (int numPrimitives, int numInstances, int tessLevel);
2604 std::string GridRenderCase::getGeometryShaderSource (int numPrimitives, int numInstances, int tessL… in getGeometryShaderSource() argument
2610 "layout(triangles, invocations=" << numInstances << ") in;\n" in getGeometryShaderSource()
2646 … << tessLevel << " * " << numPrimitives << ", 2 * " << tessLevel << " * " << numInstances << ");\n" in getGeometryShaderSource()
2679 DE_ASSERT(m_numLayers == numInstances * 2); in getGeometryShaderSource()
2725 …" ivec2 srcSliceNdx = ivec2(gridPosition.x, gridPosition.y * " << (numInstances*2) << " + inputTri… in getGeometryShaderSource()
2726 …* srcSliceNdx.y) % ivec2(" << tessLevel << ", " << tessLevel << " * " << (numInstances*2) << ");\n" in getGeometryShaderSource()
2731 …" outputSliceArea.y = float(dstSliceNdx.y) / float(" << (tessLevel * numInstances * 2) << ") * 2.0… in getGeometryShaderSource()
2733 …" outputSliceArea.w = float(dstSliceNdx.y+1) / float(" << (tessLevel * numInstances * 2) << ") * 2… in getGeometryShaderSource()
2741 " float sliceHeight = (aabb.w - aabb.y) / float(2 * " << numInstances << ");\n" in getGeometryShaderSource()
Des31fSSBOLayoutCase.cpp707 int numInstances = block.isArray() ? block.getArraySize() : 1; in computeReferenceLayout() local
710 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in computeReferenceLayout()
1179 const int numInstances = isArray ? block.getArraySize() : 1; in generateCompareSrc() local
1183 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in generateCompareSrc()
1262 const int numInstances = isArray ? block.getArraySize() : 1; in generateWriteSrc() local
1266 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in generateWriteSrc()
1609 const int numInstances = isArray ? block.getArraySize() : 1; in copyNonWrittenData() local
1613 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in copyNonWrittenData()
1861 const int numInstances = isArray ? block.getArraySize() : 1; in computeBufferSizes() local
1863 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in computeBufferSizes()
[all …]
Des31fGeometryShaderTests.cpp4297 …ase (Context& context, const char* name, const char* description, int numInstances, int numInvocat…
4310 …ase (Context& context, const char* name, const char* description, int numInstances, int numInvocat… in DrawInstancedGeometryInstancedCase() argument
4312 , m_numInstances (numInstances) in DrawInstancedGeometryInstancedCase()
/external/deqp/modules/gles3/functional/
Des3fUniformBlockTests.cpp60 …t char* name, const char* description, const VarType& type, deUint32 layoutFlags, int numInstances) in BlockBasicTypeCase() argument
67 if (numInstances > 0) in BlockBasicTypeCase()
69 block.setArraySize(numInstances); in BlockBasicTypeCase()
75 …ontext& context, const char* name, const VarType& type, deUint32 layoutFlags, int numInstances = 0) in createBlockBasicTypeCases() argument
77 …ext, (string(name) + "_vertex").c_str(), "", type, layoutFlags|DECLARE_VERTEX, numInstances)); in createBlockBasicTypeCases()
78 …, (string(name) + "_fragment").c_str(), "", type, layoutFlags|DECLARE_FRAGMENT, numInstances)); in createBlockBasicTypeCases()
81 …g(name) + "_both").c_str(), "", type, layoutFlags|DECLARE_VERTEX|DECLARE_FRAGMENT, numInstances)); in createBlockBasicTypeCases()
87 …char* name, const char* description, deUint32 layoutFlags, BufferMode bufferMode, int numInstances) in BlockSingleStructCase() argument
90 , m_numInstances (numInstances) in BlockSingleStructCase()
120 …char* name, const char* description, deUint32 layoutFlags, BufferMode bufferMode, int numInstances) in BlockSingleStructArrayCase() argument
[all …]
Des3fInstancedRenderingTests.cpp107 …DrawFunction function, InstancingType instancingType, glu::DataType rgbAttrType, int numInstances);
142 … DrawFunction function, InstancingType instancingType, glu::DataType rgbAttrType, int numInstances) in InstancedRenderingCase() argument
147 , m_numInstances (numInstances) in InstancedRenderingCase()
/external/deqp/modules/glshared/
DglsRandomUniformBlockCase.cpp88 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock() local
91 if (numInstances > 0) in generateBlock()
92 block.setArraySize(numInstances); in generateBlock()
94 if (numInstances > 0 || rnd.getBool()) in generateBlock()
DglsUniformBlockCase.cpp600 int numInstances = block.isArray() ? block.getArraySize() : 1; in computeStd140Layout() local
603 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in computeStd140Layout()
1066 int numInstances = isArray ? block.getArraySize() : 1; in generateCompareSrc() local
1071 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in generateCompareSrc()
1738 int numInstances = isArray ? block.getArraySize() : 1; in compareTypes() local
1740 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in compareTypes()
/external/deqp/modules/gles31/stress/
Des31sTessellationGeometryInteractionTests.cpp85 std::string getGeometryShaderSource (int numPrimitives, int numInstances);
488 std::string GridRenderCase::getGeometryShaderSource (int numPrimitives, int numInstances) in getGeometryShaderSource() argument
494 "layout(triangles, invocations=" << numInstances << ") in;\n" in getGeometryShaderSource()
526 " float sliceHeight = (aabb.w - aabb.y) / float(2 * " << numInstances << ");\n" in getGeometryShaderSource()
/external/deqp/framework/referencerenderer/
DrrRenderer.hpp137 void drawInstanced (const DrawCommand& command, int numInstances) const;
DrrRenderer.cpp1509 bool isValidCommand (const DrawCommand& command, int numInstances) in isValidCommand() argument
1512 if (numInstances < 1) in isValidCommand()
1731 void Renderer::drawInstanced (const DrawCommand& command, int numInstances) const in drawInstanced()
1735 const bool validCommand = isValidCommand(command, numInstances); in drawInstanced()
1745 if (command.primitives.getNumElements() == 0 || numInstances == 0) in drawInstanced()
1756 for (int instanceID = 0; instanceID < numInstances; ++instanceID) in drawInstanced()