upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/shader_validation.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/shader_validation.md')
-rw-r--r--docs/shader_validation.md10
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
1344limits. It runs one lane through `tests/semantic/spirv_mini_interp.py` against its own exact-rational ISA model, with 1344limits. It runs one lane through `tests/semantic/spirv_mini_interp.py` against its own exact-rational ISA model, with
1345the shrinking, skips and exit codes of `salu_diff.py`. Any NaN matches any NaN. It does not judge denormal operands 1345the shrinking, skips and exit codes of `salu_diff.py`. Any NaN matches any NaN. It does not judge denormal operands
1346or results, a computed NaN read as an integer, the clamp of a NaN or an output modifier that gives a zero: those 1346or results, a computed NaN read as an integer, the clamp of a NaN, an output modifier that gives a zero, and the
1347programs are counted as skips with the reason. 1347class bits of a NaN whose quiet bit the model does not know (a `v_fmamk_f32` NaN, or a pass-through of one): those
1348programs are counted as skips with the reason. The model knows a computed NaN's payload only for a quiet NaN;
1349for `v_fmamk_f32` it assumes the quiet bit the arithmetic gives, while on gfx1036 under the game's MODE the
1350hardware mostly returns the NaN source's word but sometimes quiets a signalling one (`f32_hw_s5.log`: signalling
1351NaN passes unchanged 3 of 4, quieted 1 of 4), and a driver that quiets where the model does not changes the class
1352bit a `v_cmp_class_f32` reads. That is why the fuzzed `sNaN -> v_fmamk_f32 -> v_cmp_class_f32` divergence was a
1353model 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
1350the assembler's compute default (IEEE on) the hardware ignores `omod`: `v_fract_f32_e64 v4, -v16 mul:2` with v16 = 0.5 1356the assembler's compute default (IEEE on) the hardware ignores `omod`: `v_fract_f32_e64 v4, -v16 mul:2` with v16 = 0.5