[Piglit] [PATCH] arb-shader-clock: add some basic tests

Emil Velikov emil.l.velikov at gmail.com
Tue Oct 20 10:18:24 PDT 2015


Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---

My glsl is a bit rusty, and the glsl_version is rather random :-]
Open to suggestions and recommendations though.

-Emil

 tests/spec/arb_shader_clock/linker/sanity.frag | 16 ++++++++++++++++
 tests/spec/arb_shader_clock/linker/sanity.vert | 16 ++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 tests/spec/arb_shader_clock/linker/sanity.frag
 create mode 100644 tests/spec/arb_shader_clock/linker/sanity.vert

diff --git a/tests/spec/arb_shader_clock/linker/sanity.frag b/tests/spec/arb_shader_clock/linker/sanity.frag
new file mode 100644
index 0000000..07f00e5
--- /dev/null
+++ b/tests/spec/arb_shader_clock/linker/sanity.frag
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.30
+// require_extensions: GL_ARB_shader_clock
+// check_link: true
+// [end config]
+
+#version 130
+#extension GL_ARB_shader_clock: require
+
+out uvec2 color;
+
+void main()
+{
+        color = clock2x32ARB();
+}
diff --git a/tests/spec/arb_shader_clock/linker/sanity.vert b/tests/spec/arb_shader_clock/linker/sanity.vert
new file mode 100644
index 0000000..3d1d673
--- /dev/null
+++ b/tests/spec/arb_shader_clock/linker/sanity.vert
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.30
+// require_extensions: GL_ARB_shader_clock
+// check_link: true
+// [end config]
+
+#version 130
+#extension GL_ARB_shader_clock: require
+
+out uvec2 x;
+
+void main() {
+        gl_Position = vec4(0.0);
+        x = clock2x32ARB();
+}
-- 
2.6.1



More information about the Piglit mailing list