summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-04-13 17:33:24 +1000
committerDave Airlie <airlied@redhat.com>2015-04-14 11:15:00 +1000
commit66033f8855150a33495c75c3dd13d378d5c033a4 (patch)
treed960aa8e79c5d39904eb5f3d28e693995bf4dc10
parentdaedd2ee27dfca041e8c4668513f4264cd1bf86c (diff)
vertex_arib_64
-rw-r--r--tests/spec/arb_vertex_attrib_64bit/execution/vs-dvec3-float-input.shader_test38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/spec/arb_vertex_attrib_64bit/execution/vs-dvec3-float-input.shader_test b/tests/spec/arb_vertex_attrib_64bit/execution/vs-dvec3-float-input.shader_test
new file mode 100644
index 000000000..5ebe7aba9
--- /dev/null
+++ b/tests/spec/arb_vertex_attrib_64bit/execution/vs-dvec3-float-input.shader_test
@@ -0,0 +1,38 @@
+# 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 dvec3 vertex;
+in float test;
+void main()
+{
+ gl_Position = vec4(vertex.xyz, test);
+}
+
+[fragment shader]
+#version 150
+#extension GL_ARB_gpu_shader_fp64 : require
+
+void main()
+{
+ gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
+}
+
+[vertex data]
+vertex/double/3 test/float/1
+-1.0 -1.0 0.0 1.0
+ 1.0 -1.0 0.0 1.0
+ 1.0 1.0 0.0 1.0
+-1.0 1.0 0.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