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:
authorDadaCap <167002618+DadaCap@users.noreply.github.com>2026-11-24 21:09:02 +0100
committerDadaCap <167002618+DadaCap@users.noreply.github.com>2026-11-24 21:09:02 +0100
commitbc245e5046124941bbdc7bb5c3bd7c739da4e03e (patch)
tree5b780fbcbc1dd131ee635980dfe3e996ac72928f /docs/shader_validation.md
parent30450e0e96e1df700bbfa9505433c9b9940e8694 (diff)
parent58be9cdf8df9a31bc7f6c068991f1aed381f7f4d (diff)
Merge remote-tracking branch 'origin/main' into vcc-tuple-resync
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/shader_validation.md')
-rw-r--r--docs/shader_validation.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/shader_validation.md b/docs/shader_validation.md
index 381b11642..ac33debfa 100644
--- a/docs/shader_validation.md
+++ b/docs/shader_validation.md
@@ -1997,7 +1997,7 @@ the two wave sizes agree on every word. `tools/fma_mix_probe.py --oracle hw` (th
1997`tests/semantic/spirv_mini_interp.py`, then compared with the hardware under the MODE the translator assumes for the 1997`tests/semantic/spirv_mini_interp.py`, then compared with the hardware under the MODE the translator assumes for the
1998game (IEEE 0, DX10_CLAMP 1, f32 denormals flushed, f16 denormals kept). It gives the same word for the float 1998game (IEEE 0, DX10_CLAMP 1, f32 denormals flushed, f16 denormals kept). It gives the same word for the float
1999constants in every `op_sel`/`op_sel_hi` combination, for the integer constants as f16 halves, for clamp on values that 1999constants in every `op_sel`/`op_sel_hi` combination, for the integer constants as f16 halves, for clamp on values that
2000are not NaN, and for the f16 denormals. It differs in five ways, none fixed here: 2000are not NaN, and for the f16 denormals. It differs in five ways; item 2 is fixed since 2026-11-24:
2001 2001
20021. **f16 omod.** The translator applies `mul:2`/`mul:4`/`div:2` to every f16 result. The hardware ignores them in this 20021. **f16 omod.** The translator applies `mul:2`/`mul:4`/`div:2` to every f16 result. The hardware ignores them in this
2003 MODE (24 words: `v_add/mul/fma/fmac/exp/rcp_f16`). `v_cvt_f16_f32` drops its omod and clamp today, so its omod 2003 MODE (24 words: `v_add/mul/fma/fmac/exp/rcp_f16`). `v_cvt_f16_f32` drops its omod and clamp today, so its omod
@@ -2007,6 +2007,7 @@ are not NaN, and for the f16 denormals. It differs in five ways, none fixed here
2007 when "output denormals" are off, the `SIFoldOperands.cpp` comment quoted above). That count needs the game files. 2007 when "output denormals" are off, the `SIFoldOperands.cpp` comment quoted above). That count needs the game files.
20082. **clamp of a NaN.** The interpreter refuses `FClamp` with a NaN operand, which GLSL.std.450 leaves undefined. The 20082. **clamp of a NaN.** The interpreter refuses `FClamp` with a NaN operand, which GLSL.std.450 leaves undefined. The
2009 hardware gives +0 with DX10_CLAMP 1, for `v_fmac_f16`, `v_fma_mixlo_f16` and `v_fma_mix_f32` alike (SHADER-186). 2009 hardware gives +0 with DX10_CLAMP 1, for `v_fmac_f16`, `v_fma_mixlo_f16` and `v_fma_mix_f32` alike (SHADER-186).
2010 **Fixed since 2026-11-24:** `Gen.clamp_mods` selects +0 for a NaN before `FClamp` (`tests/semantic/test_vop3_clamp_nan.py`).
20103. **Mix-op rounding.** The hardware rounds once (the section above). 20113. **Mix-op rounding.** The hardware rounds once (the section above).
20114. **f32 denormal operands of the mix ops.** They are not flushed with `denorm_mode_32 = 0`: `0x00000001`, `0x807fffff` 20124. **f32 denormal operands of the mix ops.** They are not flushed with `denorm_mode_32 = 0`: `0x00000001`, `0x807fffff`
2012 and the integer constants `1` and `64` used as f32 give the denormal, where the hardware gives a zero of its sign 2013 and the integer constants `1` and `64` used as f32 give the denormal, where the hardware gives a zero of its sign