diff options
| author | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-24 21:09:02 +0100 |
|---|---|---|
| committer | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-24 21:09:02 +0100 |
| commit | bc245e5046124941bbdc7bb5c3bd7c739da4e03e (patch) | |
| tree | 5b780fbcbc1dd131ee635980dfe3e996ac72928f /docs/shader_validation.md | |
| parent | 30450e0e96e1df700bbfa9505433c9b9940e8694 (diff) | |
| parent | 58be9cdf8df9a31bc7f6c068991f1aed381f7f4d (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.md | 3 |
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 |
| 1998 | game (IEEE 0, DX10_CLAMP 1, f32 denormals flushed, f16 denormals kept). It gives the same word for the float | 1998 | game (IEEE 0, DX10_CLAMP 1, f32 denormals flushed, f16 denormals kept). It gives the same word for the float |
| 1999 | constants in every `op_sel`/`op_sel_hi` combination, for the integer constants as f16 halves, for clamp on values that | 1999 | constants in every `op_sel`/`op_sel_hi` combination, for the integer constants as f16 halves, for clamp on values that |
| 2000 | are not NaN, and for the f16 denormals. It differs in five ways, none fixed here: | 2000 | are not NaN, and for the f16 denormals. It differs in five ways; item 2 is fixed since 2026-11-24: |
| 2001 | 2001 | ||
| 2002 | 1. **f16 omod.** The translator applies `mul:2`/`mul:4`/`div:2` to every f16 result. The hardware ignores them in this | 2002 | 1. **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. |
| 2008 | 2. **clamp of a NaN.** The interpreter refuses `FClamp` with a NaN operand, which GLSL.std.450 leaves undefined. The | 2008 | 2. **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`). | ||
| 2010 | 3. **Mix-op rounding.** The hardware rounds once (the section above). | 2011 | 3. **Mix-op rounding.** The hardware rounds once (the section above). |
| 2011 | 4. **f32 denormal operands of the mix ops.** They are not flushed with `denorm_mode_32 = 0`: `0x00000001`, `0x807fffff` | 2012 | 4. **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 |