[Piglit] [PATCH 1/1] cl: Fix tolerance for division in scalar arithmetic test

Jan Vesely jan.vesely at rutgers.edu
Mon Jan 26 12:20:34 PST 2015


Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
RFC: I only tagged numerical results,
 it did not make sense to me to do it for NaNs and Infs

R600: Fail -> Pass

 tests/cl/program/execute/scalar-arithmetic-float.cl | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/tests/cl/program/execute/scalar-arithmetic-float.cl b/tests/cl/program/execute/scalar-arithmetic-float.cl
index 33a44d4..84c3970 100644
--- a/tests/cl/program/execute/scalar-arithmetic-float.cl
+++ b/tests/cl/program/execute/scalar-arithmetic-float.cl
@@ -178,42 +178,42 @@ name: pos div pos
 kernel_name: div
 arg_in:  1 float 8.5
 arg_in:  2 float 4.25
-arg_out: 0 buffer float[1] 2
+arg_out: 0 buffer float[1] 2 tolerance 2
 
 [test]
 name: pos div neg
 kernel_name: div
 arg_in:  1 float 11.25
 arg_in:  2 float -3
-arg_out: 0 buffer float[1] -3.75
+arg_out: 0 buffer float[1] -3.75 tolerance 2
 
 [test]
 name: neg div pos
 kernel_name: div
 arg_in:  1 float -21
 arg_in:  2 float 5.25
-arg_out: 0 buffer float[1] -4
+arg_out: 0 buffer float[1] -4 tolerance 2
 
 [test]
 name: neg div neg
 kernel_name: div
 arg_in:  1 float -21.25
 arg_in:  2 float -5
-arg_out: 0 buffer float[1] 4.25
+arg_out: 0 buffer float[1] 4.25 tolerance 2
 
 [test]
 name: 0 div pos
 kernel_name: div
 arg_in:  1 float 0
 arg_in:  2 float 3.7
-arg_out: 0 buffer float[1] 0
+arg_out: 0 buffer float[1] 0 tolerance 2
 
 [test]
 name: 0 div neg
 kernel_name: div
 arg_in:  1 float 0
 arg_in:  2 float -3.7
-arg_out: 0 buffer float[1] -0
+arg_out: 0 buffer float[1] -0 tolerance 2
 
 [test]
 name: num div 0
@@ -234,7 +234,7 @@ name: 0 div inf
 kernel_name: div
 arg_in:  1 float 0
 arg_in:  2 float inf
-arg_out: 0 buffer float[1] 0
+arg_out: 0 buffer float[1] 0 tolerance 2
 
 [test]
 name: inf div 0
-- 
2.1.0



More information about the Piglit mailing list