/third_party/vk-gl-cts/modules/gles2/performance/ |
H A D | es2pDrawCallBatchingTests.cpp | 77 int triangleCount; member 176 for (int triangleNdx = 0; triangleNdx < m_spec.triangleCount; triangleNdx++) in createIndexData() 188 for (int triangleNdx = 0; triangleNdx < m_spec.triangleCount; triangleNdx++) in createIndexData() 274 data.reserve(4 * 3 * m_spec.triangleCount * m_spec.drawCallCount); in createAttributeDatas() 276 for (int i = 0; i < m_spec.triangleCount * m_spec.drawCallCount; i++) in createAttributeDatas() 278 int sign = (m_spec.triangleCount % 2 == 1 || i % 2 == 0 ? 1 : -1); in createAttributeDatas() 298 data.reserve(4 * 3 * m_spec.triangleCount * m_spec.drawCallCount); in createAttributeDatas() 300 for (int i = 0; i < 4 * 3 * m_spec.triangleCount * m_spec.drawCallCount; i++) in createAttributeDatas() 314 data.reserve(4 * 3 * m_spec.triangleCount * m_spec.drawCallCount); in createAttributeDatas() 316 for (int i = 0; i < m_spec.triangleCount * m_spe in createAttributeDatas() 1046 int triangleCount = triangleCounts[triangleCountNdx]; init() local [all...] |
H A D | es2pRedundantStateChangeTests.cpp | 51 RedundantStateChangeCase (Context& context, int drawCallCount, int triangleCount, bool drawArrays, bool useIndexBuffer, const char* name, const char* description); 60 RedundantStateChangeCase::RedundantStateChangeCase (Context& context, int drawCallCount, int triangleCount, bool drawArrays, bool useIndexBuffer, const char* name, const char* description) in RedundantStateChangeCase() argument 64 DRAWTYPE_INDEXED_USER_PTR), drawCallCount, triangleCount) in RedundantStateChangeCase() 108 RedundantStateChangeCase_ ## NAME (Context& context, int drawCallCount, int triangleCount, const char* name, const char* description)\ 109 : RedundantStateChangeCase(context, drawCallCount, triangleCount, (DRAWARRAYS), (INDEXBUFFER), name, description)\
|
H A D | es2pStateChangeTests.cpp | 51 StateChangeCase (Context& context, int drawCallCount, int triangleCount, bool drawArrays, bool useIndexBuffer, const char* name, const char* description); 61 StateChangeCase::StateChangeCase (Context& context, int drawCallCount, int triangleCount, bool drawArrays, bool useIndexBuffer, const char* name, const char* description) in StateChangeCase() argument 65 DRAWTYPE_INDEXED_USER_PTR), drawCallCount, triangleCount) in StateChangeCase() 117 StateChangeCase_ ## NAME (Context& context, int drawCallCount, int triangleCount, const char* name, const char* description)\ 118 : StateChangeCase(context, drawCallCount, triangleCount, (DRAWARRAYS), (INDEXBUFFER), name, description)\
|
/third_party/skia/src/gpu/tessellate/ |
H A D | PathCurveTessellator.cpp | 172 int triangleCount = bufferSize / (sizeof(uint16_t) * 3); in WriteFixedIndexBufferBaseIndex() local 173 SkASSERT(triangleCount >= 1); in WriteFixedIndexBufferBaseIndex() 174 SkTArray<std::array<uint16_t, 3>> indexData(triangleCount); in WriteFixedIndexBufferBaseIndex() 185 int maxResolveLevel = SkPrevLog2(triangleCount + 1); in WriteFixedIndexBufferBaseIndex() 187 SkASSERT(NumCurveTrianglesAtResolveLevel(maxResolveLevel) == triangleCount); in WriteFixedIndexBufferBaseIndex() 206 SkASSERT(indexData.count() == triangleCount); in WriteFixedIndexBufferBaseIndex() 207 SkASSERT(nextIndex == baseIndex + triangleCount + 2); in WriteFixedIndexBufferBaseIndex()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | MultiDrawTest.cpp | 594 const GLint triangleCount = 4; in TEST_P() local 619 std::array<DrawArraysIndirectCommand, triangleCount> indirectData; in TEST_P() 621 for (auto i = 0; i < triangleCount; i++) in TEST_P() 645 reinterpret_cast<const void *>(static_cast<uintptr_t>(icSize * triangleCount)), 1, 0); in TEST_P() 650 glMultiDrawArraysIndirectEXT(GL_TRIANGLES, nullptr, triangleCount, 0); in TEST_P() 664 triangleCount - 2, 0); in TEST_P() 693 const GLint triangleCount = 4; in TEST_P() local 725 std::array<DrawElementsIndirectCommand, triangleCount> indirectData; in TEST_P() 727 for (auto i = 0; i < triangleCount; i++) in TEST_P() 751 reinterpret_cast<const void *>(static_cast<uintptr_t>(icSize * triangleCount)), in TEST_P() 801 const GLint triangleCount = 4; TEST_P() local [all...] |
/third_party/vk-gl-cts/modules/egl/ |
H A D | teglGLES2SharedRenderingPerfTests.cpp | 78 int triangleCount; member 178 data.reserve(config.triangleCount * 3 * 2); in createCoordData() 180 for (int triangleNdx = 0; triangleNdx < config.triangleCount; triangleNdx++) in createCoordData() 223 for (int triangleNdx = 0; triangleNdx < config.triangleCount; triangleNdx++) in createIndexData() 691 m_gl.drawElements(GL_TRIANGLES, m_config.triangleCount, GL_UNSIGNED_SHORT, 0); in render() 694 m_gl.drawElements(GL_TRIANGLES, m_config.triangleCount, GL_UNSIGNED_SHORT, &(m_indexData[0])); in render() 697 m_gl.drawArrays(GL_TRIANGLES, 0, m_config.triangleCount); in render() 988 log << TestLog::Message << "Total triangles rendered: : " << config.triangleCount * config.drawCallCount * config.frameCount * config.perThreadContextCount * config.threadCount << TestLog::EndMessage; in logTestConfig() 993 log << TestLog::Message << "Number of triangles rendered by each draw call: " << config.triangleCount << TestLog::EndMessage; in logTestConfig() 1097 basicConfig.triangleCount in init() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Device/ |
H A D | Renderer.cpp | 51 inline bool setBatchIndices(unsigned int batch[128][3], VkPrimitiveTopology topology, VkProvokingVertexModeEXT provokingVertexMode, T indices, unsigned int start, unsigned int triangleCount) in setBatchIndices() argument 61 for(unsigned int i = 0; i < triangleCount; i++) in setBatchIndices() 77 for(unsigned int i = 0; i < triangleCount; i++) in setBatchIndices() 90 for(unsigned int i = 0; i < triangleCount; i++) in setBatchIndices() 103 for(unsigned int i = 0; i < triangleCount; i++) in setBatchIndices() 116 for(unsigned int i = 0; i < triangleCount; i++) in setBatchIndices() 129 for(unsigned int i = 0; i < triangleCount; i++) in setBatchIndices() 609 unsigned int triangleCount, in processPrimitiveVertices() 620 if(!setBatchIndices(triangleIndicesOut, topology, provokingVertexMode, LinearIndex(), start, triangleCount)) in processPrimitiveVertices() 630 if(!setBatchIndices(triangleIndicesOut, topology, provokingVertexMode, static_cast<const uint16_t *>(primitiveIndices), start, triangleCount)) in processPrimitiveVertices() 604 processPrimitiveVertices( unsigned int triangleIndicesOut[MaxBatchSize + 1][3], const void *primitiveIndices, VkIndexType indexType, unsigned int start, unsigned int triangleCount, VkPrimitiveTopology topology, VkProvokingVertexModeEXT provokingVertexMode) processPrimitiveVertices() argument [all...] |
H A D | Renderer.hpp | 186 unsigned int triangleCount,
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
H A D | Renderer.cpp | 1118 void Renderer::processPrimitiveVertices(int unit, unsigned int start, unsigned int triangleCount, unsigned int loop, int thread) in processPrimitiveVertices() argument 1143 for(unsigned int i = 0; i < triangleCount; i++) in processPrimitiveVertices() 1157 for(unsigned int i = 0; i < triangleCount; i++) in processPrimitiveVertices() 1171 for(unsigned int i = 0; i < triangleCount; i++) in processPrimitiveVertices() 1185 for(unsigned int i = 0; i < triangleCount; i++) in processPrimitiveVertices() 1199 for(unsigned int i = 0; i < triangleCount; i++) in processPrimitiveVertices() 1213 for(unsigned int i = 0; i < triangleCount; i++) in processPrimitiveVertices() 1236 for(unsigned int i = 0; i < triangleCount; i++) in processPrimitiveVertices() 1259 for(unsigned int i = 0; i < triangleCount; i++) in processPrimitiveVertices() 1273 for(unsigned int i = 0; i < triangleCount; in processPrimitiveVertices() [all...] |
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsStateChangePerfTestCases.cpp | 104 void genIndices (vector<GLushort>& indices, int triangleCount) in genIndices() argument 106 indices.reserve(triangleCount*3); in genIndices() 108 for (int triangleNdx = 0; triangleNdx < triangleCount; triangleNdx++) in genIndices() 116 void genCoords (vector<GLfloat>& coords, int triangleCount) in genCoords() argument 118 coords.reserve(triangleCount * 3 * 2); in genCoords() 120 for (int triangleNdx = 0; triangleNdx < triangleCount; triangleNdx++) in genCoords() 211 StateChangePerformanceCase::StateChangePerformanceCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, DrawType drawType, int drawCallCount, int triangleCount) in StateChangePerformanceCase() argument 217 , m_triangleCount (triangleCount) in StateChangePerformanceCase()
|
H A D | glsTextureBufferCase.cpp | 578 int triangleCount, in renderGL() 630 gl.drawElements(GL_TRIANGLES, triangleCount * 3, GL_UNSIGNED_BYTE, DE_NULL); in renderGL() 634 gl.drawArrays(GL_TRIANGLES, 0, triangleCount * 3); in renderGL() 658 int triangleCount, in renderReference() 702 const rr::PrimitiveList primitives(rr::PRIMITIVETYPE_TRIANGLES, triangleCount * 3, rr::DrawIndices(texture.getRefBuffer().getPtr(), rr::INDEXTYPE_UINT8)); in renderReference() 709 const rr::PrimitiveList primitives(rr::PRIMITIVETYPE_TRIANGLES, triangleCount * 3, 0); in renderReference() 767 const int triangleCount = 8; in render() local 777 renderGL(renderContext, renderBits, coordSeed, triangleCount, program, texture); in render() 781 renderReference(renderBits, coordSeed, triangleCount, texture, maxTextureBufferSize, target, subpixelBits); in render() 575 renderGL(glu::RenderContext& renderContext, RenderBits renderBits, deUint32 coordSeed, int triangleCount, glu::ShaderProgram& program, glu::TextureBuffer& texture) renderGL() argument 656 renderReference(RenderBits renderBits, deUint32 coordSeed, int triangleCount, const glu::TextureBuffer& texture, int maxTextureBufferSize, const tcu::PixelBufferAccess& target, int subpixelBits) renderReference() argument
|
H A D | glsStateChangePerfTestCases.hpp | 55 StateChangePerformanceCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, DrawType drawType, int drawCallCount, int triangleCount);
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fPixelBufferObjectTests.cpp | 452 int triangleCount = m_random.getInt(minTriangleCount, maxTriangleCount); in iterate() local 454 for (int triangleNdx = 0; triangleNdx < triangleCount; triangleNdx++) in iterate()
|
/third_party/vk-gl-cts/modules/gles3/performance/ |
H A D | es3pRedundantStateChangeTests.cpp | 51 RedundantStateChangeCase (Context& context, int drawCallCount, int triangleCount, bool drawArrays, bool useIndexBuffer, const char* name, const char* description); 60 RedundantStateChangeCase::RedundantStateChangeCase (Context& context, int drawCallCount, int triangleCount, bool drawArrays, bool useIndexBuffer, const char* name, const char* description) in RedundantStateChangeCase() argument 64 DRAWTYPE_INDEXED_USER_PTR), drawCallCount, triangleCount) in RedundantStateChangeCase() 108 RedundantStateChangeCase_ ## NAME (Context& context, int drawCallCount, int triangleCount, const char* name, const char* description)\ 109 : RedundantStateChangeCase(context, drawCallCount, triangleCount, (DRAWARRAYS), (INDEXBUFFER), name, description)\
|
H A D | es3pStateChangeTests.cpp | 51 StateChangeCase (Context& context, int drawCallCount, int triangleCount, bool drawArrays, bool useIndexBuffer, const char* name, const char* description); 61 StateChangeCase::StateChangeCase (Context& context, int drawCallCount, int triangleCount, bool drawArrays, bool useIndexBuffer, const char* name, const char* description) in StateChangeCase() argument 65 DRAWTYPE_INDEXED_USER_PTR), drawCallCount, triangleCount) in StateChangeCase() 117 StateChangeCase_ ## NAME (Context& context, int drawCallCount, int triangleCount, const char* name, const char* description)\ 118 : StateChangeCase(context, drawCallCount, triangleCount, (DRAWARRAYS), (INDEXBUFFER), name, description)\
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawMultiExtTests.cpp | 808 const auto triangleCount = getTriangleCount(); in iterate() local 809 const auto imageDim = static_cast<deUint32>(deSqrt(static_cast<double>(triangleCount))); in iterate() 1239 : (isMosaic ? 1u : triangleCount)); in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/ |
H A D | vktDrawMultiExtTests.cpp | 806 const auto triangleCount = getTriangleCount(); in iterate() local 807 const auto imageDim = static_cast<deUint32>(deSqrt(static_cast<double>(triangleCount))); in iterate() 1237 : (isMosaic ? 1u : triangleCount)); in iterate()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fDrawTests.cpp | 1049 const int triangleCount = m_gridSize * m_gridSize * 2; in ComputeShaderGeneratedCase() local 1053 DE_ASSERT(triangleCount % m_numDrawCmds == 0); in ComputeShaderGeneratedCase() 1054 DE_UNREF(triangleCount); in ComputeShaderGeneratedCase() 1245 << " const uint triangleCount = gridSize * gridSize * 2u;\n" 1252 << " const uint numDrawCallTris = triangleCount / " << m_numDrawCmds << "u;\n" 1348 const int triangleCount = m_gridSize * m_gridSize * 2; 1349 const deUint32 numDrawCallTris = triangleCount / m_numDrawCmds;
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/ |
H A D | vktRayTracingPipelineFlagsTests.cpp | 156 const deUint32 triangleCount = (params.geomTypes == GeometryTypes::Triangle || params.geomTypes == GeometryTypes::TriangleAndBox) ? nameCount : 0u; in calcDefBoxRetGreenComp() local 157 return defTriRetGreenComp + std::max(triangleCount, 32u); in calcDefBoxRetGreenComp()
|
H A D | vktRayTracingAccelerationStructuresTests.cpp | 3405 const deUint32 triangleCount = ((1 + m_params->blasCount) * m_params->blasCount) / 2; variable 3406 const float angle = (4.0f * std::acos(0.0f)) / float(triangleCount);
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/ |
H A D | vktRayTracingPipelineFlagsTests.cpp | 155 const deUint32 triangleCount = (params.geomTypes == GeometryTypes::Triangle || params.geomTypes == GeometryTypes::TriangleAndBox) ? nameCount : 0u; in calcDefBoxRetGreenComp() local 156 return defTriRetGreenComp + std::max(triangleCount, 32u); in calcDefBoxRetGreenComp()
|
H A D | vktRayTracingAccelerationStructuresTests.cpp | 3172 const deUint32 triangleCount = ((1 + m_params->blasCount) * m_params->blasCount) / 2; variable 3173 const float angle = (4.0f * std::acos(0.0f)) / float(triangleCount);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/ |
H A D | vktRasterizationTests.cpp | 7028 const auto triangleCount = extent.width * extent.height * extent.depth; 7029 const auto vertexCount = triangleCount * 3u;
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/rasterization/ |
H A D | vktRasterizationTests.cpp | 6776 const auto triangleCount = extent.width * extent.height * extent.depth; 6777 const auto vertexCount = triangleCount * 3u;
|