[Piglit] [PATCH] Test interaction of primitive restart and transform feedback.
Eric Anholt
eric at anholt.net
Mon Apr 8 10:18:25 PDT 2013
Paul Berry <stereotype441 at gmail.com> writes:
> + switch (test_mode) {
> + case TEST_MODE_GENERATED:
> + glBeginQuery(GL_PRIMITIVES_GENERATED, query);
> + glBeginTransformFeedback(GL_TRIANGLES);
> + glDrawElements(GL_TRIANGLE_STRIP, 9, GL_UNSIGNED_BYTE, NULL);
> + glEndTransformFeedback();
> + glEndQuery(GL_PRIMITIVES_GENERATED);
> + pass = check_query_result(query, 4);
> + break;
> + case TEST_MODE_WRITTEN:
> + glBeginQuery(GL_PRIMITIVES_GENERATED, query);
> + glBeginTransformFeedback(GL_TRIANGLES);
> + glDrawElements(GL_TRIANGLE_STRIP, 9, GL_UNSIGNED_BYTE, NULL);
> + glEndTransformFeedback();
> + glEndQuery(GL_PRIMITIVES_GENERATED);
> + pass = check_query_result(query, 4);
> + break;
> + case TEST_MODE_FLUSH:
> + glBeginTransformFeedback(GL_TRIANGLES);
> + glDrawElements(GL_TRIANGLE_STRIP, 9, GL_UNSIGNED_BYTE, NULL);
> + glFlush();
> + glDrawElements(GL_TRIANGLE_STRIP, 4, GL_UNSIGNED_BYTE,
> + (void *) (9 * sizeof(GLubyte)));
> + glEndTransformFeedback();
> + pass = check_xfb_result();
> + break;
I'd like to see this path also check_query_result -- I think we've got a
better way to change the driver, but I worry about messing up the
queries. Other than that, looks good to me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130408/5877da72/attachment.pgp>
More information about the Piglit
mailing list