[Piglit] [PATCH] gles2: add linker test for shader not writing to gl_Position
Anuj Phogat
anuj.phogat at gmail.com
Fri Oct 3 10:40:22 PDT 2014
On Thu, Oct 2, 2014 at 1:53 AM, Tapani Pälli <tapani.palli at intel.com> wrote:
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
> tests/spec/gles-2.0/glsl-no-glposition.shader_test | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
> create mode 100644 tests/spec/gles-2.0/glsl-no-glposition.shader_test
>
> diff --git a/tests/spec/gles-2.0/glsl-no-glposition.shader_test b/tests/spec/gles-2.0/glsl-no-glposition.shader_test
> new file mode 100644
> index 0000000..63fe20a
> --- /dev/null
> +++ b/tests/spec/gles-2.0/glsl-no-glposition.shader_test
> @@ -0,0 +1,21 @@
> +#
> +# Tests that we can link a shader program on OpenGL ES 2.0 where
> +# vertex shader does not write to gl_Position
> +#
> +[require]
> +GL ES >= 2.0
> +GLSL ES >= 1.00
> +
> +[vertex shader]
> +void main()
> +{
> +}
> +
> +[fragment shader]
> +void main()
> +{
> + gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
> +}
> +
> +[test]
> +link success
> --
> 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