Repository navigation
Conversation
reload::changes read SDST only from the base encoding. For a VOPC SDWA compare with SD set, SDST lives in the extension dword, so the s[x:x+1] pair it writes was not marked and a later s_load_dword* whose address was made of that pair was elided as a repeat, returning stale data. lower_valu.rs already writes that pair; reload now marks it too (SDST 125 is the null destination and writes nothing). Part of xcl-dev#2464 (part 1). Assisted-by: Claude Code (Claude Sonnet 5.5) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
RX 9070 / Wine paired GPU readback confirms the changed-address case through the direct plain backend. Tested
Local fixture and source disclosure Both source copies receive the same local test The GPU fixture uses 1 KiB of synthetic memory: A=
Each case runs through HLSL/DXC, direct plain, and direct compact. All first reads are A, and the returned base pairs match the expected addresses on both revisions. Results
Three fresh processes per revision give the same 12 case/path results each. The local GPU test is 1 passed / 0 failed on head, versus 0 passed / 1 failed on main; main fails its final collected-result assertion only for the low/high direct-plain cases. The Existing Build: Not tested Wave32 or forced Wave64 split execution, native Windows, other GPUs, other instruction combinations, full workspace suite, retail workload, AI use OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the source delta, wrote the local GPU fixture, ran and independently verified the paired tests, and drafted this report. Publication authorized by the account owner. |
|
Independent Windows/NVIDIA (RTX 4060 Laptop 8 GB) full-workspace verification and diff review of Tested
Diff Review (
|
|
Regression run of Setup: RTX 3060 12 GB (NVIDIA 581.80), i9-14900KF, Windows 11 26200, release builds of main main: this PR: 100 % of main's frames, 103 % of its peak commit. One run each. Not tested: the suite on this head; whether the title reaches the code this PR changes in its first 60 s; AMD. AI use: Claude Code (Claude Opus 5.5) ran these runs on this machine and wrote this report. |
…xcl-dev#2818 (loop budget, wave32 mask kill, SDWA SDST, u32x2 routing)
|
Two contributors checked independently and found that this PR makes the same change as #2479: #1607, group D139. They suggest keeping #2479. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
Part of #2464 (part 1 only; parts 2 and 3 are claimed by oni-swr in that issue).
reload::changesreadSDSTonly from the base encoding. AVOPCSDWA compare withSD= 1 keeps itsSDSTin the extension dword, so thes[x:x+1]pair it writes was not marked. A followings_load_dword*whose address was made of that pair was then treated as a repeat and elided, returning the old value.What is in it
crates/xcl/src/gpu/dxil/reload.rs: when the instruction is an SDWA compare withSD= 1, mark theSDSTpair as written (125 is the null destination and writes nothing). Testan_sdwa_compare_into_an_sgpr_pair_ends_it: it fails without the fix (the load stays "available") and passes with it.Tested
cargo test -j 4 -p xcl --lib -- gpu::dxil::reload gpu::rdna2 --test-threads=4: 25 passed, 0 failed, 0 ignored.89f75c4c:cargo test -p xcl --lib -j 4 -- --test-threads=4: 1309 passed, 1 failed, 27 ignored; 6SKIPPEDlines, all sub-cases off16_programs_on_the_gpu/f32_programs_on_the_gpu(lower_dxil) refused for unsupported F16 ops. The failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(panic atfuzz_tests.rs:1171); it fails the same way onmainb49be183(run alone, 0 passed, 1 failed), so it is not caused by this PR. I did not run the full lib onmain.left: [(0, false), (2, true)],right: [(0, false), (2, false)]).Regression run
scripts/smoke.ps1 -Game <title folder> -Seconds 60, release builds, same title, RX 7800 XT, run one after the other on the same machine.mainisb49be183, this PR's head is89f75c4c(clean tree). The PR's run had 1449 frames, 93 % ofmain's 1563, with no device removal and no crash; its peak commit was 15673 MB against 15808 MB.main:This PR's head:
Not tested
cargo test --workspace(integration and e2e tests outside-p xcl --lib).SD= 1 followed by a load from its pair: the smoke is a regression check only, and the run was not checked for that.AI use
🤖 Generated with Claude Code