/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
D | vktTessellationShaderInputOutputTests.cpp | 67 const int numPrimitives, in runTest() argument 166 vk.cmdDraw(*cmdBuffer, numPrimitives * inPatchSize, 1u, 0u, 0u); in runTest() 313 const int numPrimitives = 1; in test() local 315 return runTest(context, numPrimitives, caseDef.inPatchSize, caseDef.outPatchSize, in test() 467 const int numPrimitives = getNumPrimitives(caseDef.caseType); in test() local 468 std::vector<float> vertexData (INPUT_PATCH_SIZE * numPrimitives, 0.0f); in test() 471 for (int i = 0; i < numPrimitives; ++i) in test() 472 vertexData[INPUT_PATCH_SIZE * i] = static_cast<float>(i) / static_cast<float>(numPrimitives); in test() 480 return runTest(context, numPrimitives, INPUT_PATCH_SIZE, OUTPUT_PATCH_SIZE, in test() 607 const int numPrimitives = 1; in test() local [all …]
|
D | vktTessellationGeometryGridRenderTests.cpp | 285 const int numPrimitives = m_numGeometryPrimitivesPerInvocation; in initPrograms() local 292 …= " << ((m_flags & FLAG_GEOMETRY_SEPARATE_PRIMITIVES) ? (4 * numPrimitives) : (numPrimitives + 2))… in initPrograms() 325 << " for (int ndx = 0; ndx < " << numPrimitives << "; ++ndx)\n" in initPrograms() 327 …<< " ivec2 dstGridSize = ivec2(" << m_tessGenLevel << " * " << numPrimitives << ", 2 * " <<… in initPrograms() 364 << " for (int ndx = 0; ndx < " << numPrimitives << "; ++ndx)\n" in initPrograms() 366 …<< " ivec2 dstGridSize = ivec2(" << m_tessGenLevel << " * " << numPrimitives << ", " << m_t… in initPrograms() 367 …<< " ivec2 dstGridNdx = ivec2((gridPosition.x * " << numPrimitives << " * 7 + ndx)*13, (gri… in initPrograms() 434 << " for (int ndx = 0; ndx < " << ((numPrimitives+2)/2) << "; ++ndx)\n" in initPrograms() 439 …os = mix(outputSliceArea.x, outputSliceArea.z, float(ndx) / float(" << (numPrimitives/2) << "));\n" in initPrograms()
|
D | vktTessellationPrimitiveDiscardTests.cpp | 153 const int numPrimitives, in verifyResultImage() argument 166 for (int patchNdx = 0; patchNdx < numPrimitives; ++patchNdx) in verifyResultImage() 245 int expectedVertexCount (const int numPrimitives, in expectedVertexCount() argument 252 for (int patchNdx = 0; patchNdx < numPrimitives; ++patchNdx) in expectedVertexCount() 390 const int numPrimitives = static_cast<int>(attributes.size() / numAttribsPerPrimitive); in test() local 391 …const int numExpectedVertices = expectedVertexCount(numPrimitives, numAttribsPerPrimitive, ca… in test() 396 for (int patchNdx = 0; patchNdx < numPrimitives; ++patchNdx) in test() 412 DE_ASSERT(static_cast<int>(attributes.size()) == numPrimitives * numAttribsPerPrimitive); in test() 487 …<< "Note: rendering " << numPrimitives << " patches; first patches have valid relevant outer level… in test() 583 …return (verifyResultImage(log, numPrimitives, numAttribsPerPrimitive, caseDef.primitiveType, attri… in test()
|
D | vktTessellationInvarianceTests.cpp | 527 void logPrimitiveCountError (tcu::TestLog& log, const int numPatchesToDraw, int numPrimitives, cons… in logPrimitiveCountError() argument 530 …<< "Failure: the number of generated primitives is " << numPrimitives << ", expected at least " <<… in logPrimitiveCountError() 554 deInt32 numPrimitives; member 681 result.numPrimitives = *static_cast<deInt32*>(resultAlloc.getHostPtr()); in draw() 682 …result.primitives = sorted(readInterleavedData<PerPrimitive>(result.numPrimitives, resul… in draw() 686 DE_ASSERT(result.numPrimitives <= m_maxNumPrimitivesInDrawCall); in draw() 689 if (result.numPrimitives < result.refNumPrimitives) in draw() 691 …logPrimitiveCountError(log, m_numPatchesToDraw, result.numPrimitives, result.refNumPrimitives, pat… in draw() 763 …for (; primitiveNdx < result.numPrimitives && result.primitives[primitiveNdx].patchPrimitiveID == … in iterate() 796 DE_ASSERT(primitiveNdx == result.numPrimitives); in iterate() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fRasterizerDiscardTests.cpp | 80 …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 …]
|
D | es3fSyncTests.cpp | 66 …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()
|
D | es3fTransformFeedbackTests.cpp | 1253 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/ |
D | es31sTessellationGeometryInteractionTests.cpp | 85 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/ |
D | es3sSyncTests.cpp | 60 …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/ |
D | es31fShaderHelperInvocationTests.cpp | 101 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()
|
D | es31fTessellationGeometryInteractionTests.cpp | 2135 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()
|
D | es31fTessellationTests.cpp | 302 int numPrimitives; member 305 Result (void) : numPrimitives(-1) {} in Result() 306 Result (int n, const vector<VaryingT>& v) : numPrimitives(n), varying(v) {} in Result() 2084 if (tfResult.numPrimitives != (int)tessCoordsRef.size()) in iterate() 2087 << tfResult.numPrimitives << ", reference value is " << tessCoordsRef.size() in iterate() 2092 …reported GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN to be " << tfResult.numPrimitives << TestLog::En… in iterate() 3273 …const int numPrimitives = m_caseType == CASETYPE_PRIMITIVE_ID_TCS || m_caseType == CASETYPE_PRIMIT… in iterate() local 3276 attributeData.reserve(numPrimitives*INPUT_PATCH_SIZE); in iterate() 3278 for (int i = 0; i < numPrimitives; i++) in iterate() 3280 attributeData.push_back((float)i / (float)numPrimitives); in iterate() [all …]
|