[Piglit] [PATCH 02/18] shader_runner: Allow new drawing modes.

Eric Anholt eric at anholt.net
Mon Jun 10 16:54:01 PDT 2013


Fabian Bieler <fabianbieler at fastmail.fm> writes:

> Add primitives with adjacency and (for extreme future-proofness) patches to
> recognized drawing modes.
> ---
>  tests/shaders/shader_runner.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
> index 515fde1..e022b90 100644
> --- a/tests/shaders/shader_runner.c
> +++ b/tests/shaders/shader_runner.c
> @@ -1481,8 +1481,13 @@ GLenum
>  decode_drawing_mode(const char *mode_str)
>  {
>  	int i;
> +#ifdef PIGLIT_USE_OPENGL
> +	const GLenum max_prim_type = GL_PATCHES;
> +#else
> +	const GLenum max_prim_type = GL_POLYGON;
> +#endif

Both GLES2/3 and desktop enums should be available in both builds now,
so no need for ifdefs -- just always use GL_PATCHES.
-------------- 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/20130610/32e7cc05/attachment-0001.pgp>


More information about the Piglit mailing list