pixel_aot_dpp_extra: DPP8 quad read returns 0 on RX 9070 XT (32.0.32029.2010) #1041
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#1041
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@thepatrickworld on GitHub · 2026-11-23 22:37 UTC · original
pixel_aot_dpp_extra: DPP8 quad read returns 0 on RX 9070 XT (32.0.32029.2010)
pixel_aot_dpp_extra_hardwarefails on an RX 9070 XT at2d8a0ccwhilepixel_aot_dpp_extra_warppasses 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":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, casedpp_dotc_wrap.cso, channel 2:The body is
v_dot4c_i32_i8_dpp v14, v22, v21 dpp8:[1,2,3,0,5,6,7,4]withv22 = s44 = 0xf8f8f8f8,v21 = 0x01010101and accumulator0x80000010. The exact result isacc + (-32) = 0x7ffffff0; the observed0x80000010means the dot added zero. Channel 3 takes the same0xf8f8f8f8from 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:1730at2d8a0cc), which picks a lowering from the permutation:[1,0,3,2],[2,3,0,1],[3,2,1,0]→ oneQuadReadAcrossX/Y/Diagonal;QuadReadLaneAt;QuadReadLaneAtcalls plus a select chain overWaveGetLaneIndex() & 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) throughquad_perm:[1,0,3,2], i.e. theQuadReadAcrossXbranch, 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:
QuadReadLaneAt(uniform_literal, 1)QuadReadLaneAt+ select chain, uniform literalasuint(asfloat(params[0].w))then the chain (0xf8f8f8f8)The failure appears only with the full fixture shader, which samples a texture at the top of
mainand 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 theexecmasking the renderer applies. A run of the same case with-Gisdisabled, 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 at2d8a0cc, so it says nothing about this commit.Attribution
dpp_dot4c_i32_i8(tools/pixel_aot.py:827) and thedpp_dotc_wrapfixture (tests/pixel_aot_check.py:14893) are both onmainat2d8a0cc, 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 atf1c515df, which I ran. So this is amainproblem 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 XT1002:7550driver32.0.32029.2010, WARP10.0.26100.9711,debug_layer=unavailable, presetdev,-Gis -denorm preserve -T ps_6_2for the isolated shaders.AI-assisted; one machine, one adapter.
@R0Y00 on GitHub · 2026-11-23 22:41 UTC · original
The channel-2 result matches the RX 9060 XT regression in #1024. Its fix #1030 is now on main at
4bc40d05and passed three strict runs on the original RX 9060 XT. Could you run the unchangedpixel_aot_dpp_extra_hardwareandpixel_aot_dpp_extra_warpchecks 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 on GitHub · 2026-11-23 22:43 UTC · original
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 at4bc40d05.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 on GitHub · 2026-11-23 23:04 UTC · original
Retest at the commit you named.
1002:7550,backend=hardware, driver32.0.32029.2010,debug_layer=unavailable; Windows10.0.26200.9711fromver1.9.2602.17(21d28f727), presetdev,git rev-parse --short HEAD=4bc40d0,git status --porcelainreturning only untracked log files-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 selectionout/build/dev/offscreen_check.exe, SHA-256541be2ab6c748edd6f7c974ec99a038f84b6871c2a88597d2438306453d83accpixel_aot_dpp_extra_hardware, three consecutive runs: exit 0 in each of them, 4.88 s / 4.82 s / 4.87 s. Every draw reportspixels=4096 channels=16384 max_absolute_error=0, andfindstr /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, driver10.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.