[Piglit] [PATCH 1/2] arb_vertex_attrib_64bit: add simple vertex input fp64 test
Dave Airlie
airlied at gmail.com
Tue Apr 7 19:46:43 PDT 2015
From: Dave Airlie <airlied at redhat.com>
This just tests a single 64-bit attrib input that is truncated
and used as position.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
.../execution/vs-fp64-input-trunc.shader_test | 36 ++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 tests/spec/arb_vertex_attrib_64bit/execution/vs-fp64-input-trunc.shader_test
diff --git a/tests/spec/arb_vertex_attrib_64bit/execution/vs-fp64-input-trunc.shader_test b/tests/spec/arb_vertex_attrib_64bit/execution/vs-fp64-input-trunc.shader_test
new file mode 100644
index 0000000..ef77594
--- /dev/null
+++ b/tests/spec/arb_vertex_attrib_64bit/execution/vs-fp64-input-trunc.shader_test
@@ -0,0 +1,36 @@
+# test truncating a double holds precision
+[require]
+GLSL >= 1.50
+GL_ARB_gpu_shader_fp64
+GL_ARB_vertex_attrib_64bit
+
+[vertex shader]
+#version 150
+#extension GL_ARB_gpu_shader_fp64 : require
+#extension GL_ARB_vertex_attrib_64bit : require
+in dvec4 vertex;
+void main()
+{
+ gl_Position = vec4(vertex);
+}
+
+[fragment shader]
+#version 150
+#
+void main()
+{
+ gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
+}
+
+[vertex data]
+vertex/double/2
+-1.0 -1.0
+ 1.0 -1.0
+ 1.0 1.0
+-1.0 1.0
+
+[test]
+clear color 0.0 0.0 1.0 1.0
+clear
+draw arrays GL_TRIANGLE_FAN 0 4
+probe rgba 0 0 0.0 1.0 0.0 1.0
--
2.3.4
More information about the Piglit
mailing list