diff options
| author | milk4sale <53350507+milk4sale@users.noreply.github.com> | 2026-11-24 15:56:30 -0600 |
|---|---|---|
| committer | milk4sale <53350507+milk4sale@users.noreply.github.com> | 2026-11-24 15:56:30 -0600 |
| commit | eba94cbe893de58b059a4ded35c498fea32a32d0 (patch) | |
| tree | 9980855f1b09bc9632815b39f029c6261f8a47a9 /docs/testing.md | |
| parent | 5f063e5812f9b12f5c2063c1b552fd975ae9e5e9 (diff) | |
| parent | 60c2ed910b90aef3cf5af1df2366a28a25afbe64 (diff) | |
Merge gpu-test/round-f64 into gpu-test/frexp-ldexp: cs_w32_round_f64's llvmpipe allowance
#1034 gained a commit: on llvmpipe, v_trunc_f64 and v_rndne_f64 may return what its float code gives a double on a
CPU without AVX-512. That fixture is in this stack and was this branch's red linux-gpu-tools (`word 164 (thread 10):
rndne of 0x3fe0000000000001 gave 0x0000000000000000`); cs_w32_frexp_ldexp passed in that run. No conflict.
Tested on this merge: `--filter cs_w32_` on llvmpipe (Mesa 26.2.6) natively and under
GALLIUM_OVERRIDE_CPU_CAPS=avx, 15 of 23 passed and 8 skipped in both, and 23 of 23 on the RTX 4070 Ti
(NVIDIA 620.70.06).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md index b0b3dda29..171a2ebd7 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -418,6 +418,19 @@ of -1. Rules broken one at a time each failed the test on both devices: `rndne` | |||
| 418 | 26), the low result word taken from the high one (word 8), and the fixture without its `v_cmpx` (word 30). Replacing | 418 | 26), the low result word taken from the high one (word 8), and the fixture without its `v_cmpx` (word 30). Replacing |
| 419 | `RoundEven` by GLSL `Round` changed nothing on either device: both send a tie to the even integer. | 419 | `RoundEven` by GLSL `Round` changed nothing on either device: both send a tie to the even integer. |
| 420 | 420 | ||
| 421 | llvmpipe gave those results on a CPU with AVX-512. On one without it, `Trunc` and `RoundEven` of a double go through | ||
| 422 | the code llvmpipe has for a float, because its double vectors are twice its native width (512 bits at the usual 256) | ||
| 423 | and it only has the exact rounding for a width the CPU has an extension for. There a magnitude above 2^24 comes back | ||
| 424 | unchanged (`v_trunc_f64` of 123456789.0625 is 123456789.0625) and `RoundEven` of a smaller one can give the other | ||
| 425 | neighbouring integer (1 for 1.5, 0 for the value just above 0.5): 48 of the 512 results, the same 48 with Mesa | ||
| 426 | 25.2.8 (LLVM 20.1.2) on a CI runner and with Mesa 26.2.6 under `GALLIUM_OVERRIDE_CPU_CAPS=avx`, which is how to see | ||
| 427 | it on a CPU that has AVX-512. `Floor` and `Ceil` are exact on that path. The CI's runners differ in this, so the | ||
| 428 | unchanged fixture passed or failed there by the machine it got. On llvmpipe the judge therefore lets `v_trunc_f64` | ||
| 429 | and `v_rndne_f64` return what that path can give, the source itself above 2^24 and either neighbouring integer | ||
| 430 | from 0.5 up to it, and nothing else (`ROUND_F64_FLOAT_PATH` in `check.py`); `v_floor_f64`, `v_ceil_f64`, the kept | ||
| 431 | pair and the inputs stay exact there, and no other device gets the allowance. `LP_NATIVE_VECTOR_WIDTH=128` makes | ||
| 432 | llvmpipe exact on a CPU with AVX. | ||
| 433 | |||
| 421 | ## Wave64 pixel, vertex and geometry shaders (`w64_graphics.py`) | 434 | ## Wave64 pixel, vertex and geometry shaders (`w64_graphics.py`) |
| 422 | 435 | ||
| 423 | Graphics stages have no emulation: on a 32-wide subgroup a wave64 VS, PS or GS runs as two 32-lane halves, and the | 436 | Graphics stages have no emulation: on a 32-wide subgroup a wave64 VS, PS or GS runs as two 32-lane halves, and the |