Home
last modified time | relevance | path

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

123

/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/transform_feedback/
DvktTransformFeedbackFuzzLayoutTests.cpp49 int numInstances, in BlockBasicTypeCase() argument
65 if (numInstances > 0) in BlockBasicTypeCase()
67 block.setArraySize(numInstances); in BlockBasicTypeCase()
73 … testCtx, const std::string& name, const VarType& type, deUint32 layoutFlags, int numInstances = 0) in createBlockBasicTypeCases() argument
77 …typeGroup->addChild(new BlockBasicTypeCase(testCtx, "vertex", "", type, layoutFlags, numInstances,… in createBlockBasicTypeCases()
78 …ld(new BlockBasicTypeCase(testCtx, "geometry", "", type, layoutFlags, numInstances, LOAD_FULL_MATR… in createBlockBasicTypeCases()
90 int numInstances, in BlockSingleStructCase() argument
104 if (numInstances > 0) in BlockSingleStructCase()
107 block.setArraySize(numInstances); in BlockSingleStructCase()
119 int numInstances, in BlockSingleStructArrayCase() argument
[all …]
DvktTransformFeedbackRandomLayoutCase.cpp157 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(… in generateBlock() local
161 if (numInstances > 0) in generateBlock()
162 block.setArraySize(numInstances); in generateBlock()
164 if (numInstances > 0 || rnd.getBool()) in generateBlock()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackFuzzLayoutTests.cpp49 int numInstances, in BlockBasicTypeCase() argument
65 if (numInstances > 0) in BlockBasicTypeCase()
67 block.setArraySize(numInstances); in BlockBasicTypeCase()
73 … testCtx, const std::string& name, const VarType& type, deUint32 layoutFlags, int numInstances = 0) in createBlockBasicTypeCases() argument
77 …typeGroup->addChild(new BlockBasicTypeCase(testCtx, "vertex", "", type, layoutFlags, numInstances,… in createBlockBasicTypeCases()
78 …ld(new BlockBasicTypeCase(testCtx, "geometry", "", type, layoutFlags, numInstances, LOAD_FULL_MATR… in createBlockBasicTypeCases()
90 int numInstances, in BlockSingleStructCase() argument
104 if (numInstances > 0) in BlockSingleStructCase()
107 block.setArraySize(numInstances); in BlockSingleStructCase()
119 int numInstances, in BlockSingleStructArrayCase() argument
[all …]
DvktTransformFeedbackRandomLayoutCase.cpp157 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(… in generateBlock() local
161 if (numInstances > 0) in generateBlock()
162 block.setArraySize(numInstances); in generateBlock()
164 if (numInstances > 0 || rnd.getBool()) in generateBlock()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/
DvktUniformBlockTests.cpp45 …::string& description, const VarType& type, deUint32 layoutFlags, int numInstances, MatrixLoadFlag… in BlockBasicTypeCase() argument
75 if (numInstances > 0) in BlockBasicTypeCase()
77 block.setArraySize(numInstances); in BlockBasicTypeCase()
83 … testCtx, const std::string& name, const VarType& type, deUint32 layoutFlags, int numInstances = 0) in createBlockBasicTypeCases() argument
87 …eCase(testCtx, "vertex", "", type, layoutFlags|DECLARE_VERTEX, numInstances, LOAD_FULL_MATR… in createBlockBasicTypeCases()
88 …e(testCtx, "fragment", "", type, layoutFlags|DECLARE_FRAGMENT, numInstances, LOAD_FULL_MATR… in createBlockBasicTypeCases()
89 …x, "both", "", type, layoutFlags|DECLARE_VERTEX|DECLARE_FRAGMENT, numInstances, LOAD_FULL_MATR… in createBlockBasicTypeCases()
90 …tCtx, "vertex_comp_access", "", type, layoutFlags|DECLARE_VERTEX, numInstances, LOAD_MATRIX_CO… in createBlockBasicTypeCases()
91 …, "fragment_comp_access", "", type, layoutFlags|DECLARE_FRAGMENT, numInstances, LOAD_MATRIX_CO… in createBlockBasicTypeCases()
92 …comp_access", "", type, layoutFlags|DECLARE_VERTEX|DECLARE_FRAGMENT, numInstances, LOAD_MATRIX_CO… in createBlockBasicTypeCases()
[all …]
DvktRandomUniformBlockCase.cpp107 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock() local
114 numInstances = rnd.getInt(2, 4); in generateBlock()
116 numInstances = m_availableDescriptorUniformBuffers; in generateBlock()
118 numInstances = 0; in generateBlock()
119 m_availableDescriptorUniformBuffers -= numInstances; in generateBlock()
122 if (numInstances > 0) in generateBlock()
123 block.setArraySize(numInstances); in generateBlock()
125 if (numInstances > 0 || rnd.getBool()) in generateBlock()
161 generateUniform(rnd, block, numInstances ? numInstances : 1); in generateBlock()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ubo/
DvktUniformBlockTests.cpp45 …::string& description, const VarType& type, deUint32 layoutFlags, int numInstances, MatrixLoadFlag… in BlockBasicTypeCase() argument
75 if (numInstances > 0) in BlockBasicTypeCase()
77 block.setArraySize(numInstances); in BlockBasicTypeCase()
83 … testCtx, const std::string& name, const VarType& type, deUint32 layoutFlags, int numInstances = 0) in createBlockBasicTypeCases() argument
87 …eCase(testCtx, "vertex", "", type, layoutFlags|DECLARE_VERTEX, numInstances, LOAD_FULL_MATR… in createBlockBasicTypeCases()
88 …e(testCtx, "fragment", "", type, layoutFlags|DECLARE_FRAGMENT, numInstances, LOAD_FULL_MATR… in createBlockBasicTypeCases()
89 …x, "both", "", type, layoutFlags|DECLARE_VERTEX|DECLARE_FRAGMENT, numInstances, LOAD_FULL_MATR… in createBlockBasicTypeCases()
90 …tCtx, "vertex_comp_access", "", type, layoutFlags|DECLARE_VERTEX, numInstances, LOAD_MATRIX_CO… in createBlockBasicTypeCases()
91 …, "fragment_comp_access", "", type, layoutFlags|DECLARE_FRAGMENT, numInstances, LOAD_MATRIX_CO… in createBlockBasicTypeCases()
92 …comp_access", "", type, layoutFlags|DECLARE_VERTEX|DECLARE_FRAGMENT, numInstances, LOAD_MATRIX_CO… in createBlockBasicTypeCases()
[all …]
DvktRandomUniformBlockCase.cpp107 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock() local
114 numInstances = rnd.getInt(2, 4); in generateBlock()
116 numInstances = m_availableDescriptorUniformBuffers; in generateBlock()
118 numInstances = 0; in generateBlock()
119 m_availableDescriptorUniformBuffers -= numInstances; in generateBlock()
122 if (numInstances > 0) in generateBlock()
123 block.setArraySize(numInstances); in generateBlock()
125 if (numInstances > 0 || rnd.getBool()) in generateBlock()
161 generateUniform(rnd, block, numInstances ? numInstances : 1); in generateBlock()
/third_party/vk-gl-cts/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 …]
/third_party/gptfdisk/
Dparttypes.cc21 int PartType::numInstances = 0; member in PartType
40 numInstances++; in PartType()
41 if (numInstances == 1) { in PartType()
47 numInstances++; in PartType()
48 if (numInstances == 1) { // should never happen; just being paranoid in PartType()
54 numInstances++; in PartType()
55 if (numInstances == 1) { in PartType()
63 numInstances--; in ~PartType()
64 if (numInstances == 0) { in ~PartType()
Dmbrpart.cc37 int MBRPart::numInstances = 0; member in MBRPart
53 if (numInstances == 0) { in MBRPart()
59 numInstances++; in MBRPart()
63 numInstances++; in MBRPart()
68 numInstances--; in ~MBRPart()
Dgptcurses.cc41 int GPTDataCurses::numInstances = 0; member in GPTDataCurses
44 if (numInstances > 0) { in GPTDataCurses()
54 numInstances++; in GPTDataCurses()
66 numInstances--; in ~GPTDataCurses()
67 if ((numInstances == 0) && !isendwin()) in ~GPTDataCurses()
/third_party/vk-gl-cts/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.cpp128 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock() local
131 if (numInstances > 0) in generateBlock()
132 block.setArraySize(numInstances); in generateBlock()
134 if (numInstances > 0 || rnd.getBool()) in generateBlock()
168 for (int instanceNdx = 0; instanceNdx < (numInstances ? numInstances : 1); instanceNdx++) in generateBlock()
315 …t char* name, const char* description, const VarType& type, deUint32 layoutFlags, int numInstances) in BlockBasicTypeCase() argument
322 if (numInstances > 0) in BlockBasicTypeCase()
324 block.setArraySize(numInstances); in BlockBasicTypeCase()
358 …char* name, const char* description, deUint32 layoutFlags, BufferMode bufferMode, int numInstances) in BlockSingleStructCase() argument
361 , m_numInstances (numInstances) in BlockSingleStructCase()
[all …]
Des31fOpaqueTypeIndexingTests.cpp719 …void getShaderSpec (ShaderSpec* spec, int numInstances, int numReads, const int* readIndic…
787 void BlockArrayIndexingCase::getShaderSpec (ShaderSpec* spec, int numInstances, int numReads, const… in getShaderSpec() argument
811 "} " << instanceName << "[" << numInstances << "];\n"; in getShaderSpec()
852 const int numInstances = m_numInstances; in iterate() local
855 vector<deUint32> inValues (numInstances); in iterate()
861 readIndices[readNdx] = rnd.getInt(0, numInstances-1); in iterate()
863 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in iterate()
866 getShaderSpec(&shaderSpec, numInstances, numReads, &readIndices[0], m_context.getRenderContext()); in iterate()
872 const BufferVector buffers (renderCtx, numInstances); in iterate()
886 for (int instanceNdx = 0; instanceNdx < numInstances; instanceNdx++) in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawShaderDrawParametersTests.cpp204 const int numInstances = isInstanced() ? MAX_INSTANCE_COUNT : 1; in drawReferenceImage() local
209 DE_ASSERT(DE_LENGTH_OF_ARRAY(perInstanceOffset) >= numInstances); in drawReferenceImage()
210 …DE_ASSERT(DE_LENGTH_OF_ARRAY(allColors) >= numInstances && DE_LENGTH_OF_ARRAY(allColors) >= numInd… in drawReferenceImage()
216 for (int instanceNdx = 0; instanceNdx < numInstances; ++instanceNdx) in drawReferenceImage()
354 const deUint32 numInstances = isInstanced() ? MAX_INSTANCE_COUNT : 1; in draw() local
363 …{ NUM_VERTICES, numInstances, NDX_FIRST_INDEX, OFFSET_FIRST_INDEX, (isFirstInstance() ? 2u : 0u) … in draw()
364 …{ NUM_VERTICES, numInstances, NDX_SECOND_INDEX, OFFSET_SECOND_INDEX, (isFirstInstance() ? 1u : 0u)… in draw()
365 …{ NUM_VERTICES, numInstances, NDX_FIRST_INDEX, OFFSET_FIRST_INDEX, (isFirstInstance() ? 3u : 0u) … in draw()
374 { NUM_VERTICES, numInstances, NDX_FIRST_VERTEX, (isFirstInstance() ? 2u : 0u) }, in draw()
375 { NUM_VERTICES, numInstances, NDX_SECOND_VERTEX, (isFirstInstance() ? 1u : 0u) }, in draw()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
DvktDrawShaderDrawParametersTests.cpp204 const int numInstances = isInstanced() ? MAX_INSTANCE_COUNT : 1; in drawReferenceImage() local
209 DE_ASSERT(DE_LENGTH_OF_ARRAY(perInstanceOffset) >= numInstances); in drawReferenceImage()
210 …DE_ASSERT(DE_LENGTH_OF_ARRAY(allColors) >= numInstances && DE_LENGTH_OF_ARRAY(allColors) >= numInd… in drawReferenceImage()
216 for (int instanceNdx = 0; instanceNdx < numInstances; ++instanceNdx) in drawReferenceImage()
354 const deUint32 numInstances = isInstanced() ? MAX_INSTANCE_COUNT : 1; in draw() local
363 …{ NUM_VERTICES, numInstances, NDX_FIRST_INDEX, OFFSET_FIRST_INDEX, (isFirstInstance() ? 2u : 0u) … in draw()
364 …{ NUM_VERTICES, numInstances, NDX_SECOND_INDEX, OFFSET_SECOND_INDEX, (isFirstInstance() ? 1u : 0u)… in draw()
365 …{ NUM_VERTICES, numInstances, NDX_FIRST_INDEX, OFFSET_FIRST_INDEX, (isFirstInstance() ? 3u : 0u) … in draw()
374 { NUM_VERTICES, numInstances, NDX_FIRST_VERTEX, (isFirstInstance() ? 2u : 0u) }, in draw()
375 { NUM_VERTICES, numInstances, NDX_SECOND_VERTEX, (isFirstInstance() ? 1u : 0u) }, in draw()
[all …]
/third_party/mesa3d/src/mesa/main/
Ddraw.c232 GLsizei count, GLsizei numInstances, GLenum type) in validate_DrawElements_common() argument
234 if (count < 0 || numInstances < 0) in validate_DrawElements_common()
449 GLenum mode, GLsizei count, GLsizei numInstances) in validate_draw_arrays() argument
451 if (count < 0 || numInstances < 0) in validate_draw_arrays()
461 size_t prim_count = count_tessellated_primitives(mode, count, numInstances); in validate_draw_arrays()
490 GLsizei count, GLsizei numInstances) in _mesa_validate_DrawArraysInstanced() argument
497 error = validate_draw_arrays(ctx, mode, count, numInstances); in _mesa_validate_DrawArraysInstanced()
563 GLsizei numInstances) in _mesa_validate_DrawElementsInstanced() argument
566 validate_DrawElements_common(ctx, mode, count, numInstances, type); in _mesa_validate_DrawElementsInstanced()
580 GLsizei numInstances) in _mesa_validate_DrawTransformFeedback() argument
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcUniformBlockTests.cpp135 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0, m_… in generateBlock() local
138 if (numInstances > 0) in generateBlock()
139 block.setArraySize(numInstances); in generateBlock()
141 if (numInstances > 0 || rnd.getBool()) in generateBlock()
299 const VarType& type, deUint32 layoutFlags, int numInstances) in BlockBasicTypeCase() argument
306 if (numInstances > 0) in BlockBasicTypeCase()
308 block.setArraySize(numInstances); in BlockBasicTypeCase()
333 deUint32 layoutFlags, BufferMode bufferMode, int numInstances) in BlockSingleStructCase() argument
336 , m_numInstances(numInstances) in BlockSingleStructCase()
368 int numInstances) in BlockSingleStructArrayCase() argument
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/robustness/
DvktRobustnessVertexAccessTests.cpp62 deUint32 numInstances);
89 deUint32 numInstances);
138 deUint32 numInstances,
217 deUint32 numInstances);
240 deUint32 numInstances,
261 deUint32 numInstances) in VertexAccessTest() argument
268 , m_numInstances (numInstances) in VertexAccessTest()
393 deUint32 numInstances) in DrawAccessTest() argument
395 …ext, name, description, inputFormat, numVertexValues, numInstanceValues, numVertices, numInstances) in DrawAccessTest()
491 deUint32 numInstances, in VertexAccessInstance() argument
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/robustness/
DvktRobustnessVertexAccessTests.cpp62 deUint32 numInstances);
89 deUint32 numInstances);
138 deUint32 numInstances,
217 deUint32 numInstances);
240 deUint32 numInstances,
261 deUint32 numInstances) in VertexAccessTest() argument
268 , m_numInstances (numInstances) in VertexAccessTest()
393 deUint32 numInstances) in DrawAccessTest() argument
395 …ext, name, description, inputFormat, numVertexValues, numInstanceValues, numVertices, numInstances) in DrawAccessTest()
491 deUint32 numInstances, in VertexAccessInstance() argument
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOLayoutTests.cpp144 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock() local
148 numInstances = rnd.getInt(2, 4); in generateBlock()
150 if (numInstances > 0) in generateBlock()
151 block.setArraySize(numInstances); in generateBlock()
153 if (m_usePhysStorageBuffer || numInstances > 0 || rnd.getBool()) in generateBlock()
203 for (int instanceNdx = 0; instanceNdx < (numInstances ? numInstances : 1); instanceNdx++) in generateBlock()
382 …nst char* description, const VarType& type, deUint32 layoutFlags, int numInstances, MatrixLoadFlag… in BlockBasicTypeCase() argument
412 if (m_usePhysStorageBuffer || numInstances > 0) in BlockBasicTypeCase()
414 block.setArraySize(numInstances); in BlockBasicTypeCase()
475 …t char* description, deUint32 layoutFlags, BufferMode bufferMode, int numInstances, MatrixLoadFlag… in BlockSingleStructCase() argument
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ssbo/
DvktSSBOLayoutTests.cpp144 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock() local
148 numInstances = rnd.getInt(2, 4); in generateBlock()
150 if (numInstances > 0) in generateBlock()
151 block.setArraySize(numInstances); in generateBlock()
153 if (m_usePhysStorageBuffer || numInstances > 0 || rnd.getBool()) in generateBlock()
203 for (int instanceNdx = 0; instanceNdx < (numInstances ? numInstances : 1); instanceNdx++) in generateBlock()
382 …nst char* description, const VarType& type, deUint32 layoutFlags, int numInstances, MatrixLoadFlag… in BlockBasicTypeCase() argument
412 if (m_usePhysStorageBuffer || numInstances > 0) in BlockBasicTypeCase()
414 block.setArraySize(numInstances); in BlockBasicTypeCase()
475 …t char* description, deUint32 layoutFlags, BufferMode bufferMode, int numInstances, MatrixLoadFlag… in BlockSingleStructCase() argument
[all …]
/third_party/vk-gl-cts/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()
/third_party/vk-gl-cts/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()

123