[Piglit] [PATCH 11/11] mesa_shader_integer_functions: Negative compile tests for fma()
Ian Romanick
idr at freedesktop.org
Wed Jun 29 21:23:11 UTC 2016
From: Ian Romanick <ian.d.romanick at intel.com>
GL_MESA_shader_integer_functions does not add the fma functions, so all
of these tests should fail.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
.../compiler/builtin-functions/fs-fma.frag | 18 ++++++++++++++++++
.../compiler/builtin-functions/vs-fma.vert | 17 +++++++++++++++++
2 files changed, 35 insertions(+)
create mode 100644 tests/spec/mesa_shader_integer_functions/compiler/builtin-functions/fs-fma.frag
create mode 100644 tests/spec/mesa_shader_integer_functions/compiler/builtin-functions/vs-fma.vert
diff --git a/tests/spec/mesa_shader_integer_functions/compiler/builtin-functions/fs-fma.frag b/tests/spec/mesa_shader_integer_functions/compiler/builtin-functions/fs-fma.frag
new file mode 100644
index 0000000..a4f3719
--- /dev/null
+++ b/tests/spec/mesa_shader_integer_functions/compiler/builtin-functions/fs-fma.frag
@@ -0,0 +1,18 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.30
+// require_extensions: GL_MESA_shader_integer_functions
+// [end config]
+
+#version 130
+#extension GL_MESA_shader_integer_functions: require
+
+out vec4 piglit_fragcolor;
+in vec4 a;
+uniform vec4 b;
+uniform vec4 c;
+
+void main()
+{
+ piglit_fragcolor = fma(a, b, c);
+}
diff --git a/tests/spec/mesa_shader_integer_functions/compiler/builtin-functions/vs-fma.vert b/tests/spec/mesa_shader_integer_functions/compiler/builtin-functions/vs-fma.vert
new file mode 100644
index 0000000..07fff2e
--- /dev/null
+++ b/tests/spec/mesa_shader_integer_functions/compiler/builtin-functions/vs-fma.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.30
+// require_extensions: GL_MESA_shader_integer_functions
+// [end config]
+
+#version 130
+#extension GL_MESA_shader_integer_functions: require
+
+in vec4 piglit_vertex;
+uniform vec4 a;
+uniform vec4 b;
+
+void main()
+{
+ gl_Position = fma(piglit_vertex, a, b);
+}
--
2.5.5
More information about the Piglit
mailing list