Repository navigation
Conversation
8ca5f81 to
14dec7f
Compare
Melow-code
left a comment
There was a problem hiding this comment.
Real bug — VGPR data+1 was read outside the declared operands for add/min/max/swap. The fix is minimal and correct: register index instead of value, resolved only in the cmpxchg and mskor branches. 13 programs unblocked (329→316 refused) is a credible sweep.
|
Independent split-wave64 check of 14dec7f on an RTX 3080 Ti (621.35), Windows 11 build 26300, Rust 1.99.1 MSVC debug, DXC 1.8.2502.11. I extended the bundled buffer, global, and LDS atomic fixture to run a 64-lane program on two hardware waves. The shader enabled 21 lanes across both halves. Per-lane DXIL matched the HLSL and CPU expectations for all 128 memory words and 448 destination values. The 43 inactive lanes retained their initial memory and register values, and both EXEC words restored correctly. With only main’s memory lowering restored, per-lane translation refused
AI-assisted. Codex (GPT-6 family, exact variant unavailable) extended and ran the test and drafted this report. |
14dec7f to
b6e884f
Compare
|
Remaining before merge: one independent AMD GPU pass on the current head |
|
Thanks, @raylitebull. An AMD pass on the current head Please post the passed, failed and ignored counts, any SKIPPED lines, and your GPU, driver and DXC version. We will post the NVIDIA run on AI use: Claude Code (Claude Opus 5.5) wrote this. |
|
NVIDIA run on the exact head
The AMD pass is still open; the request is above. AI use: OpenAI Codex (GPT-6) ran the tests and summarized the logs; Claude Code (Claude Opus 5.5) wrote this comment. |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
The 32-bit buffer, flat and LDS lowering read a second VGPR before selecting the atomic operation. For add, min, max and exchange this register is outside the instruction's declared operands. The per-lane bridge correctly rejected that extra read. Resolve the extra register only for compare-exchange and masked OR. The GPU test checks return values and memory against HLSL. A four-window sweep accepts 329 of 2689 compute programs, up from 316.
b6e884f to
39601b4
Compare
|
@DavidM1911 Rebased onto The one conflict was in the atomic lowering. Tested on the rebased head:
Not tested: AMD. AI use: a Codex (GPT-6.2) helper did the rebase and ran the suite; Claude Code (Claude Opus 5.5) pushed it and wrote this. |
Part of #1269. The 32-bit buffer, flat and LDS atomic lowering read a second VGPR before selecting the operation. For add, min, max and exchange that register is not one of the instruction's operands, so the per-lane bridge correctly refused the extra read and the whole program fell back to the HLSL form.
What is in it
crates/xcl/src/gpu/dxil/lower_mem.rs: the second register is resolved only for compare-exchange and masked OR, the two operations that use it.crates/xcl/src/gpu/recomp/lower_dxil.rs: a GPU test that checks the return values and memory of the per-lane atomics against HLSL.Tested
39601b4(basemaincbc296a, after Recompiler: take native compute mask branches across the whole wave #1910):cargo test --release -p xcl --lib, unfiltered with GPU tests included, 1,099 passed, 0 failed, 26 ignored, with 23 skip notices (20 for no native wave64, 3 for unsupported wave32 FP). The atomics GPU test and Recompiler: take native compute mask branches across the whole wave #1910's native-wave branch test both ran on the card.8ca5f81:cargo test --offline --release --workspace -- --test-threads=4gave 960 passed, 0 failed, 43 ignored. A native compute survey with four switch-selected memory windows put 329 of 2,689 programs in the per-lane form, up from 316 onmainc4d37be.Regression run
scripts/smoke.ps1, the same retail title for 60 s each, one after the other on the machine under Tested, release builds from clean trees.maincbc296a(this PR's base):this PR,
39601b4:PR vs
main: 1287 / 1113 frames (116 %), peak commit 26844 / 24774 MB (108 %); device removals 0 and crashes 0 on the PR run, 0 and 0 onmain.Both runs are on the rebased head and its new base.
main's run was still loading over its last 6 s (0, 2 and 0 presents), so the difference in frames is load timing, not this change.Not tested
AI use
OpenAI Codex (GPT-6.2) wrote the change and the test and ran the suite and the pack count. Claude Code (Claude Opus 5.5) wrote this description and opened the PR.
🤖 Generated with Claude Code