pixel_aot_dpp_extra: DPP8 quad read returns 0 on RX 9070 XT (32.0.32029.2010) #1034

Closed
opened 2026-11-23 22:37:59 +00:00 by thepatrickworld · 3 comments
thepatrickworld commented 2026-11-23 22:37:59 +00:00 (Migrated from github.com)
Contributor

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


pixel_aot_dpp_extra: DPP8 quad read returns 0 on RX 9070 XT (32.0.32029.2010)

pixel_aot_dpp_extra_hardware fails on an RX 9070 XT at 2d8a0cc while pixel_aot_dpp_extra_warp passes on the same machine. The failing case reads a DPP8 source as zero, so the integer dot adds nothing and the accumulator comes back unchanged.

Measured

Fresh clone of 2d8a0cc, cmake --preset dev -DINTAKE_PYTHON=<existing venv>, cmake --build --preset dev, XBOX2WINDOWS_ADAPTER="AMD Radeon RX 9070 XT":

pixel_aot_dpp_extra_hardware .....***Failed 4.89 s
pixel_aot_dpp_extra_warp ......... Passed   2.62 s

Three consecutive runs, identical. The whole ^pixel_aot_ suite at that commit is 110 of 112, the other red being the known #958 comparison divergence.

The assertion is check_dpp_extra_subnormal_draw, case dpp_dotc_wrap.cso, channel 2:

channel=0 expected_bits=80000010 actual_bits=80000010
channel=1 expected_bits=80000010 actual_bits=80000010
channel=2 expected_bits=7ffffff0 actual_bits=80000010   <- accumulator unchanged
channel=3 expected_bits=7ffffff0 actual_bits=7ffffff0

The body is v_dot4c_i32_i8_dpp v14, v22, v21 dpp8:[1,2,3,0,5,6,7,4] with v22 = s44 = 0xf8f8f8f8, v21 = 0x01010101 and accumulator 0x80000010. The exact result is acc + (-32) = 0x7ffffff0; the observed 0x80000010 means the dot added zero. Channel 3 takes the same 0xf8f8f8f8 from the SGPR without a DPP read and is correct.

Where it sits in the emitted code

The DPP8 source is read through emit_quad_swizzle_u32 (tools/pixel_aot.py:1730 at 2d8a0cc), which picks a lowering from the permutation:

  • identity → the bits themselves, no intrinsic;
  • [1,0,3,2], [2,3,0,1], [3,2,1,0] → one QuadReadAcrossX / Y / Diagonal;
  • a single repeated lane → one QuadReadLaneAt;
  • anything else → four QuadReadLaneAt calls plus a select chain over WaveGetLaneIndex() & 3u.

dpp8:[1,2,3,0,...] takes the last branch. Replacing that chain with the operand itself (dpp29_s = dpp29_in, one line) makes the case pass on this adapter, so the value is correct and the read is what goes wrong.

Channels 0 and 1 of the same fixture read a uniform literal (0x08080808) through quad_perm:[1,0,3,2], i.e. the QuadReadAcrossX branch, and are correct. So a uniform operand alone is not enough to trigger it.

What I could not reduce

Every smaller shader I tried behaves correctly on both backends, so I am not able to name the mechanism:

shader RX 9070 XT WARP
one QuadReadLaneAt(uniform_literal, 1) correct correct
four QuadReadLaneAt + select chain, uniform literal correct correct
asuint(asfloat(params[0].w)) then the chain (0xf8f8f8f8) correct correct
the fixture shader with the chain replaced by its operand correct correct
the fixture shader unchanged reads 0 correct

The failure appears only with the full fixture shader, which samples a texture at the top of main and carries the harness prologue. Candidates I cannot separate with these measurements: the compiler treating a wave-uniform operand differently in this shader, or the read being moved relative to the exec masking the renderer applies. A run of the same case with -Gis disabled, and a disassembly of the emitted pixel shader for this case, would separate those; I have neither.

pixel_aot_dpp_f16_hardware, which exercises the same helper family through other permutations, passes here — but it lives in #419, not at 2d8a0cc, so it says nothing about this commit.

Attribution

