Commit c8a39c7
authored
Execution Tests: Update tolerances for half precision trig functions (#7992)
This PR adjusts the tolerances for half precision trig functions with
DXIL vectors. The D3D spec only notes the tolerance range for fp32. That
fp32 error tolerance is not sufficient for halfs. After some further
discussion we opted to use 0.003 as the tolerance for most half
precision trig ops. For trig ops with a range that approaches infinity
in either direction, we instead use 2 ULP.
Fixes #79361 parent 54e0745 commit c8a39c7
1 file changed
+23
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
890 | 911 | | |
891 | | - | |
| 912 | + | |
892 | 913 | | |
893 | 914 | | |
894 | 915 | | |
| |||
0 commit comments