[Piglit] [PATCH 08/23] Port "sequence (comma) operator" glsl test from Glean to Piglit.

Fabian Bieler fabianbieler at fastmail.fm
Thu Nov 23 20:46:00 UTC 2017


---
 .../glsl-1.10/execution/sequence-operator.shader_test     | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 tests/spec/glsl-1.10/execution/sequence-operator.shader_test

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



More information about the Piglit mailing list