dpp_dot4c_i32_i8 (tools/pixel_aot.py:827) and the dpp_dotc_wrap fixture (tests/pixel_aot_check.py:14893) are both on main at 2d8a0cc, so the merged commit fails on its own. #419 neither modifies the emitter nor the fixture (the diff is empty for both) and fails identically at f1c515df, which I ran. So this is a main problem that any rebase inherits, not a regression from either PR.

Environment

Windows 11 25H2 (26200.9711), MSVC 19.44, DXC 1.9.2602.17, AMD Radeon RX 9070 XT 1002:7550 driver 32.0.32029.2010, WARP 10.0.26100.9711, debug_layer=unavailable, preset dev, -Gis -denorm preserve -T ps_6_2 for the isolated shaders.

AI-assisted; one machine, one adapter.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6570271948 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1041). Originally posted by [thepatrickworld](https://github.com/thepatrickworld) on 2026-11-23T22:37:59Z. --- # pixel_aot_dpp_extra: DPP8 quad read returns 0 on RX 9070 XT (32.0.32029.2010) `pixel_aot_dpp_extra_hardware` fails on an RX 9070 XT at `2d8a0cc` while `pixel_aot_dpp_extra_warp` passes on the same machine. The failing case reads a DPP8 source as zero, so the integer dot adds nothing and the accumulator comes back unchanged. ## Measured Fresh clone of `2d8a0cc`, `cmake --preset dev -DINTAKE_PYTHON=<existing venv>`, `cmake --build --preset dev`, `XBOX2WINDOWS_ADAPTER="AMD Radeon RX 9070 XT"`: ``` pixel_aot_dpp_extra_hardware .....***Failed 4.89 s pixel_aot_dpp_extra_warp ......... Passed 2.62 s ``` Three consecutive runs, identical. The whole `^pixel_aot_` suite at that commit is 110 of 112, the other red being the known #958 comparison divergence. The assertion is `check_dpp_extra_subnormal_draw`, case `dpp_dotc_wrap.cso`, channel 2: ``` channel=0 expected_bits=80000010 actual_bits=80000010 channel=1 expected_bits=80000010 actual_bits=80000010 channel=2 expected_bits=7ffffff0 actual_bits=80000010 <- accumulator unchanged channel=3 expected_bits=7ffffff0 actual_bits=7ffffff0 ``` The body is `v_dot4c_i32_i8_dpp v14, v22, v21 dpp8:[1,2,3,0,5,6,7,4]` with `v22 = s44 = 0xf8f8f8f8`, `v21 = 0x01010101` and accumulator `0x80000010`. The exact result is `acc + (-32) = 0x7ffffff0`; the observed `0x80000010` means the dot added zero. Channel 3 takes the same `0xf8f8f8f8` from the SGPR without a DPP read and is correct. ## Where it sits in the emitted code The DPP8 source is read through `emit_quad_swizzle_u32` (`tools/pixel_aot.py:1730` at `2d8a0cc`), which picks a lowering from the permutation: - identity → the bits themselves, no intrinsic; - `[1,0,3,2]`, `[2,3,0,1]`, `[3,2,1,0]` → one `QuadReadAcrossX` / `Y` / `Diagonal`; - a single repeated lane → one `QuadReadLaneAt`; - anything else → **four `QuadReadLaneAt` calls plus a select chain over `WaveGetLaneIndex() & 3u`**. `dpp8:[1,2,3,0,...]` takes the last branch. Replacing that chain with the operand itself (`dpp29_s = dpp29_in`, one line) makes the case pass on this adapter, so the value is correct and the read is what goes wrong. Channels 0 and 1 of the same fixture read a uniform literal (`0x08080808`) through `quad_perm:[1,0,3,2]`, i.e. the `QuadReadAcrossX` branch, and are correct. So a uniform operand alone is not enough to trigger it. ## What I could not reduce Every smaller shader I tried behaves correctly on both backends, so I am not able to name the mechanism: | shader | RX 9070 XT | WARP | |---|---|---| | one `QuadReadLaneAt(uniform_literal, 1)` | correct | correct | | four `QuadReadLaneAt` + select chain, uniform literal | correct | correct | | `asuint(asfloat(params[0].w))` then the chain (`0xf8f8f8f8`) | correct | correct | | the fixture shader with the chain replaced by its operand | correct | correct | | the fixture shader unchanged | **reads 0** | correct | The failure appears only with the full fixture shader, which samples a texture at the top of `main` and carries the harness prologue. Candidates I cannot separate with these measurements: the compiler treating a wave-uniform operand differently in this shader, or the read being moved relative to the `exec` masking the renderer applies. A run of the same case with `-Gis` disabled, and a disassembly of the emitted pixel shader for this case, would separate those; I have neither. `pixel_aot_dpp_f16_hardware`, which exercises the same helper family through other permutations, passes here — but it lives in #419, not at `2d8a0cc`, so it says nothing about this commit. ## Attribution `dpp_dot4c_i32_i8` (`tools/pixel_aot.py:827`) and the `dpp_dotc_wrap` fixture (`tests/pixel_aot_check.py:14893`) are both on `main` at `2d8a0cc`, so the merged commit fails on its own. #419 neither modifies the emitter nor the fixture (the diff is empty for both) and fails identically at `f1c515df`, which I ran. So this is a `main` problem that any rebase inherits, not a regression from either PR. ## Environment Windows 11 25H2 (26200.9711), MSVC 19.44, DXC `1.9.2602.17`, AMD Radeon RX 9070 XT `1002:7550` driver `32.0.32029.2010`, WARP `10.0.26100.9711`, `debug_layer=unavailable`, preset `dev`, `-Gis -denorm preserve -T ps_6_2` for the isolated shaders. _AI-assisted; one machine, one adapter._
R0Y00 commented 2026-11-24 06:49:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T22:41:08Z.


The channel-2 result matches the RX 9060 XT regression in #1024. Its fix #1030 is now on main at 4bc40d05 and passed three strict runs on the original RX 9060 XT. Could you run the unchanged pixel_aot_dpp_extra_hardware and pixel_aot_dpp_extra_warp checks at that commit with your RX 9070 XT selected? Please include the reported backend, driver, exit or first mismatch, and keep the independent #958 comparison result separate. This issue can track the remaining RX 9070 XT verification.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116058133 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1041#issuecomment-7116058133). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T22:41:08Z. --- The channel-2 result matches the RX 9060 XT regression in #1024. Its fix #1030 is now on main at 4bc40d05 and passed three strict runs on the original RX 9060 XT. Could you run the unchanged `pixel_aot_dpp_extra_hardware` and `pixel_aot_dpp_extra_warp` checks at that commit with your RX 9070 XT selected? Please include the reported backend, driver, exit or first mismatch, and keep the independent #958 comparison result separate. This issue can track the remaining RX 9070 XT verification.
thepatrickworld commented 2026-11-24 06:49:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-23T22:43:01Z.


Closing this as a duplicate. #1024 reported the same failure twenty minutes earlier, on the same driver (32.0.32029.2010), with a reduced shader I could not build; it was diagnosed there and fixed by #1030, merged at 4bc40d05.

I filed this before reading that report, so the reproducer here adds nothing. What it did add is the third-adapter retest R0Y00 asked for, which I have posted on #1024: at d1ea7d5 (which carries the #1030 fix) the strict entry passes three of three runs on an RX 9070 XT, zero mismatches, full buffer compared, where its parent failed three of three on channel 2.

The attribution notes here still hold and are the only part worth keeping: the helper and the fixture came in with #423, not with #419, and both PRs fail identically before the fix.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116095658 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1041#issuecomment-7116095658). Originally posted by [thepatrickworld](https://github.com/thepatrickworld) on 2026-11-23T22:43:01Z. --- Closing this as a duplicate. #1024 reported the same failure twenty minutes earlier, on the same driver (`32.0.32029.2010`), with a reduced shader I could not build; it was diagnosed there and fixed by #1030, merged at `4bc40d05`. I filed this before reading that report, so the reproducer here adds nothing. What it did add is the third-adapter retest R0Y00 asked for, which I have posted on #1024: at `d1ea7d5` (which carries the #1030 fix) the strict entry passes three of three runs on an RX 9070 XT, zero mismatches, full buffer compared, where its parent failed three of three on channel 2. The attribution notes here still hold and are the only part worth keeping: the helper and the fixture came in with #423, not with #419, and both PRs fail identically before the fix.
thepatrickworld commented 2026-11-24 06:49:50 +00:00 (Migrated from github.com)
Author
Contributor

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


Retest at the commit you named.

  • Adapter: AMD Radeon RX 9070 XT 1002:7550, backend=hardware, driver 32.0.32029.2010, debug_layer=unavailable; Windows 10.0.26200.9711 from ver
  • DXC 1.9.2602.17 (21d28f727), preset dev, git rev-parse --short HEAD = 4bc40d0, git status --porcelain returning only untracked log files
  • configured with -DINTAKE_PYTHON=<venv>/python.exe; the entries ran as tests #393 and #485 with seven draws each, so the filter was not matching an empty selection
  • renderer out/build/dev/offscreen_check.exe, SHA-256 541be2ab6c748edd6f7c974ec99a038f84b6871c2a88597d2438306453d83acc

pixel_aot_dpp_extra_hardware, three consecutive runs: exit 0 in each of them, 4.88 s / 4.82 s / 4.87 s. Every draw reports pixels=4096 channels=16384 max_absolute_error=0, and findstr /c:"pixel_mismatch" over the three transcripts returns nothing.

pixel_aot_dpp_extra_warp: exit 0, 2.64 s. That one is the WARP entry — adapter=Microsoft Basic Render Driver vendor=1414 device=008c, driver 10.0.26100.9711 — not an RX 9070 XT data point.

The #958 comparison result stays separate, as you asked: different test, different fixture. On this adapter it still diverges on channel 0 at bit 18 under -denorm preserve, and issue #958 carries the reproducer, the DXIL-shape explanation and the patch. It has no bearing on #1030.

That is the RX 9070 XT data point for #1030 at 4bc40d05; the adapter matrix is elsewhere. Happy to keep it tracked here if you reopen the issue.

AI-assisted; one machine, one adapter.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116528454 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1041#issuecomment-7116528454). Originally posted by [thepatrickworld](https://github.com/thepatrickworld) on 2026-11-23T23:04:53Z. --- Retest at the commit you named. - Adapter: AMD Radeon RX 9070 XT `1002:7550`, `backend=hardware`, driver `32.0.32029.2010`, `debug_layer=unavailable`; Windows `10.0.26200.9711` from `ver` - DXC `1.9.2602.17` (`21d28f727`), preset `dev`, `git rev-parse --short HEAD` = `4bc40d0`, `git status --porcelain` returning only untracked log files - configured with `-DINTAKE_PYTHON=<venv>/python.exe`; the entries ran as tests #393 and #485 with seven draws each, so the filter was not matching an empty selection - renderer `out/build/dev/offscreen_check.exe`, SHA-256 `541be2ab6c748edd6f7c974ec99a038f84b6871c2a88597d2438306453d83acc` `pixel_aot_dpp_extra_hardware`, three consecutive runs: exit 0 in each of them, 4.88 s / 4.82 s / 4.87 s. Every draw reports `pixels=4096 channels=16384 max_absolute_error=0`, and `findstr /c:"pixel_mismatch"` over the three transcripts returns nothing. `pixel_aot_dpp_extra_warp`: exit 0, 2.64 s. That one is the WARP entry — `adapter=Microsoft Basic Render Driver vendor=1414 device=008c`, driver `10.0.26100.9711` — not an RX 9070 XT data point. The #958 comparison result stays separate, as you asked: different test, different fixture. On this adapter it still diverges on channel 0 at bit 18 under `-denorm preserve`, and issue #958 carries the reproducer, the DXIL-shape explanation and the patch. It has no bearing on #1030. That is the RX 9070 XT data point for #1030 at `4bc40d05`; the adapter matrix is elsewhere. Happy to keep it tracked here if you reopen the issue. _AI-assisted; one machine, one adapter._
Sign in to join this conversation.
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#1034
No description provided.