[Piglit] [PATCH 1/2] Use after free bugs
Jonathan Scott "Tincman" Tinkham
sctincman at gmail.com
Thu Aug 14 17:52:31 PDT 2014
native_* functions have "implementation-defined" tolerance, and thus testing
native_pow with any sort of tolerance isn't exactly testing conformance.
Switching this to test powr makes more sense to me.
Signed-off-by: Jonathan Tinkham <sctincman at gmail.com>
---
tests/cl/program/execute/gegl-gamma-2-2-to-linear.cl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/cl/program/execute/gegl-gamma-2-2-to-linear.cl
b/tests/cl/program/execute/gegl-gamma-2-2-to-linear.cl index 9cd449e..e6cfd16
100644 --- a/tests/cl/program/execute/gegl-gamma-2-2-to-linear.cl
+++ b/tests/cl/program/execute/gegl-gamma-2-2-to-linear.cl
@@ -48,7 +48,7 @@ arg_out: 0 buffer float[1] 0.214041 tolerance 0.00001
kernel void gamma_2_2_to_linear (global float *out, float value)
{
if (value > 0.03928f)
- out[0] = native_powr ((value + 0.055f) / 1.055f, 2.4f);
+ out[0] = powr ((value + 0.055f) / 1.055f, 2.4f);
else
out[0] = value / 12.92f;
}
--
2.0.4
More information about the Piglit
mailing list