[Piglit] [PATCH] Add a test for mix where the second operand is zero.
Kenneth Graunke
kenneth at whitecape.org
Sat Mar 1 01:39:49 PST 2014
Reproduces a bug in Mesa's algebraic optimization pass.
See Mesa patch:
"glsl: Fix broken LRP algebraic optimization."
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
tests/spec/glsl-1.10/compiler/glsl-fs-mix-y-zero.frag | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 tests/spec/glsl-1.10/compiler/glsl-fs-mix-y-zero.frag
diff --git a/tests/spec/glsl-1.10/compiler/glsl-fs-mix-y-zero.frag b/tests/spec/glsl-1.10/compiler/glsl-fs-mix-y-zero.frag
new file mode 100644
index 0000000..a0abb46
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/glsl-fs-mix-y-zero.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.10
+// [end config]
+
+uniform vec4 u;
+void main()
+{
+ gl_FragColor = mix(u, vec4(0), u);
+}
--
1.9.0
More information about the Piglit
mailing list