summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Gomez <agomez@igalia.com>2016-03-14 16:58:37 +0200
committerEduardo Lima Mitev <elima@igalia.com>2016-04-29 07:45:47 +0200
commit02c841e10254b9b1a324c3df36bf84cc27beba66 (patch)
treee4c2ce63f6b39aae8dd0edcada2fe64463843441
parent8147ec81a71dd65da1c88be5c4cc9c39dad87173 (diff)
arb_gpu_shader_fp64: Adds GS preprocessor define test
Acked-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Eduardo Lima Mitev <elima@igalia.com> Signed-off-by: Andres Gomez <agomez@igalia.com>
-rw-r--r--tests/spec/arb_gpu_shader_fp64/preprocessor/define.geom19
1 files changed, 19 insertions, 0 deletions
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 000000000..85dd9bf6a
--- /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; }