diff options
author | Dave Airlie <airlied@redhat.com> | 2015-03-04 15:30:04 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-04-08 13:34:53 +1000 |
commit | 1e0af1a8d8d69e5832b85e3283f6ea44e44fc513 (patch) | |
tree | b4811bab09c870f3ad8dc5fa9c64ac45a6c6b0bd | |
parent | a31bb6f5dd110d43721a98934b4c79cc33c82637 (diff) |
arb_vertex_attrib_64bit: use a dvec3 input
This just tests a dvec3 input takes up the correct amount of space.
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | tests/spec/arb_vertex_attrib_64bit/execution/vs-dvec3-input.shader_test | 37 |
1 files changed, 37 insertions, 0 deletions
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 000000000..d338c6cc2 --- /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 |