From: Dave Airlie <airl...@redhat.com> This just tests a dvec3 input takes up the correct amount of space.
Signed-off-by: Dave Airlie <airl...@redhat.com> --- .../execution/vs-dvec3-input.shader_test | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/spec/arb_vertex_attrib_64bit/execution/vs-dvec3-input.shader_test diff --git a/tests/spec/arb_vertex_attrib_64bit/execution/vs-dvec3-input.shader_test b/tests/spec/arb_vertex_attrib_64bit/execution/vs-dvec3-input.shader_test new file mode 100644 index 0000000..d338c6c --- /dev/null +++ b/tests/spec/arb_vertex_attrib_64bit/execution/vs-dvec3-input.shader_test @@ -0,0 +1,37 @@ +# 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; +void main() +{ + gl_Position = vec4(vertex, 1.0); +} + +[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 +-1.0 -1.0 0.0 + 1.0 -1.0 0.0 + 1.0 1.0 0.0 +-1.0 1.0 0.0 + +[test] +clear color 0.0 0.0 1.0 0.0 +clear +draw arrays GL_TRIANGLE_FAN 0 4 +probe rgba 0 0 0.0 1.0 0.0 1.0 -- 2.3.4 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit