[Piglit] [PATCH] vs-all-equal-bool-array: New test.
Brian Paul
brianp at vmware.com
Wed Oct 17 10:20:34 PDT 2012
On 10/17/2012 11:10 AM, jfonseca at vmware.com wrote:
> From: José Fonseca<jfonseca at vmware.com>
>
> A variation of generated_tests/spec/glsl-1.20/execution/uniform-initializer/vs-bool-array.shader_test
> which exercises a bug in Mesa gallium state tracker.
> ---
> .../execution/vs-all-equal-bool-array.shader_test | 32 ++++++++++++++++++++
> 1 file changed, 32 insertions(+)
> create mode 100644 tests/spec/glsl-1.20/execution/vs-all-equal-bool-array.shader_test
>
> diff --git a/tests/spec/glsl-1.20/execution/vs-all-equal-bool-array.shader_test b/tests/spec/glsl-1.20/execution/vs-all-equal-bool-array.shader_test
> new file mode 100644
> index 0000000..376534b
> --- /dev/null
> +++ b/tests/spec/glsl-1.20/execution/vs-all-equal-bool-array.shader_test
> @@ -0,0 +1,32 @@
> +[require]
> +GLSL>= 1.20
> +
> +[vertex shader]
> +#version 120
> +varying vec4 color;
> +
> +uniform bool[2] ub = bool[2](bool(0), bool(1));
> +
> +void main()
> +{
> + if (ub == bool[2](bool(1), bool(1))) {
> + color = vec4(1, 0, 0, 1);
> + } else {
> + color = vec4(0, 1, 0, 1);
> + }
> +
> + gl_Position = gl_Vertex;
> +}
> +
> +[fragment shader]
> +#version 120
> +varying vec4 color;
> +
> +void main()
> +{
> + gl_FragColor = color;
> +}
> +
> +[test]
> +draw rect -1 -1 2 2
> +probe all rgb 0 1 0
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the Piglit
mailing list