[Piglit] [PATCH] glsl-1.30/execution/vertexid-*: New tests for using gl_VertexID.

Chad Versace chad.versace at linux.intel.com
Thu Nov 10 09:32:11 PST 2011


On 11/09/2011 05:17 PM, Eric Anholt wrote:
> A few different draw calls are tested to hopefully make sure the
> hardware is wired up like we expect.  Also, provide different vertex
> data and do a silly compare in each to be sure that we aren't
> accidentally using the wrong data for gl_VertexID due to miscellaneous
> bugs I could imagine.
> 
> v2: Split into a separate test per draw call type.
> ---
>  tests/all.tests                                    |    3 +
>  tests/spec/glsl-1.30/execution/CMakeLists.gl.txt   |    3 +
>  tests/spec/glsl-1.30/execution/vertexid-beginend.c |  101 ++++++++++++++++++
>  .../spec/glsl-1.30/execution/vertexid-drawarrays.c |  107 +++++++++++++++++++
>  .../glsl-1.30/execution/vertexid-drawelements.c    |  111 ++++++++++++++++++++
>  5 files changed, 325 insertions(+), 0 deletions(-)
>  create mode 100644 tests/spec/glsl-1.30/execution/vertexid-beginend.c
>  create mode 100644 tests/spec/glsl-1.30/execution/vertexid-drawarrays.c
>  create mode 100644 tests/spec/glsl-1.30/execution/vertexid-drawelements.c


Thanks for splitting the tests.
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>

----
Chad Versace
chad.versace at linux.intel.com


More information about the Piglit mailing list