Home
last modified time | relevance | path

Searched refs:numPrimitives (Results 1 – 12 of 12) sorted by relevance

/external/deqp/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationShaderInputOutputTests.cpp64 const int numPrimitives, in runTest() argument
166 vk.cmdDraw(*cmdBuffer, numPrimitives * inPatchSize, 1u, 0u, 0u); in runTest()
317 const int numPrimitives = 1; in test() local
319 return runTest(context, numPrimitives, caseDef.inPatchSize, caseDef.outPatchSize, in test()
486 const int numPrimitives = getNumPrimitives(caseDef.caseType); in test() local
487 std::vector<float> vertexData (INPUT_PATCH_SIZE * numPrimitives, 0.0f); in test()
490 for (int i = 0; i < numPrimitives; ++i) in test()
491 vertexData[INPUT_PATCH_SIZE * i] = static_cast<float>(i) / static_cast<float>(numPrimitives); in test()
499 return runTest(context, numPrimitives, INPUT_PATCH_SIZE, OUTPUT_PATCH_SIZE, in test()
626 const int numPrimitives = 1; in test() local
[all …]
DvktTessellationGeometryGridRenderTests.cpp282 const int numPrimitives = m_numGeometryPrimitivesPerInvocation; in initPrograms() local
289 …= " << ((m_flags & FLAG_GEOMETRY_SEPARATE_PRIMITIVES) ? (4 * numPrimitives) : (numPrimitives + 2))… in initPrograms()
322 << " for (int ndx = 0; ndx < " << numPrimitives << "; ++ndx)\n" in initPrograms()
324 …<< " ivec2 dstGridSize = ivec2(" << m_tessGenLevel << " * " << numPrimitives << ", 2 * " <<… in initPrograms()
361 << " for (int ndx = 0; ndx < " << numPrimitives << "; ++ndx)\n" in initPrograms()
363 …<< " ivec2 dstGridSize = ivec2(" << m_tessGenLevel << " * " << numPrimitives << ", " << m_t… in initPrograms()
364 …<< " ivec2 dstGridNdx = ivec2((gridPosition.x * " << numPrimitives << " * 7 + ndx)*13, (gri… in initPrograms()
431 << " for (int ndx = 0; ndx < " << ((numPrimitives+2)/2) << "; ++ndx)\n" in initPrograms()
436 …os = mix(outputSliceArea.x, outputSliceArea.z, float(ndx) / float(" << (numPrimitives/2) << "));\n" in initPrograms()
DvktTessellationPrimitiveDiscardTests.cpp151 const int numPrimitives, in verifyResultImage() argument
164 for (int patchNdx = 0; patchNdx < numPrimitives; ++patchNdx) in verifyResultImage()
243 int expectedVertexCount (const int numPrimitives, in expectedVertexCount() argument
250 for (int patchNdx = 0; patchNdx < numPrimitives; ++patchNdx) in expectedVertexCount()
388 const int numPrimitives = static_cast<int>(attributes.size() / numAttribsPerPrimitive); in test() local
389 …const int numExpectedVertices = expectedVertexCount(numPrimitives, numAttribsPerPrimitive, ca… in test()
394 for (int patchNdx = 0; patchNdx < numPrimitives; ++patchNdx) in test()
410 DE_ASSERT(static_cast<int>(attributes.size()) == numPrimitives * numAttribsPerPrimitive); in test()
485 …<< "Note: rendering " << numPrimitives << " patches; first patches have valid relevant outer level… in test()
603 …return (verifyResultImage(log, numPrimitives, numAttribsPerPrimitive, caseDef.primitiveType, attri… in test()
DvktTessellationInvarianceTests.cpp523 void logPrimitiveCountError (tcu::TestLog& log, const int numPatchesToDraw, int numPrimitives, cons… in logPrimitiveCountError() argument
526 …<< "Failure: the number of generated primitives is " << numPrimitives << ", expected at least " <<… in logPrimitiveCountError()
550 deInt32 numPrimitives; member
677 result.numPrimitives = *static_cast<deInt32*>(resultAlloc.getHostPtr()); in draw()
678 …result.primitives = sorted(readInterleavedData<PerPrimitive>(result.numPrimitives, resul… in draw()
682 DE_ASSERT(result.numPrimitives <= m_maxNumPrimitivesInDrawCall); in draw()
685 if (result.numPrimitives != result.refNumPrimitives) in draw()
687 …logPrimitiveCountError(log, m_numPatchesToDraw, result.numPrimitives, result.refNumPrimitives, pat… in draw()
753 DE_ASSERT(primitiveNdx < result.numPrimitives); in iterate()
761 …for (; primitiveNdx < result.numPrimitives && result.primitives[primitiveNdx].patchPrimitiveID == … in iterate()
[all …]
/external/deqp/modules/gles3/functional/
Des3fRasterizerDiscardTests.cpp80 …ase (Context& context, const char* name, const char* description, int numPrimitives, CaseType case…
107 …ase (Context& context, const char* name, const char* description, int numPrimitives, CaseType case… in RasterizerDiscardCase() argument
109 , m_numPrimitives (numPrimitives) in RasterizerDiscardCase()
127 static void generateVertices (std::vector<float>& dst, int numPrimitives, de::Random& rnd, deUint32… in generateVertices() argument
133 case GL_POINTS: numVertices = numPrimitives; break; in generateVertices()
134 case GL_LINES: numVertices = 2*numPrimitives; break; in generateVertices()
135 case GL_LINE_STRIP: numVertices = numPrimitives+1; break; in generateVertices()
136 case GL_LINE_LOOP: numVertices = numPrimitives+2; break; in generateVertices()
137 case GL_TRIANGLES: numVertices = 3*numPrimitives; break; in generateVertices()
138 case GL_TRIANGLE_STRIP: numVertices = numPrimitives+2; break; in generateVertices()
[all …]
Des3fSyncTests.cpp66 …se (Context& context, const char* name, const char* description, int numPrimitives, deUint32 wait…
89 …ase (Context& context, const char* name, const char* description, int numPrimitives, deUint32 wait… in FenceSyncCase() argument
92 , m_numPrimitives (numPrimitives) in FenceSyncCase()
109 static void generateVertices (std::vector<float>& dst, int numPrimitives, de::Random& rnd) in generateVertices() argument
111 int numVertices = 3*numPrimitives; in generateVertices()
Des3fTransformFeedbackTests.cpp1253 deUint32 numPrimitives = 0; in runTest() local
1256 gl.getQueryObjectuiv(*primitiveQuery, GL_QUERY_RESULT, &numPrimitives); in runTest()
1265 …log << TestLog::Message << "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = " << numPrimitives << TestL… in runTest()
1267 if ((int)numPrimitives != expectedCount) in runTest()
/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
495 "layout(triangle_strip, max_vertices=" << (numPrimitives + 2) << ") out;\n" in getGeometryShaderSource()
535 " for (int ndx = 0; ndx < " << ((numPrimitives+2)/2) << "; ++ndx)\n" in getGeometryShaderSource()
540 …" float xpos = mix(outputSliceArea.x, outputSliceArea.z, float(ndx) / float(" << (numPrimitives/2… in getGeometryShaderSource()
/external/deqp/modules/gles3/stress/
Des3sSyncTests.cpp60 …se (Context& context, const char* name, const char* description, int numPrimitives, deUint32 wait…
97 static void generateVertices (std::vector<float>& dst, int numPrimitives, de::Random& rnd) in generateVertices() argument
99 int numVertices = 3*numPrimitives; in generateVertices()
/external/deqp/modules/gles31/functional/
Des31fShaderHelperInvocationTests.cpp101 static void genVertices (PrimitiveType primType, int numPrimitives, de::Random* rnd, vector<Vec2>* … in genVertices() argument
107 const int numVert = numVerticesPerPrimitive*numPrimitives; in genVertices()
121 for (int primitiveNdx = 0; primitiveNdx < numPrimitives; ++primitiveNdx) in genVertices()
162 …nderContext& renderCtx, deUint32 program, PrimitiveType primType, int numPrimitives, de::Random* r… in drawRandomPrimitives() argument
172 genVertices(primType, numPrimitives, rnd, &vertices); in drawRandomPrimitives()
Des31fTessellationGeometryInteractionTests.cpp2135 std::string getGeometryShaderSource (int numPrimitives, int numInstances, int tessLevel);
2632 std::string GridRenderCase::getGeometryShaderSource (int numPrimitives, int numInstances, int tessL… in getGeometryShaderSource() argument
2639 …s=" << ((m_flags & FLAG_GEOMETRY_SEPARATE_PRIMITIVES) ? (4 * numPrimitives) : (numPrimitives + 2))… in getGeometryShaderSource()
2672 " for (int ndx = 0; ndx < " << numPrimitives << "; ++ndx)\n" in getGeometryShaderSource()
2674 …" ivec2 dstGridSize = ivec2(" << tessLevel << " * " << numPrimitives << ", 2 * " << tessLevel << … in getGeometryShaderSource()
2711 " for (int ndx = 0; ndx < " << numPrimitives << "; ++ndx)\n" in getGeometryShaderSource()
2713 …" ivec2 dstGridSize = ivec2(" << tessLevel << " * " << numPrimitives << ", " << tessLevel << ");\… in getGeometryShaderSource()
2714 …" ivec2 dstGridNdx = ivec2((gridPosition.x * " << numPrimitives << " * 7 + ndx)*13, (gridPosition… in getGeometryShaderSource()
2781 " for (int ndx = 0; ndx < " << ((numPrimitives+2)/2) << "; ++ndx)\n" in getGeometryShaderSource()
2786 …os = mix(outputSliceArea.x, outputSliceArea.z, float(ndx) / float(" << (numPrimitives/2) << "));\n" in getGeometryShaderSource()
Des31fTessellationTests.cpp300 int numPrimitives; member
303 Result (void) : numPrimitives(-1) {} in Result()
304 Result (int n, const vector<VaryingT>& v) : numPrimitives(n), varying(v) {} in Result()
2057 if (tfResult.numPrimitives != (int)tessCoordsRef.size()) in iterate()
2060 << tfResult.numPrimitives << ", reference value is " << tessCoordsRef.size() in iterate()
2065 …reported GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN to be " << tfResult.numPrimitives << TestLog::En… in iterate()
3231 …const int numPrimitives = m_caseType == CASETYPE_PRIMITIVE_ID_TCS || m_caseType == CASETYPE_PRIMIT… in iterate() local
3234 attributeData.reserve(numPrimitives*INPUT_PATCH_SIZE); in iterate()
3236 for (int i = 0; i < numPrimitives; i++) in iterate()
3238 attributeData.push_back((float)i / (float)numPrimitives); in iterate()
[all …]