[Piglit] [PATCH] arb_gpu_shader_fp64: add preprocessor define tests

Tapani Pälli tapani.palli at intel.com
Fri Aug 8 02:58:15 PDT 2014


Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
 .../spec/arb_gpu_shader_fp64/preprocessor/define.frag | 19 +++++++++++++++++++
 .../spec/arb_gpu_shader_fp64/preprocessor/define.vert | 19 +++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 tests/spec/arb_gpu_shader_fp64/preprocessor/define.frag
 create mode 100644 tests/spec/arb_gpu_shader_fp64/preprocessor/define.vert

diff --git a/tests/spec/arb_gpu_shader_fp64/preprocessor/define.frag b/tests/spec/arb_gpu_shader_fp64/preprocessor/define.frag
new file mode 100644
index 0000000..85dd9bf
--- /dev/null
+++ b/tests/spec/arb_gpu_shader_fp64/preprocessor/define.frag
@@ -0,0 +1,19 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// require_extensions: GL_ARB_gpu_shader_fp64
+// [end config]
+
+#version 150
+#extension GL_ARB_gpu_shader_fp64: require
+
+#if !defined GL_ARB_gpu_shader_fp64
+#  error GL_ARB_gpu_shader_fp64 is not defined
+#elif GL_ARB_gpu_shader_fp64 != 1
+#  error GL_ARB_gpu_shader_fp64 is not equal to 1
+#endif
+
+/* Some compilers generate spurious errors if a shader does not contain
+ * any code or declarations.
+ */
+int foo(void) { return 1; }
diff --git a/tests/spec/arb_gpu_shader_fp64/preprocessor/define.vert b/tests/spec/arb_gpu_shader_fp64/preprocessor/define.vert
new file mode 100644
index 0000000..85dd9bf
--- /dev/null
+++ b/tests/spec/arb_gpu_shader_fp64/preprocessor/define.vert
@@ -0,0 +1,19 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// require_extensions: GL_ARB_gpu_shader_fp64
+// [end config]
+
+#version 150
+#extension GL_ARB_gpu_shader_fp64: require
+
+#if !defined GL_ARB_gpu_shader_fp64
+#  error GL_ARB_gpu_shader_fp64 is not defined
+#elif GL_ARB_gpu_shader_fp64 != 1
+#  error GL_ARB_gpu_shader_fp64 is not equal to 1
+#endif
+
+/* Some compilers generate spurious errors if a shader does not contain
+ * any code or declarations.
+ */
+int foo(void) { return 1; }
-- 
1.9.3



More information about the Piglit mailing list