diff options
| author | iurysf <98192149+iurysf@users.noreply.github.com> | 2026-11-23 01:18:15 -0300 |
|---|---|---|
| committer | iurysf <98192149+iurysf@users.noreply.github.com> | 2026-11-23 01:18:15 -0300 |
| commit | e1e81f8a24e22c71be10db1cfeaf0cdfd59cdb94 (patch) | |
| tree | 22f9b72b80f8969c05c8117cbd3044a905610d12 /docs | |
| parent | 7bd5f01dd166dfcf80f4f96bb678cccc5918a7bc (diff) | |
FUZZ-55: Drop div-fixup-nan-s0 from KNOWN_DIVERGENCES now that #2477 is on main
#2477 (48a1a98b) makes the translator return signed infinity for v_div_fixup_f64
with NaN(S0), as measured on RDNA2 gfx1036, which is what the reference already
modelled. The case is no longer a known divergence (as TreXito's review of #4536
observed: two tests fail on main because they expect the old divergence).
- Remove the div-fixup-nan-s0 entry, its reference skip and its dedicated --known
program; NaN(S0) programs are compared like any other.
- Add a positive test that the reference and the translator give +-inf for qNaN,
-qNaN and sNaN with both output signs.
- Rework the two --known tests so they no longer depend on div_fixup: the three
remaining forms are excluded with a reason by default, run with --known, and a
planted clamp-only translator error exits 1 and prints the shrunk program.
- docs/shader_validation.md no longer lists the div_fixup case.
Same change as 41525870 (prepared for #4586, which #2477 made redundant).
AI-assisted (OpenBot team).
Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/shader_validation.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/shader_validation.md b/docs/shader_validation.md index 5eb987cb5..f941064be 100644 --- a/docs/shader_validation.md +++ b/docs/shader_validation.md | |||
| @@ -1231,10 +1231,11 @@ implementation-defined for binary64; the GPU oracle therefore counts `v_rsq_f64` | |||
| 1231 | 1231 | ||
| 1232 | Known divergence probes are excluded and counted by default, then reinserted with `--known`: binary64 output modifiers | 1232 | Known divergence probes are excluded and counted by default, then reinserted with `--known`: binary64 output modifiers |
| 1233 | (SHADER-721), binary64 `OpFNegate`/`FAbs` that the CPU interpreter rounds through binary32 (TEST-912, #4172), | 1233 | (SHADER-721), binary64 `OpFNegate`/`FAbs` that the CPU interpreter rounds through binary32 (TEST-912, #4172), |
| 1234 | driver-dependent NaN or signed-zero clamp results, and `v_div_fixup_f64` with a NaN `S0` and an ordinary finite | 1234 | and driver-dependent NaN or signed-zero clamp results. The CPU translator reproduces none of these today, so |
| 1235 | division. The latter follows the RDNA2 ISA reference (`NaN(S0) -> signed infinity`), while the current translator | 1235 | `--known` is clean there; it can still return 1 where one reproduces (the RTX 4070 `--oracle gpu` run does for the |
| 1236 | preserves the NaN payload. Therefore `--known` can intentionally return 1 when this known mismatch is reproduced; | 1236 | clamp form), and the minimized case is printed. `v_div_fixup_f64` with a NaN `S0` is not a known divergence: it gives |
| 1237 | the minimized case is printed. `--oracle gpu` translates the same | 1237 | signed infinity, measured on RDNA2 `gfx1036` (TEST-983; the translator has it since #2477), and is compared like any other case. |
| 1238 | `--oracle gpu` translates the same | ||
| 1238 | fragment shader and runs it through `runtime/build/vk_harness`, comparing the raw RGBA32F output words. It assembles | 1239 | fragment shader and runs it through `runtime/build/vk_harness`, comparing the raw RGBA32F output words. It assembles |
| 1239 | the fragment module with `spirv-as` and the full-screen vertex shader with the Vulkan SDK's `glslc`; use `--exe PATH` | 1240 | the fragment module with `spirv-as` and the full-screen vertex shader with the Vulkan SDK's `glslc`; use `--exe PATH` |
| 1240 | to select another `vk_harness`. It exits 77 if the executable, SDK tools, Vulkan device or required `shaderFloat64` | 1241 | to select another `vk_harness`. It exits 77 if the executable, SDK tools, Vulkan device or required `shaderFloat64` |