[Piglit] [PATCH] Add missing piglit_get_prim_name() for gles3.
Anuj Phogat
anuj.phogat at gmail.com
Mon Feb 25 17:01:58 PST 2013
On Mon, Feb 25, 2013 at 11:04 AM, Eric Anholt <eric at anholt.net> wrote:
> Fixes piglit build since the shader_runner change to use this
> function.
> ---
> tests/util/piglit-util-gles3-enum.c | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
>
> diff --git a/tests/util/piglit-util-gles3-enum.c b/tests/util/piglit-util-gles3-enum.c
> index 530bd88..8b0fcdc 100644
> --- a/tests/util/piglit-util-gles3-enum.c
> +++ b/tests/util/piglit-util-gles3-enum.c
> @@ -704,3 +704,25 @@ piglit_get_gl_enum_name(GLenum param)
> #undef CASE
> }
>
> +const char *
> +piglit_get_prim_name(GLenum prim)
> +{
> + switch (prim) {
> + case GL_POINTS:
> + return "GL_POINTS";
> + case GL_LINES:
> + return "GL_LINES";
> + case GL_LINE_STRIP:
> + return "GL_LINE_STRIP";
> + case GL_LINE_LOOP:
> + return "GL_LINE_LOOP";
> + case GL_TRIANGLES:
> + return "GL_TRIANGLES";
> + case GL_TRIANGLE_STRIP:
> + return "GL_TRIANGLE_STRIP";
> + case GL_TRIANGLE_FAN:
> + return "GL_TRIANGLE_FAN";
> + default:
> + return "(unrecognized enum)";
> + }
> +}
> --
> 1.7.10.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
More information about the Piglit
mailing list