Commit 968d5572 authored by Eric Anholt's avatar Eric Anholt

gl-1.1: Add a new test for large vertex counts.

There's a limitation on VC4 where it can only handle 65536 verts at a
time in a glDrawArrays(), so the driver needs to split up the calls.
This tests that path for all the primitive types.

v2: handle error from glMapBuffer().
Reviewed-by: 's avatarIan Romanick <ian.d.romanick@intel.com>
parent dce99851
...@@ -712,6 +712,13 @@ with profile.test_list.group_manager( ...@@ -712,6 +712,13 @@ with profile.test_list.group_manager(
g(['getteximage-targets', '2D']) g(['getteximage-targets', '2D'])
g(['teximage-scale-bias']) g(['teximage-scale-bias'])
g(['tex-upside-down-miptree']) g(['tex-upside-down-miptree'])
for prim in ['GL_POINTS', 'GL_LINE_LOOP', 'GL_LINE_STRIP', 'GL_LINES',
'GL_TRIANGLES', 'GL_TRIANGLE_STRIP', 'GL_TRIANGLE_FAN',
'GL_QUADS', 'GL_QUAD_STRIP', 'GL_POLYGON']:
for mode in ['varray', 'vbo']:
g(['gl-1.1-drawarrays-vertex-count', '100000', mode, prim])
add_msaa_visual_plain_tests(g, ['draw-pixels']) add_msaa_visual_plain_tests(g, ['draw-pixels'])
add_msaa_visual_plain_tests(g, ['read-front'], run_concurrent=False) add_msaa_visual_plain_tests(g, ['read-front'], run_concurrent=False)
add_msaa_visual_plain_tests(g, ['read-front', 'clear-front-first'], add_msaa_visual_plain_tests(g, ['read-front', 'clear-front-first'],
......
...@@ -10,6 +10,7 @@ link_libraries ( ...@@ -10,6 +10,7 @@ link_libraries (
piglit_add_executable (gl-1.1-color-material-array color-material-array.c) piglit_add_executable (gl-1.1-color-material-array color-material-array.c)
piglit_add_executable (gl-1.1-draw-arrays-start draw-arrays-start.c) piglit_add_executable (gl-1.1-draw-arrays-start draw-arrays-start.c)
piglit_add_executable (gl-1.1-drawarrays-vertex-count drawarrays-vertex-count.c)
piglit_add_executable (gl-1.1-read-pixels-after-display-list read-pixels-after-display-list.c) piglit_add_executable (gl-1.1-read-pixels-after-display-list read-pixels-after-display-list.c)
piglit_add_executable (gl-1.1-set-vertex-color-after-draw set-vertex-color-after-draw.c) piglit_add_executable (gl-1.1-set-vertex-color-after-draw set-vertex-color-after-draw.c)
piglit_add_executable (gl-1.1-xor xor.c) piglit_add_executable (gl-1.1-xor xor.c)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment