[Piglit] [PATCH v2] gles2: add test to render a point without vertex attributes

Anuj Phogat anuj.phogat at gmail.com
Fri Oct 3 10:57:40 PDT 2014


On Wed, Oct 1, 2014 at 4:07 AM, Tapani Pälli <tapani.palli at intel.com> wrote:
> v2: instead of c, make it a shader_runner_gles2 test
>
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
>  .../gles-2.0/glsl-no-vertex-attribs.shader_test    | 25 ++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
>  create mode 100644 tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test
>
> diff --git a/tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test b/tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test
> new file mode 100644
> index 0000000..36a6b4c
> --- /dev/null
> +++ b/tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test
> @@ -0,0 +1,25 @@
> +#
> +# Tests that we can succesfully render a point with OpenGL ES 2.0
> +# without having any vertex attributes enabled.
> +#
> +[require]
> +GL ES >= 2.0
> +GLSL ES >= 1.00
> +SIZE 1 1
> +
> +[vertex shader]
> +void main()
> +{
> +       gl_PointSize = 1.0;
> +       gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
> +}
> +
> +[fragment shader]
> +void main()
> +{
> +       gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
> +}
> +
> +[test]
> +draw arrays GL_POINTS 0 1
> +relative probe rgba (0.0, 0.0) (0.0, 1.0, 0.0, 1.0)
> --
> 1.9.3
>
> _______________________________________________
> 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