docs: record the RDNA 4 guarded-compare denormal mode switch #1037

Merged
lantiumBot merged 3 commits from upstream-pr/1044 into main 2026-11-23 23:43:01 +00:00
lantiumBot commented 2026-11-23 22:46:53 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-23T22:46:53Z.


Change

The focused docs patch requested on #958: the two-adapter shape table and the DXIL/RGA qualification, added to docs/experiments.md after the paragraphs on the harness's binary32 and binary16 denormal modes. Four paragraphs and one table:

  • Shape table. Seven one-compare preserve shaders and one ftz control, with the DXIL each compiles to around its fcmp oeq and the word read back on an RX 9060 XT, an RX 9070 XT and WARP. In these shaders the flushed word appears exactly where the fcmp result feeds an and i1, including the row whose two operands are both constant-buffer values.
  • RGA qualification. The driver compiler emits s_denorm_mode 14 / 15 around the guarded compare on gfx1200 and gfx1201. The text says that RGA compiles its own pipeline object, names which machine each listing and each draw comes from, and keeps the listings separate from the D3D12 readback.
  • Not established. Why mode 14 is selected, other consumers than and i1, the two-data-operand rows on other drivers, non-RDNA 4 Radeons, other vendors on these exact shapes, and one unexplained RX 9070 XT observation from the thread.

The comparison fixture, its strict preserve expectation and the translator are unchanged. This helps a contributor who meets the red pixel_aot_comparisons_hardware row on RDNA 4 find the measured cause and its limits in the experiment notes instead of reconstructing them from the issue thread.

Documentation only.

Refs #958

Verification

Branch at 139892a, rebased on main at 61e5a09. Windows 11 build 26300.10075, Python from out/pe-env.

.\out\pe-env\Scripts\python.exe -B tests\docs_links_check.py
.\out\pe-env\Scripts\python.exe -B tests\bidi_controls_check.py
.\out\pe-env\Scripts\python.exe -B tests\hardware_reports_check.py
git diff --check origin/main

After the rebase:

  • docs_links_check.py: Checked 13 Markdown files and 223 links., exit 0
  • bidi_controls_check.py: Checked 871 tracked source, script and build/CI files: no bidirectional controls., exit 0
  • hardware_reports_check.py: OK, exit 0
  • git diff --check origin/main: no output, exit 0

The "DXIL around the fcmp" column was recompiled for this patch with DXC 1.9.2602.17 (21d28f727), -Gis -denorm preserve -T ps_6_2 -E main (and -denorm ftz for the last row), from the shader template of the smallest-pair script:

Shader fcmp result feeds
plain, plain-runtime nothing (zext only)
guarded, guarded-runtime-and, guarded-max-subnormal, unrelated-guard and i1
guarded-runtime br i1 on the guard, fcmp into a phi

No draw and no RGA run was repeated for this patch.

Evidence and follow-up

Every adapter result is quoted from a comment on #958 and linked in the text:

I could not rerun the measurements of the other three reporters; they are recorded as published. Where a report does not state something the evidence rule asks for (the Windows build and debug-layer status of the RX 9070 XT shape run), the text says "not reported".

Assumptions that affect the reading: the meaning of s_denorm_mode 14 and 15 is the decode given in the gfx1201 comment and was not checked against AMD documentation; the full fixture shader was not disassembled, only its reduced form.

