[Piglit] [PATCH 1/8] arb_gpu_shader_fp64: Adds GS preprocessor define test
Andres Gomez
agomez at igalia.com
Tue Mar 15 15:50:42 UTC 2016
Signed-off-by: Andres Gomez <agomez at igalia.com>
---
.../spec/arb_gpu_shader_fp64/preprocessor/define.geom | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 tests/spec/arb_gpu_shader_fp64/preprocessor/define.geom
diff --git a/tests/spec/arb_gpu_shader_fp64/preprocessor/define.geom b/tests/spec/arb_gpu_shader_fp64/preprocessor/define.geom
new file mode 100644
index 0000000..85dd9bf
--- /dev/null
+++ b/tests/spec/arb_gpu_shader_fp64/preprocessor/define.geom
@@ -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; }
--
2.1.0
More information about the Piglit
mailing list