[Piglit] [PATCH 2/5] glsl-1.30: Test large vec4 local array
Glenn Kennard
glenn.kennard at gmail.com
Mon Mar 6 23:11:15 UTC 2017
---
.../fs-large-local-array-vec4.shader_test | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 tests/spec/glsl-1.30/execution/fs-large-local-array-vec4.shader_test
diff --git a/tests/spec/glsl-1.30/execution/fs-large-local-array-vec4.shader_test b/tests/spec/glsl-1.30/execution/fs-large-local-array-vec4.shader_test
new file mode 100644
index 0000000..29b2223
--- /dev/null
+++ b/tests/spec/glsl-1.30/execution/fs-large-local-array-vec4.shader_test
@@ -0,0 +1,28 @@
+[require]
+GLSL >= 1.30
+
+[vertex shader passthrough]
+
+[fragment shader]
+uniform uint i;
+void main()
+{
+ vec4 A[130];
+ A[20].g = 0;
+ A[i].g = 37;
+ A[i].r = 1;
+ gl_FragColor.rba = vec3(0.0, 0.0, 1.0);
+ gl_FragColor.g = float(A[20].g == 37);
+}
+
+[test]
+clear color 1.0 0.0 0.0 1.0
+clear
+uniform uint i 19
+draw rect -1 -1 2 2
+probe all rgba 0.0 0.0 0.0 1.0
+
+clear
+uniform uint i 20
+draw rect -1 -1 2 2
+probe all rgba 0.0 1.0 0.0 1.0
--
2.7.4
More information about the Piglit
mailing list