aboutsummaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-fs-uniform-array-loop-unroll.shader_test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shaders/glsl-fs-uniform-array-loop-unroll.shader_test')
-rw-r--r--tests/shaders/glsl-fs-uniform-array-loop-unroll.shader_test20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/shaders/glsl-fs-uniform-array-loop-unroll.shader_test b/tests/shaders/glsl-fs-uniform-array-loop-unroll.shader_test
new file mode 100644
index 00000000..f306eec9
--- /dev/null
+++ b/tests/shaders/glsl-fs-uniform-array-loop-unroll.shader_test
@@ -0,0 +1,20 @@
+# https://bugs.freedesktop.org/show_bug.cgi?id=59429
+
+[require]
+GLSL >= 1.10
+
+[vertex shader]
+void main()
+{
+ gl_Position = vec4(0,0,0,0);
+}
+
+[fragment shader]
+uniform vec4 u[1];
+void main()
+{
+ vec4 c = vec4(0,0,0,0);
+ for (int i = 0; i < 2; ++i)
+ c += u[i];
+ gl_FragColor = c;
+}