[Piglit] [PATCH] arb_gpu_shader_fp64: add test for using double as loop iterator

Tapani Pälli tapani.palli at intel.com
Thu Aug 14 04:44:47 PDT 2014


Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
 .../compiler/double-loop-iterator.vert             | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 tests/spec/arb_gpu_shader_fp64/compiler/double-loop-iterator.vert

diff --git a/tests/spec/arb_gpu_shader_fp64/compiler/double-loop-iterator.vert b/tests/spec/arb_gpu_shader_fp64/compiler/double-loop-iterator.vert
new file mode 100644
index 0000000..7756c8b
--- /dev/null
+++ b/tests/spec/arb_gpu_shader_fp64/compiler/double-loop-iterator.vert
@@ -0,0 +1,22 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// require_extensions: GL_ARB_gpu_shader_fp64
+// [end config]
+//
+// Test that double can be used as a loop iterator
+
+#version 150
+#extension GL_ARB_gpu_shader_fp64 : enable
+
+void test() {
+
+	double k;
+	vec4 vertex;
+
+	for (k = 0.0lf; k < 1.0lf; k += 0.1lf) {
+		vertex.x += k;
+	}
+
+	gl_Position = vertex;
+}
-- 
1.9.3



More information about the Piglit mailing list