[Piglit] [PATCH] arb_gpu_shader_fp64: make fs-modf-double require GLSL 1.50
Ilia Mirkin
imirkin at alum.mit.edu
Wed Feb 4 19:34:55 PST 2015
Mesa only exposes fp64 on core profiles.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
.../built-in-functions/fs-modf-double.shader_test | 19 +++++++++++++------
1 file 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 79bae06..9618308 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
--
2.0.5
More information about the Piglit
mailing list