I claimed this patch on the issue and asked @thepatrickworld whether it was already in progress; there was no reply, so tell me if this overlaps and I will close it. The test-suite arrangement discussed on #958 is a separate change and is not part of this PR.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture. (No new fixture.)
  • I updated README/docs when a capability or build requirement changed. (Docs only; no capability or build requirement changes.)
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted (Claude Code - Fable 5.2). The RX 9060 XT measurements were run locally on that adapter.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6570400130 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1044). Originally posted by [lantiumBot](https://github.com/lantiumBot) on 2026-11-23T22:46:53Z. --- ## Change The focused docs patch requested on #958: the two-adapter shape table and the DXIL/RGA qualification, added to `docs/experiments.md` after the paragraphs on the harness's binary32 and binary16 denormal modes. Four paragraphs and one table: - **Shape table.** Seven one-compare `preserve` shaders and one `ftz` control, with the DXIL each compiles to around its `fcmp oeq` and the word read back on an RX 9060 XT, an RX 9070 XT and WARP. In these shaders the flushed word appears exactly where the `fcmp` result feeds an `and i1`, including the row whose two operands are both constant-buffer values. - **RGA qualification.** The driver compiler emits `s_denorm_mode 14` / `15` around the guarded compare on `gfx1200` and `gfx1201`. The text says that RGA compiles its own pipeline object, names which machine each listing and each draw comes from, and keeps the listings separate from the D3D12 readback. - **Not established.** Why mode 14 is selected, other consumers than `and i1`, the two-data-operand rows on other drivers, non-RDNA 4 Radeons, other vendors on these exact shapes, and one unexplained RX 9070 XT observation from the thread. The comparison fixture, its strict preserve expectation and the translator are unchanged. This helps a contributor who meets the red `pixel_aot_comparisons_hardware` row on RDNA 4 find the measured cause and its limits in the experiment notes instead of reconstructing them from the issue thread. Documentation only. Refs #958 ## Verification Branch at `139892a`, rebased on `main` at `61e5a09`. Windows 11 build 26300.10075, Python from `out/pe-env`. ```powershell .\out\pe-env\Scripts\python.exe -B tests\docs_links_check.py .\out\pe-env\Scripts\python.exe -B tests\bidi_controls_check.py .\out\pe-env\Scripts\python.exe -B tests\hardware_reports_check.py git diff --check origin/main ``` After the rebase: - `docs_links_check.py`: `Checked 13 Markdown files and 223 links.`, exit 0 - `bidi_controls_check.py`: `Checked 871 tracked source, script and build/CI files: no bidirectional controls.`, exit 0 - `hardware_reports_check.py`: `OK`, exit 0 - `git diff --check origin/main`: no output, exit 0 The "DXIL around the `fcmp`" column was recompiled for this patch with DXC 1.9.2602.17 (21d28f727), `-Gis -denorm preserve -T ps_6_2 -E main` (and `-denorm ftz` for the last row), from the shader template of the smallest-pair script: | Shader | `fcmp` result feeds | |---|---| | plain, plain-runtime | nothing (`zext` only) | | guarded, guarded-runtime-and, guarded-max-subnormal, unrelated-guard | `and i1` | | guarded-runtime | `br i1` on the guard, `fcmp` into a `phi` | No draw and no RGA run was repeated for this patch. ## Evidence and follow-up Every adapter result is quoted from a comment on #958 and linked in the text: - RX 9060 XT draws and `gfx1200` ISA: my own runs, [smallest pair](https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7112154514) and [shape draws and ISA](https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7114359860). - RX 9070 XT shape draws: `thepatrickworld`, [comment](https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7114901134). - `gfx1201` ISA and the rerun on two more drivers: `MasterDomino`, [ISA](https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7114124670) and [rerun](https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7113578912). - RTX 3070 and WARP: `roansystemlabs`, [comment](https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7111713224). I could not rerun the measurements of the other three reporters; they are recorded as published. Where a report does not state something the evidence rule asks for (the Windows build and debug-layer status of the RX 9070 XT shape run), the text says "not reported". Assumptions that affect the reading: the meaning of `s_denorm_mode` 14 and 15 is the decode given in the `gfx1201` comment and was not checked against AMD documentation; the full fixture shader was not disassembled, only its reduced form. I claimed this patch on the issue and asked @thepatrickworld whether it was already in progress; there was no reply, so tell me if this overlaps and I will close it. The test-suite arrangement discussed on #958 is a separate change and is not part of this PR. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [ ] I considered a negative control or failure case for a new fixture. (No new fixture.) - [x] I updated README/docs when a capability or build requirement changed. (Docs only; no capability or build requirement changes.) - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted (Claude Code - Fable 5.2). The RX 9060 XT measurements were run locally on that adapter.
upstream-sync closed this pull request 2026-11-24 06:46:00 +00:00
lantiumBot commented 2026-11-24 06:49:50 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-23T23:04:44Z.


@thepatrickworld the patch is up, with your four points and the RGA requirements folded in as a second commit (5969579):

  • the four diverging preserve rows and the three agreeing ones are named, with the ftz row;
  • the second draw is described as a uniformity check, not a repeat and not an IEEE check;
  • your provenance replaces "not reported": renderer built at 2d8a0cc, Windows build 26200.9711, debug layer unavailable, one run against three here;
  • gfx1200 and gfx1201 are attributed to separate reporters and drivers, the table's RX 9070 XT is stated to have no ISA measurement, and the RGA caveat has its own sentence (own blend, rasterizer and sample state; ISA and draws as separate evidence).

One thing I could not source: the WARP version for your second capture. The note keeps 10.0.26100.9711 and says it was reported with the first table; correct me if it changed.

AI-assisted (Claude Code - Fable 5.2).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116525528 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1044#issuecomment-7116525528). Originally posted by [lantiumBot](https://github.com/lantiumBot) on 2026-11-23T23:04:44Z. --- @thepatrickworld the patch is up, with your four points and the RGA requirements folded in as a second commit (`5969579`): - the four diverging preserve rows and the three agreeing ones are named, with the ftz row; - the second draw is described as a uniformity check, not a repeat and not an IEEE check; - your provenance replaces "not reported": renderer built at `2d8a0cc`, Windows build 26200.9711, debug layer unavailable, one run against three here; - `gfx1200` and `gfx1201` are attributed to separate reporters and drivers, the table's RX 9070 XT is stated to have no ISA measurement, and the RGA caveat has its own sentence (own blend, rasterizer and sample state; ISA and draws as separate evidence). One thing I could not source: the WARP version for your second capture. The note keeps 10.0.26100.9711 and says it was reported with the first table; correct me if it changed. AI-assisted (Claude Code - Fable 5.2).
thepatrickworld commented 2026-11-24 06:49:51 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-23T23:20:58Z.


To answer your question directly: 10.0.26100.9711 is right for both captures. The second one reports driver=10.0.26100.9711 on its own driver line, so the WARP build is the same in both; what differs between the two captures is the shader, not the backend.

I checked the PR table against the log rather than against my own prose. Every one of the eight RX 9070 XT cells matches row for row, and so does every WARP cell, including the ftz cell at 1 on both. Four rows diverge, three agree at 0 and one agrees at 1 — that is all eight. Words 1 to 3 are zero in every row; the raw per-row lines are in the comment the text already links, #issuecomment-7116318595. The second draw in the script runs per row on the same original shader, using the four observed words as the expectation for all 64 pixels, so it is a uniformity check and not a repeat — the note says that correctly.

Provenance matches what I reported: device 7550 / gfx1201, renderer at 2d8a0cc, Windows build 26200.9711, one run against your three, WARP 10.0.26100.9711, scripts unmodified. One addition for the DXIL column, since that is the load-bearing part: the DXC behind my rows is the Windows Kits 10.0.26100.0 binary, which reports itself as dxcompiler.dll 1.9.2602.17 (21d28f727) — the compiler version, not the SDK folder number, is what belongs beside the column. And the note is right that the table's RX 9070 XT has no ISA measurement; I never ran RGA.

One sentence to fix, under "Not established". It calls the four-channel-probe observation unexplained, and the comment it cites says the opposite: "That now has an explanation: the reduction changes the DXIL shape, and the shape is what the compiler acts on." That is also why the diagnostic stays in the original shader. The mechanism was not re-measured, so keep it as attribution rather than fact:

One RX 9070 XT observation was not re-measured: two shaders differing only in whether the literal is bound to a local gave opposite answers in a four-channel probe. The shape rule in the linked comment attributes that to the reduction changing the DXIL shape; the pair itself was not run again.

With that sentence changed, nothing else blocks it from my side.

AI-assisted; the RX 9070 XT rows are my runs on one machine.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116852962 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1044#issuecomment-7116852962). Originally posted by [thepatrickworld](https://github.com/thepatrickworld) on 2026-11-23T23:20:58Z. --- To answer your question directly: `10.0.26100.9711` is right for both captures. The second one reports `driver=10.0.26100.9711` on its own driver line, so the WARP build is the same in both; what differs between the two captures is the shader, not the backend. I checked the PR table against the log rather than against my own prose. Every one of the eight RX 9070 XT cells matches row for row, and so does every WARP cell, including the `ftz` cell at 1 on both. Four rows diverge, three agree at 0 and one agrees at 1 — that is all eight. Words 1 to 3 are zero in every row; the raw per-row lines are in the comment the text already links, `#issuecomment-7116318595`. The second draw in the script runs per row on the same original shader, using the four observed words as the expectation for all 64 pixels, so it is a uniformity check and not a repeat — the note says that correctly. Provenance matches what I reported: device `7550` / `gfx1201`, renderer at `2d8a0cc`, Windows build `26200.9711`, one run against your three, WARP `10.0.26100.9711`, scripts unmodified. One addition for the DXIL column, since that is the load-bearing part: the DXC behind my rows is the Windows Kits `10.0.26100.0` binary, which reports itself as `dxcompiler.dll 1.9.2602.17 (21d28f727)` — the compiler version, not the SDK folder number, is what belongs beside the column. And the note is right that the table's RX 9070 XT has no ISA measurement; I never ran RGA. One sentence to fix, under "Not established". It calls the four-channel-probe observation unexplained, and the comment it cites says the opposite: "That now has an explanation: the reduction changes the DXIL shape, and the shape is what the compiler acts on." That is also why the diagnostic stays in the original shader. The mechanism was not re-measured, so keep it as attribution rather than fact: > One RX 9070 XT observation was not re-measured: two shaders differing only in whether the literal is bound to a local gave opposite answers in a four-channel probe. The shape rule in the linked comment attributes that to the reduction changing the DXIL shape; the pair itself was not run again. With that sentence changed, nothing else blocks it from my side. _AI-assisted; the RX 9070 XT rows are my runs on one machine._
lantiumBot commented 2026-11-24 06:49:51 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-23T23:23:37Z.


Fixed in a third commit: the "Not established" sentence now uses your wording, as attribution rather than fact, and the WARP version is stated without the caveat since both captures report 10.0.26100.9711. The DXIL column already cites the compiler version 1.9.2602.17 rather than the SDK folder.

Thanks for checking the cells against the raw log.

AI-assisted (Claude Code - Fable 5.2).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116901985 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1044#issuecomment-7116901985). Originally posted by [lantiumBot](https://github.com/lantiumBot) on 2026-11-23T23:23:37Z. --- Fixed in a third commit: the "Not established" sentence now uses your wording, as attribution rather than fact, and the WARP version is stated without the caveat since both captures report 10.0.26100.9711. The DXIL column already cites the compiler version 1.9.2602.17 rather than the SDK folder. Thanks for checking the cells against the raw log. AI-assisted (Claude Code - Fable 5.2).
thepatrickworld commented 2026-11-24 06:49:52 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-23T23:37:31Z.


Both points landed as asked, and I checked the new wording rather than the commit message.

The observation now reads exactly as attribution rather than as a gap — "was not re-measured … the shape rule in the linked comment attributes that to the reduction changing the DXIL shape; the pair itself was not run again" — which is what the comment supports. The WARP provenance is cleaner too: "beside WARP 10.0.26100.9711, one run per backend" drops the ambiguity about which capture carried the version, and 10.0.26100.9711 is right for both.

Nothing else blocks it from my side; the table, the four diverging rows, the ftz cell and the run-count asymmetry all still match my log at this head.

One thing I would not claim yet: the two Windows jobs on d82d5b6c were still in progress when I looked, and both Linux jobs had passed. Since this is docs-only that is probably a formality, but the merge state reads blocked, so whoever merges should wait for their result rather than read this note as one.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117175358 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1044#issuecomment-7117175358). Originally posted by [thepatrickworld](https://github.com/thepatrickworld) on 2026-11-23T23:37:31Z. --- Both points landed as asked, and I checked the new wording rather than the commit message. The observation now reads exactly as attribution rather than as a gap — "was not re-measured … the shape rule in the linked comment attributes that to the reduction changing the DXIL shape; the pair itself was not run again" — which is what the comment supports. The WARP provenance is cleaner too: "beside WARP 10.0.26100.9711, one run per backend" drops the ambiguity about which capture carried the version, and 10.0.26100.9711 is right for both. Nothing else blocks it from my side; the table, the four diverging rows, the ftz cell and the run-count asymmetry all still match my log at this head. One thing I would not claim yet: the two Windows jobs on `d82d5b6c` were still in progress when I looked, and both Linux jobs had passed. Since this is docs-only that is probably a formality, but the merge state reads `blocked`, so whoever merges should wait for their result rather than read this note as one. _AI-assisted._
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1037
No description provided.