Commit 67db7e28 authored by Brian Paul's avatar Brian Paul

gl-3.2-adj-prims: new test of adjacency primitives with rendering options

Test GL_LINES_ADJACENCY, GL_LINE_STRIP_ADJACENCY, GL_TRIANGLES_ADJACENCY
and GL_TRIANGLE_STRIP_ADJACENCY primitive rendering with several options:
- First and last provoking vertex
- Front and back-face culling
- glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)

There's also a "ref" (reference) option that draws the primitive in
terms of regular lines/triangles so that the "extra" lines/triangles in
an adjacency primitive are displayed.

v2: call glBindAttribLocation() for "vertex" and "color", plus minor
clean-ups.
Signed-off-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
parent 6f3ef139
......@@ -1235,6 +1235,16 @@ with profile.group_manager(
g(['gl-3.2-basevertex-vertexid'],
'gl_VertexID used with glMultiDrawElementsBaseVertex')
g(['gl-3.2-minmax'], 'minmax')
g(['gl-3.2-adj-prims', 'pv-first'])
g(['gl-3.2-adj-prims', 'pv-last'])
g(['gl-3.2-adj-prims', 'cull-front pv-first'])
g(['gl-3.2-adj-prims', 'cull-front pv-last'])
g(['gl-3.2-adj-prims', 'cull-back pv-first'])
g(['gl-3.2-adj-prims', 'cull-back pv-last'])
g(['gl-3.2-adj-prims', 'line cull-front pv-first'])
g(['gl-3.2-adj-prims', 'line cull-front pv-last'])
g(['gl-3.2-adj-prims', 'line cull-back pv-first'])
g(['gl-3.2-adj-prims', 'line cull-back pv-last'])
g(['gl-3.2-clear-no-buffers'], 'clear-no-buffers')
g(['gl-3.2-depth-tex-sampling'], 'depth-tex-sampling')
g(['gl-3.2-get-buffer-parameter-i64v'], 'get-buffer-parameter-i64v')
......
......@@ -8,6 +8,7 @@ link_libraries (
${OPENGL_gl_LIBRARY}
)
piglit_add_executable (gl-3.2-adj-prims adj-prims.c)
piglit_add_executable (gl-3.2-minmax minmax.c)
piglit_add_executable (gl-3.2-basevertex-vertexid basevertex-vertexid.c)
piglit_add_executable (gl-3.2-clear-no-buffers clear-no-buffers.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