[Piglit] [PATCH 2/2] arb_gpu_shader5: Remove out of spec ldexp() test case.
Matt Turner
mattst88 at gmail.com
Wed Apr 13 19:07:48 UTC 2016
Unfortunately, the GLSL spec says that exponent values outside of [-126,
128] are undefined or may be flushed to zero.
---
.../execution/built-in-functions/fs-ldexp.shader_test | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-ldexp.shader_test b/tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-ldexp.shader_test
index 785eee5..989c1da 100644
--- a/tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-ldexp.shader_test
+++ b/tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-ldexp.shader_test
@@ -82,14 +82,4 @@ uniform ivec4 given_exponent -127 -127 -127 -127
draw arrays GL_TRIANGLE_FAN 0 4
probe all rgba 0.0 1.0 0.0 1.0
-uniform vec4 expected_float 0.0 -0.0 0.0 -0.0
-uniform vec4 given_float 1.1754944e-38 -1.1754944e-38 3.40282347e38 -3.40282347e38
-# For the FLT_MAX case -255 comes from (-127 + -127 + -1).
-# ldexp(FLT_MAX, -127) = 0x1.fffffep+0 (1.999999881)
-# ldexp(FLT_MAX, -127 - 127) = 0x1p-126 (epsilon above FLT_MIN)
-# ldexp(FLT_MAX, -127 - 127 - 1) = 0.0
-uniform ivec4 given_exponent -1 -1 -255 -255
-draw arrays GL_TRIANGLE_FAN 0 4
-probe all rgba 0.0 1.0 0.0 1.0
-
# Overflow is undefined according to the GLSL spec, so nothing to test.
--
2.7.3
More information about the Piglit
mailing list