[Piglit] [PATCH] arb_separate_shader_objects: test for explicit varying location overlap by arrays
Tapani Pälli
tapani.palli at intel.com
Tue Dec 15 22:26:11 PST 2015
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 12/16/2015 06:44 AM, Timothy Arceri wrote:
> Test results:
> Nvidia GeForce 840M - NVIDIA 352.41: fail
> Mesa 11.2 (dev): fail
> ---
> ...-fs-explicit-location-overlap-array.shader_test | 46 ++++++++++++++++++++++
> 1 file changed, 46 insertions(+)
> create mode 100644 tests/spec/arb_separate_shader_objects/linker/vs-to-fs-explicit-location-overlap-array.shader_test
>
> diff --git a/tests/spec/arb_separate_shader_objects/linker/vs-to-fs-explicit-location-overlap-array.shader_test b/tests/spec/arb_separate_shader_objects/linker/vs-to-fs-explicit-location-overlap-array.shader_test
> new file mode 100644
> index 0000000..f775e74
> --- /dev/null
> +++ b/tests/spec/arb_separate_shader_objects/linker/vs-to-fs-explicit-location-overlap-array.shader_test
> @@ -0,0 +1,46 @@
> +// Test for explicit varying location overlap by arrays
> +
> +[require]
> +GLSL >= 1.40
> +GL_ARB_separate_shader_objects
> +
> +[vertex shader]
> +#version 140
> +#extension GL_ARB_separate_shader_objects : require
> +
> +in vec4 piglit_vertex;
> +
> +layout(location = 0) out vec4 out1[2];
> +layout(location = 1) out vec4 out2;
> +
> +void main()
> +{
> + gl_Position = piglit_vertex;
> + out1[0] = vec4(1.0, 0.0, 0.0, 1.0);
> + out1[1] = vec4(1.0, 1.0, 0.0, 1.0);
> + out2 = vec4(0.0);
> +}
> +
> +[fragment shader]
> +#version 140
> +#extension GL_ARB_separate_shader_objects : require
> +
> +uniform int i;
> +
> +layout(location = 0) in vec4 out1[2];
> +layout(location = 1) in vec4 out2;
> +
> +out vec4 color;
> +
> +void main()
> +{
> + if (i == 0)
> + color = out1[0];
> + else if (i == 1)
> + color = out1[1];
> + else
> + color = out2;
> +}
> +
> +[test]
> +link error
More information about the Piglit
mailing list