diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-12-01 07:52:21 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-12-01 07:52:21 -0500 |
| commit | dd4829ecfc259eebc0e42e3f72d2d61911ee010e (patch) | |
| tree | 607dabec0efef7e5fe71297e2c5f0b512b0859eb /docs/shader_validation.md | |
| parent | e12f7f9f9a82288ee0424be753d383eb3eb7843f (diff) | |
| parent | 1723dec94510d0aa3d99e795f0a656970c1f00e9 (diff) | |
Merge remote-tracking branch 'origin/main' into push/main-1130
# Conflicts:
# d3d12/docs/switches.md
Diffstat (limited to 'docs/shader_validation.md')
| -rw-r--r-- | docs/shader_validation.md | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/shader_validation.md b/docs/shader_validation.md index 4215afb6a..294648249 100644 --- a/docs/shader_validation.md +++ b/docs/shader_validation.md | |||
| @@ -1343,8 +1343,14 @@ mask or VCC) and `v_cmp_class_f32` e64, each read back with `v_cndmask_b32_e64`. | |||
| 1343 | `mul:2`/`mul:4`/`div:2` and `clamp`, with VGPR, SGPR, inline-constant and literal sources within the constant-bus | 1343 | `mul:2`/`mul:4`/`div:2` and `clamp`, with VGPR, SGPR, inline-constant and literal sources within the constant-bus |
| 1344 | limits. It runs one lane through `tests/semantic/spirv_mini_interp.py` against its own exact-rational ISA model, with | 1344 | limits. It runs one lane through `tests/semantic/spirv_mini_interp.py` against its own exact-rational ISA model, with |
| 1345 | the shrinking, skips and exit codes of `salu_diff.py`. Any NaN matches any NaN. It does not judge denormal operands | 1345 | the shrinking, skips and exit codes of `salu_diff.py`. Any NaN matches any NaN. It does not judge denormal operands |
| 1346 | or results, a computed NaN read as an integer, the clamp of a NaN or an output modifier that gives a zero: those | 1346 | or results, a computed NaN read as an integer, the clamp of a NaN, an output modifier that gives a zero, and the |
| 1347 | programs are counted as skips with the reason. | 1347 | class bits of a NaN whose quiet bit the model does not know (a `v_fmamk_f32` NaN, or a pass-through of one): those |
| 1348 | programs are counted as skips with the reason. The model knows a computed NaN's payload only for a quiet NaN; | ||
| 1349 | for `v_fmamk_f32` it assumes the quiet bit the arithmetic gives, while on gfx1036 under the game's MODE the | ||
| 1350 | hardware mostly returns the NaN source's word but sometimes quiets a signalling one (`f32_hw_s5.log`: signalling | ||
| 1351 | NaN passes unchanged 3 of 4, quieted 1 of 4), and a driver that quiets where the model does not changes the class | ||
| 1352 | bit a `v_cmp_class_f32` reads. That is why the fuzzed `sNaN -> v_fmamk_f32 -> v_cmp_class_f32` divergence was a | ||
| 1353 | model gap, not a translator bug: on both GPUs the translated bit matched what the hardware itself produces. | ||
| 1348 | 1354 | ||
| 1349 | `--oracle hw` runs the kernels under the MODE inferred for the game's shaders (IEEE off, f32 denormals flushed). With | 1355 | `--oracle hw` runs the kernels under the MODE inferred for the game's shaders (IEEE off, f32 denormals flushed). With |
| 1350 | the assembler's compute default (IEEE on) the hardware ignores `omod`: `v_fract_f32_e64 v4, -v16 mul:2` with v16 = 0.5 | 1356 | the assembler's compute default (IEEE on) the hardware ignores `omod`: `v_fract_f32_e64 v4, -v16 mul:2` with v16 = 0.5 |