diff options
| author | pmilewsskiedu-gif <266377087+pmilewsskiedu-gif@users.noreply.github.com> | 2026-11-22 15:01:34 -0500 |
|---|---|---|
| committer | pmilewsskiedu-gif <266377087+pmilewsskiedu-gif@users.noreply.github.com> | 2026-11-22 15:03:13 -0500 |
| commit | c82fbe37d1f4823e4867aa7cc2f873046fccde62 (patch) | |
| tree | c5e4a7821ccfc040d0c7e21c031b17b2f5ea4d93 /docs | |
| parent | f847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff) | |
Shader: flush legacy f32 multiply operands and results in default MODE
Match RDNA2 mode-0 denormal semantics and legacy zero override; flush product before output scaling and normalize modifier zeros. Add synthetic semantic/GPU fixtures and documentation. AI-assisted (GPT-6).
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/shader_validation.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/shader_validation.md b/docs/shader_validation.md index 3fe06f09f..5a8376e7e 100644 --- a/docs/shader_validation.md +++ b/docs/shader_validation.md | |||
| @@ -1149,6 +1149,15 @@ python -I tools/fmisc_diff.py --programs 3000 --seed 11 --max-ops 8 | |||
| 1149 | python -I tools/fmisc_diff.py --oracle hw --programs 500 --seed 1 | 1149 | python -I tools/fmisc_diff.py --oracle hw --programs 500 --seed 1 |
| 1150 | python -I tests/test_fmisc_diff.py | 1150 | python -I tests/test_fmisc_diff.py |
| 1151 | ``` | 1151 | ``` |
| 1152 | **Default-mode DX9 multiply regression.** `v_mul_legacy_f32` now explicitly flushes each f32 operand before the | ||
| 1153 | DX9 `0 * anything => +0` override, and flushes the nonzero product before its VOP3 output modifier. The output is | ||
| 1154 | flushed again before the active omod's `-0 => +0` rule. Previously it emitted an unguarded `OpFMul`, so on a Vulkan | ||
| 1155 | driver that keeps f32 denormals, a subnormal input times a large number or an underflowing normal product yielded | ||
| 1156 | nonzero results even though the inferred RDNA2 `MODE.denorm_mode_32 = 0` requires zero. The standalone semantic | ||
| 1157 | test `test_valu_mul_legacy_denorm.py` checks the exact bit patterns and the two GPU fixtures | ||
| 1158 | `ps_mul_legacy_denorm` / `ps_mul_legacy_denorm_mods` exercise signed input/output FTZ, legacy zero override, and | ||
| 1159 | output scaling. This is a translation for the **inferred game MODE**, not a claim of correctly handling dynamic | ||
| 1160 | denormal-preserving or IEEE modes; native gfx1013 measurements of these new fixtures were not available. | ||
| 1152 | 1161 | ||
| 1153 | 1162 | ||
| 1154 | ### f16 transcendentals on the hardware (`tools/f16_trans_sweep.py`, FUZZ-29) | 1163 | ### f16 transcendentals on the hardware (`tools/f16_trans_sweep.py`, FUZZ-29) |