<div dir="ltr">Does fp64 require 1.50? If not, then it seems as if the requirement of having the gpu_shader_fp64 extension available is sufficient. Am I missing something?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 4, 2015 at 7:34 PM, Ilia Mirkin <span dir="ltr"><<a href="mailto:imirkin@alum.mit.edu" target="_blank">imirkin@alum.mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mesa only exposes fp64 on core profiles.<br>
<br>
Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>><br>
---<br>
.../built-in-functions/fs-modf-double.shader_test | 19 +++++++++++++------<br>
1 file changed, 13 insertions(+), 6 deletions(-)<br>
<br>
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<br>
index 79bae06..9618308 100644<br>
--- a/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-modf-double.shader_test<br>
+++ b/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-modf-double.shader_test<br>
@@ -4,19 +4,19 @@<br>
# returns them correctly.<br>
<br>
[require]<br>
-GLSL >= 1.30<br>
+GLSL >= 1.50<br>
GL_ARB_gpu_shader_fp64<br>
<br>
[vertex shader]<br>
-#version 130<br>
+in vec4 vertex;<br>
void main()<br>
{<br>
- gl_Position = gl_Vertex;<br>
+ gl_Position = vertex;<br>
}<br>
<br>
[fragment shader]<br>
-#version 130<br>
#extension GL_ARB_gpu_shader_fp64 : enable<br>
+<br>
uniform double value;<br>
uniform double expected1;<br>
uniform double expected2;<br>
@@ -31,17 +31,24 @@ void main()<br>
gl_FragColor = vec4(b1, b2, 0.0, 1.0);<br>
}<br>
<br>
+[vertex data]<br>
+vertex/float/2<br>
+-1.0 -1.0<br>
+ 1.0 -1.0<br>
+ 1.0 1.0<br>
+-1.0 1.0<br>
+<br>
[test]<br>
uniform double value 2.5<br>
uniform double expected1 2.0<br>
uniform double expected2 0.5<br>
uniform double tolerance 0.0041452078<br>
-draw rect -1 -1 2 2<br>
+draw arrays GL_TRIANGLE_FAN 0 4<br>
probe rgba 0 0 1.0 1.0 0.0 1.0<br>
<br>
uniform double value -1.33<br>
uniform double expected1 -1.0<br>
uniform double expected2 -0.33<br>
uniform double tolerance 0.0041452078<br>
-draw rect -1 -1 2 2<br>
+draw arrays GL_TRIANGLE_FAN 0 4<br>
probe rgba 1 0 1.0 1.0 0.0 1.0<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.0.5<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br></div>