summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2015-02-04 22:31:59 -0500
committerIlia Mirkin <imirkin@alum.mit.edu>2015-02-05 01:07:08 -0500
commit4ce9b226ebc376a131c7cf7214309f8b319ecc1e (patch)
tree5218b2191fbd78777ad0905db49fe95a0473dac2
parent1dca1680c1b29cf1eb242cf8c51e157ca88c929d (diff)
arb_gpu_shader_fp64: make fs-modf-double require GLSL 1.50
Mesa only exposes fp64 on core profiles. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
-rw-r--r--tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-modf-double.shader_test19
1 files changed, 13 insertions, 6 deletions
diff --git a/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-modf-double.shader_test b/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-modf-double.shader_test
index 79bae06d7..961830885 100644
--- a/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-modf-double.shader_test
+++ b/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-modf-double.shader_test
@@ -4,19 +4,19 @@
# returns them correctly.
[require]
-GLSL >= 1.30
+GLSL >= 1.50
GL_ARB_gpu_shader_fp64
[vertex shader]
-#version 130
+in vec4 vertex;
void main()
{
- gl_Position = gl_Vertex;
+ gl_Position = vertex;
}
[fragment shader]
-#version 130
#extension GL_ARB_gpu_shader_fp64 : enable
+
uniform double value;
uniform double expected1;
uniform double expected2;
@@ -31,17 +31,24 @@ void main()
gl_FragColor = vec4(b1, b2, 0.0, 1.0);
}
+[vertex data]
+vertex/float/2
+-1.0 -1.0
+ 1.0 -1.0
+ 1.0 1.0
+-1.0 1.0
+
[test]
uniform double value 2.5
uniform double expected1 2.0
uniform double expected2 0.5
uniform double tolerance 0.0041452078
-draw rect -1 -1 2 2
+draw arrays GL_TRIANGLE_FAN 0 4
probe rgba 0 0 1.0 1.0 0.0 1.0
uniform double value -1.33
uniform double expected1 -1.0
uniform double expected2 -0.33
uniform double tolerance 0.0041452078
-draw rect -1 -1 2 2
+draw arrays GL_TRIANGLE_FAN 0 4
probe rgba 1 0 1.0 1.0 0.0 1.0