[Piglit] [PATCH 07/23] Port "chained assignement" glsl test from Glean to Piglit.

Fabian Bieler fabianbieler at fastmail.fm
Thu Nov 23 20:45:59 UTC 2017


Tested functionality is also tested in existing test
shaders/glsl-array-compare-02.shader_test.
---
 .../glsl-1.10/execution/chained-assignment.shader_test    | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 tests/spec/glsl-1.10/execution/chained-assignment.shader_test

diff --git a/tests/spec/glsl-1.10/execution/chained-assignment.shader_test b/tests/spec/glsl-1.10/execution/chained-assignment.shader_test
new file mode 100644
index 0000000..d86a37c
--- /dev/null
+++ b/tests/spec/glsl-1.10/execution/chained-assignment.shader_test
@@ -0,0 +1,15 @@
+[require]
+GLSL >= 1.10
+
+[fragment shader]
+void main()
+{
+	float x, y, z;
+	x = y = z = 0.25;
+	gl_FragColor = vec4(x + y + z);
+}
+
+
+[test]
+draw rect -1 -1 2 2
+relative probe rgba (0.5, 0.5) (0.75, 0.75, 0.75, 0.75)
-- 
2.7.4



More information about the Piglit mailing list