tests: Fix cl test program@execute@builtin@builtin-float-degrees-1.0.generated issue...
commit62938a9bcb439f54f23b558b1496e75941962696
authorjiajia Qian <jiajia.qian@nxp.com>
Thu, 11 Jan 2024 08:49:03 +0000 (11 16:49 +0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 5 Mar 2024 00:39:49 +0000 (5 00:39 +0000)
tree2fa3925a9603630d7702aa619c25d040cff2d181
parent22eaf6a91cfd57f7bb3df4e5068c2ac1472d4ec1
tests: Fix cl test program@execute@builtin@builtin-float-degrees-1.0.generated issue about tolerance.

Initially, there is no tolerance for degrees operations set in gen_cl_common_builtins.py, which will cause the test to fail.

According to OpenCL related standards, the error value of the result calculated by the degrees function can be within the range of 2ulp.

Modified the tolerance of degrees function in the gen_cl_common_builtins.py file.

Signed-off-by: jiajia Qian <jiajia.qian@nxp.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/860>
generated_tests/gen_cl_common_builtins.py