Home
last modified time | relevance | path

Searched refs:primitiveCount (Results 1 – 25 of 48) sorted by relevance

12

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineInputAssemblyTests.cpp73 int primitiveCount,
85 int primitiveCount,
109 int primitiveCount,
130 int primitiveCount,
137 void createListPrimitives (int primitiveCount,
227 int primitiveCount, in InputAssemblyTest() argument
233 , m_primitiveCount (primitiveCount) in InputAssemblyTest()
378 void PrimitiveTopologyTest::createBufferData (VkPrimitiveTopology topology, int primitiveCount, VkI… in createBufferData() argument
380 DE_ASSERT(primitiveCount > 0); in createBufferData()
399 primitiveSizeX = (2.0f - 2.0f * border) / float(primitiveCount / 2 + primitiveCount % 2 - 1); in createBufferData()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
DIndexDataManager.h30 TranslatedIndexData(unsigned int primitiveCount) : primitiveCount(primitiveCount) {} in TranslatedIndexData()
35 unsigned int primitiveCount; member
DIndexDataManager.cpp230 …enum mode, GLsizei count, const std::vector<GLsizei>& restartIndices, unsigned int* primitiveCount) in recomputePrimitiveCount() argument
233 *primitiveCount = 0; in recomputePrimitiveCount()
247 *primitiveCount += nbIndices / vertexPerPrimitive; in recomputePrimitiveCount()
261 *primitiveCount += (nbIndices >= vertexPerPrimitive) ? (nbIndices + countOffset) : 0; in recomputePrimitiveCount()
265 *primitiveCount = static_cast<unsigned int>(count - restartIndices.size()); in recomputePrimitiveCount()
301 …xPerPrimitive = recomputePrimitiveCount(mode, count, *restartIndices, &translated->primitiveCount); in prepareIndexData()
309 int convertCount = translated->primitiveCount * vertexPerPrimitive; in prepareIndexData()
DDevice.cpp252 …ice::drawIndexedPrimitive(sw::DrawType type, unsigned int indexOffset, unsigned int primitiveCount) in drawIndexedPrimitive() argument
254 if(!bindResources() || !primitiveCount) in drawIndexedPrimitive()
259 draw(type, indexOffset, primitiveCount); in drawIndexedPrimitive()
262 void Device::drawPrimitive(sw::DrawType type, unsigned int primitiveCount) in drawPrimitive() argument
264 if(!bindResources() || !primitiveCount) in drawPrimitive()
271 draw(type, 0, primitiveCount); in drawPrimitive()
Dutilities.cpp2248 …sizei elementCount, GLenum elementType, sw::DrawType &drawType, int &primitiveCount, int &vertices… in ConvertPrimitiveType() argument
2254 primitiveCount = elementCount; in ConvertPrimitiveType()
2259 primitiveCount = elementCount / 2; in ConvertPrimitiveType()
2264 primitiveCount = elementCount; in ConvertPrimitiveType()
2269 primitiveCount = elementCount - 1; in ConvertPrimitiveType()
2274 primitiveCount = elementCount / 3; in ConvertPrimitiveType()
2279 primitiveCount = elementCount - 2; in ConvertPrimitiveType()
2284 primitiveCount = elementCount - 2; in ConvertPrimitiveType()
DDevice.hpp61 …oid drawIndexedPrimitive(sw::DrawType type, unsigned int indexOffset, unsigned int primitiveCount);
Dutilities.h109 …ementCount, GLenum elementType, sw::DrawType &swPrimitiveType, int &primitiveCount, int &vertices…
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fDrawElementsBaseVertexTests.cpp64 static size_t getElementCount (gls::DrawTestSpec::Primitive primitive, size_t primitiveCount) in getElementCount() argument
68 case gls::DrawTestSpec::PRIMITIVE_POINTS: return primitiveCount; in getElementCount()
69 case gls::DrawTestSpec::PRIMITIVE_TRIANGLES: return primitiveCount * 3; in getElementCount()
70 case gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN: return primitiveCount + 2; in getElementCount()
71 case gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP: return primitiveCount + 2; in getElementCount()
72 case gls::DrawTestSpec::PRIMITIVE_LINES: return primitiveCount * 2; in getElementCount()
73 case gls::DrawTestSpec::PRIMITIVE_LINE_STRIP: return primitiveCount + 1; in getElementCount()
74 …se gls::DrawTestSpec::PRIMITIVE_LINE_LOOP: return (primitiveCount==1) ? (2) : (primitiveCount); in getElementCount()
75 case gls::DrawTestSpec::PRIMITIVE_LINES_ADJACENCY: return primitiveCount * 4; in getElementCount()
76 case gls::DrawTestSpec::PRIMITIVE_LINE_STRIP_ADJACENCY: return primitiveCount + 3; in getElementCount()
[all …]
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fDrawTests.cpp58 spec.primitiveCount = 1; in addTestIterations()
61 spec.primitiveCount = 5; in addTestIterations()
64 spec.primitiveCount = 25; in addTestIterations()
75 spec.primitiveCount = 5; in genBasicSpec()
148 spec.primitiveCount = 0; in init()
183 spec.primitiveCount = 0; in init()
229 spec.primitiveCount = 5; in init()
599 …spec.primitiveCount = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(primi… in init()
/third_party/skia/third_party/externals/swiftshader/src/Device/
DContext.cpp64 uint32_t primitiveCount = ComputePrimitiveCount(topology, vertexCount); in ProcessPrimitiveRestart() local
65 if(primitiveCount > 0) in ProcessPrimitiveRestart()
67 indexBuffers->push_back({ primitiveCount, indexBufferStart }); in ProcessPrimitiveRestart()
85 uint32_t primitiveCount = ComputePrimitiveCount(topology, vertexCount); in ProcessPrimitiveRestart() local
86 if(primitiveCount > 0) in ProcessPrimitiveRestart()
88 indexBuffers->push_back({ primitiveCount, indexBufferStart }); in ProcessPrimitiveRestart()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fDrawTests.cpp60 spec.primitiveCount = 1; in addTestIterations()
63 spec.primitiveCount = 5; in addTestIterations()
66 spec.primitiveCount = 25; in addTestIterations()
106 spec.primitiveCount = 5; in genBasicSpec()
184 spec.primitiveCount = 5; in init()
219 spec.primitiveCount = 5; in init()
265 spec.primitiveCount = 5; in init()
325 spec.primitiveCount = 5; in init()
1034 …spec.primitiveCount = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(primi… in init()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_draw.c1109 count = range->primitiveCount; in check_draw_params()
1112 count = range->primitiveCount * 2; in check_draw_params()
1115 count = range->primitiveCount + 1; in check_draw_params()
1118 count = range->primitiveCount * 3; in check_draw_params()
1121 count = range->primitiveCount + 2; in check_draw_params()
1124 count = range->primitiveCount + 2; in check_draw_params()
Dsvga_pipe_draw.c106 range.primitiveCount = 0; in retry_draw_auto()
155 range.primitiveCount = 0; /* specified in indirect buffer */ in retry_draw_indirect()
/third_party/vk-gl-cts/modules/glshared/
DglsScissorTests.hpp83 int primitiveCount);
DglsDrawTest.cpp235 static size_t getElementCount (DrawTestSpec::Primitive primitive, size_t primitiveCount) in getElementCount() argument
239 case DrawTestSpec::PRIMITIVE_POINTS: return primitiveCount; in getElementCount()
240 case DrawTestSpec::PRIMITIVE_TRIANGLES: return primitiveCount * 3; in getElementCount()
241 case DrawTestSpec::PRIMITIVE_TRIANGLE_FAN: return primitiveCount + 2; in getElementCount()
242 case DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP: return primitiveCount + 2; in getElementCount()
243 case DrawTestSpec::PRIMITIVE_LINES: return primitiveCount * 2; in getElementCount()
244 case DrawTestSpec::PRIMITIVE_LINE_STRIP: return primitiveCount + 1; in getElementCount()
245 case DrawTestSpec::PRIMITIVE_LINE_LOOP: return (primitiveCount==1) ? (2) : (primitiveCount); in getElementCount()
246 case DrawTestSpec::PRIMITIVE_LINES_ADJACENCY: return primitiveCount * 4; in getElementCount()
247 case DrawTestSpec::PRIMITIVE_LINE_STRIP_ADJACENCY: return primitiveCount + 3; in getElementCount()
[all …]
DglsScissorTests.cpp312 int primitiveCount);
332 int primitiveCount) in ScissorPrimitiveCase() argument
336 , m_primitiveCount (primitiveCount) in ScissorPrimitiveCase()
890 int primitiveCount) in createPrimitiveTest() argument
892 …cissorPrimitiveCase(testCtx, renderCtx, name, desc, scissorArea, renderArea, type, primitiveCount); in createPrimitiveTest()
DglsDrawTest.hpp225 int primitiveCount; //!< number of primitives to draw (per instance) member
/third_party/mesa3d/src/gallium/drivers/svga/include/
Dsvga3d_cmd.h727 uint32 primitiveCount; member
798 uint32 primitiveCount; // How many primitives to render member
824 uint32 primitiveCount; // How many primitives to render member
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DRenderer.hpp247 primitiveCount = 0; in init()
254 AtomicInt primitiveCount; member
/third_party/vk-gl-cts/framework/referencerenderer/
DrrPrimitiveAssembler.hpp472 const size_t primitiveCount = getPrimitiveCount(numVertices); in exec() local
479 for (i = 1; i + 1 < primitiveCount; ++i) in exec()
/third_party/flutter/skia/src/gpu/ops/
DGrDrawVerticesOp.cpp664 uint32_t primitiveCount = random->nextRangeU(1, 100); in GR_DRAW_OP_TEST_DEFINE() local
676 uint32_t vertexCount = seed_vertices(type) + (primitiveCount - 1) * primitive_vertices(type); in GR_DRAW_OP_TEST_DEFINE()
684 for (uint32_t i = 1; i < primitiveCount; i++) { in GR_DRAW_OP_TEST_DEFINE()
/third_party/skia/src/gpu/ops/
DDrawVerticesOp.cpp689 uint32_t primitiveCount = random->nextRangeU(1, 100); in GR_DRAW_OP_TEST_DEFINE() local
701 uint32_t vertexCount = seed_vertices(type) + (primitiveCount - 1) * primitive_vertices(type); in GR_DRAW_OP_TEST_DEFINE()
709 for (uint32_t i = 1; i < primitiveCount; i++) { in GR_DRAW_OP_TEST_DEFINE()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/geometry/
DvktGeometryBasicGeometryShaderTests.cpp165 const int primitiveCount,
174 const int primitiveCount, in GeometryOutputCountTestInstance() argument
177 , m_primitiveCount (primitiveCount) in GeometryOutputCountTestInstance()
/third_party/vk-gl-cts/modules/gles2/stress/
Des2sDrawTests.cpp48 spec.primitiveCount = 5; in genBasicSpec()
313 …spec.primitiveCount = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(primi… in init()
/third_party/mesa3d/src/amd/vulkan/
Dradv_acceleration_structure.c192 for (uint32_t p = 0; p < range->primitiveCount; ++p, ctx->curr_ptr += 64) { in build_triangles()
305 for (uint32_t p = 0; p < range->primitiveCount; ++p, ctx->curr_ptr += 128) { in build_instances()
369 for (uint32_t p = 0; p < range->primitiveCount; ++p, ctx->curr_ptr += 64) { in build_aabbs()
396 count += ranges[i].primitiveCount; in leaf_node_count()
570 instance_count += ranges[i].primitiveCount; in build_bvh()
1841 bvh_states[i].instance_count += ppBuildRangeInfos[i][j].primitiveCount; in radv_CmdBuildAccelerationStructuresKHR()
1851 radv_unaligned_dispatch(cmd_buffer, ppBuildRangeInfos[i][j].primitiveCount, 1, 1); in radv_CmdBuildAccelerationStructuresKHR()
1852 prim_consts.dst_offset += prim_size * ppBuildRangeInfos[i][j].primitiveCount; in radv_CmdBuildAccelerationStructuresKHR()
1853 prim_consts.dst_scratch_offset += 4 * ppBuildRangeInfos[i][j].primitiveCount; in radv_CmdBuildAccelerationStructuresKHR()

12