[Piglit] [PATCH] gles2: add linker test for varying that is not written but read

Anuj Phogat anuj.phogat at gmail.com
Fri Oct 3 11:26:42 PDT 2014


On Wed, Oct 1, 2014 at 4:14 AM, Tapani Pälli <tapani.palli at intel.com> wrote:
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
>  .../gles-2.0/glsl-undefined-varying.shader_test    | 24 ++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>  create mode 100644 tests/spec/gles-2.0/glsl-undefined-varying.shader_test
>
> diff --git a/tests/spec/gles-2.0/glsl-undefined-varying.shader_test b/tests/spec/gles-2.0/glsl-undefined-varying.shader_test
> new file mode 100644
> index 0000000..daa97d0
> --- /dev/null
> +++ b/tests/spec/gles-2.0/glsl-undefined-varying.shader_test
> @@ -0,0 +1,24 @@
> +#
> +# Tests that we can link a shader program on OpenGL ES 2.0 where
> +# vertex shader does not write to varying but fragment shader reads from it
> +#
> +[require]
> +GL ES >= 2.0
> +GLSL ES >= 1.00
> +
> +[vertex shader]
> +varying highp vec4 color;
> +void main()
> +{
> +       gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
> +}
> +
> +[fragment shader]
> +varying highp vec4 color;
> +void main()
> +{
> +       gl_FragColor = color;
> +}
> +
> +[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