[Piglit] [PATCH 2/2] glsl-1.40: Add a test for a path in i965 where I had an XXX comment.
Eric Anholt
eric at anholt.net
Thu Nov 15 11:03:13 PST 2012
---
.../uniform_buffer/fs-bvec-array.shader_test | 39 ++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 tests/spec/glsl-1.40/uniform_buffer/fs-bvec-array.shader_test
diff --git a/tests/spec/glsl-1.40/uniform_buffer/fs-bvec-array.shader_test b/tests/spec/glsl-1.40/uniform_buffer/fs-bvec-array.shader_test
new file mode 100644
index 0000000..2c2b032
--- /dev/null
+++ b/tests/spec/glsl-1.40/uniform_buffer/fs-bvec-array.shader_test
@@ -0,0 +1,39 @@
+[require]
+GLSL >= 1.40
+
+[vertex shader]
+#version 140
+
+in vec4 vertex;
+
+void main()
+{
+ gl_Position = vertex;
+}
+
+[fragment shader]
+#version 140
+
+uniform int i;
+uniform ubo1 {
+ bvec4 b[2];
+};
+
+void main()
+{
+ gl_FragColor = vec4(b[i]);
+}
+
+[vertex data]
+vertex/float/2
+-1.0 -1.0
+ 1.0 -1.0
+ 1.0 1.0
+-1.0 1.0
+
+[test]
+uniform int i 1
+uniform ivec4 b[0] 0 0 0 0
+uniform ivec4 b[1] 0 1 2 3
+draw arrays GL_TRIANGLE_FAN 0 4
+probe all rgba 0.0 1.0 1.0 1.0
--
1.7.10.4
More information about the Piglit
mailing list