Repository navigation
Conversation
…r PRELUDE::rla()" (xcl-dev#2247) This reverts commit 5081dc8 (merged in 2898511 / PR xcl-dev#2247), restoring the exact pre-xcl-dev#2247 `PRELUDE::rla()` implementation in `crates/xcl/src/gpu/recomp/emit.rs`. In xcl-dev#1452#issuecomment-7205972665, @SergeAx bisected 140 merges on `main` (`568e7db..b49be18`) on an RTX 5080 (driver 621.14, Windows 10) and isolated xcl-dev#2247 (`2898511`) as the first commit introducing `0x887a0005` (`DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT`) during retail world load (`f9f6d49` / xcl-dev#2257: 0/4 removals; `2898511` / xcl-dev#2247: bad). Confirmation on `b49be18` + xcl-dev#1435 hit 6/7 device removals with `5081dc8b` present versus 0/5 removals with only `5081dc8b` reverted. Note: `5081dc8b` is also an ancestor of `nvidia-dev` (`ecc0bb57`) and `amd-dev` (`bf7c82ee`). Reverts xcl-dev#2247 Related to xcl-dev#1452 Assisted-by: Google Antigravity (Gemini 4 Neon)
|
Tested Clean PR head With
All four passed on both revisions, with zero failures, ignores or skips. The derivative and loop cases reported no pixel mismatches. The ballot/quad test matched the expected layout across 1,024 pixels and ballot values in the tested helper neighbors. The parent-only Not tested Retail crash, performance, native wave64 hardware, full workspace suite and retail smoke. AI use T3 Code / Codex ( |
|
AMD and RTX 3060 run, moved here since #2930 closed as a duplicate. Its diff is byte-identical to this one ( Tested: pass, the diff applied on
On both cards the only differences are the three #2247 tests the revert removes. The SKIPPED sets are the same. This doesn't touch the Blackwell world-load removal; I have no RTX 50 card. Not tested: a title run, an RTX 50 card, Windows 10, release, Intel. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
Testing this now on |
|
Test report: Tested
Not tested
Also on
AI use: Claude Code (Claude Opus 5.5) built the tree, ran the title unattended, read the logs and wrote this report. |
|
Result on
So with the revert the title lived more than twice as long in both runs, but one of the two still lost the device (again without DRED breadcrumbs, see #2920, and without an Aftermath dump). Two runs a side is thin: it agrees with the bisect in #1452 in direction, and it shows that on this card the revert alone is not the whole story. In the longer runs the next limit is commit: 45.6 GB at 352 s and 51.7 GB at 265 s, against about 40 GB at 150 s in the runs without it. I can add runs if a larger sample helps the decision here; say how many. Numbers are from the logs of these runs. AI use: Claude Code (Claude Fable 5.2) ran the tests and wrote this. |
|
More runs, same setup as the table above: without the revert a third run lost the device at 146 s (so 147, 156, 146 s). With the revert, two further runs on |
|
Tested on AMD / Linux: The head as it is (base Tests (
Not tested
AI use
|
|
Update to my test above, relevant to whether this revert is needed: on my card the removal was the shader-heap limit (#2403), not #2247. After the NVIDIA profile for
With DRED working (#2967) every one of the 1 GiB removals read the same: device state 0, no page fault, no list in flight, and the amount of pipeline code built at the removal was the same whether it came after 145 s or 588 s (details on #2688 and #2403). So my earlier "the revert doubles the time to the loss" is better explained by the revert changing how fast pipeline code accumulates than by #2247 causing a fault. I have no evidence on this machine that #2247 is wrong. Two things for whoever decides on the merge: the revert undoes #2247's removal of a local array and branches in the pixel shaders that call Numbers are from the logs of these runs. AI use: Claude Code (Claude Fable 5.2) ran the tests and wrote this; a Claude Sonnet 5.5 sub-agent compared the revert with the original commit (it is exact). |
|
Merge status (I have been asked to prepare merges of PRs with several independent tests; the bar is: no open critical finding or performance regression, a fresh check of the merge result against today's Not proposing this one for merging at the moment, for the reasons in my comment above: on the machine where I measured it, the removal turned out to be the shader-heap limit and is gone without the revert, and the revert undoes an optimisation in most pixel shaders without a measurement of the cost. The revert itself is exact (compared line by line with AI use: Claude Code (Claude Fable 5.2). |
|
Thanks @throny for running Agreed — holding AI-assisted response ( |
|
Retest on the RTX 5080 with a 2 GiB shader heap: no device removal in 7 of 7 runs of the bisect's bad tree without this revert. So here, too, the removal was the #2403 limit, not #2247. As @throny suggested above. Setup: the same machine, title and runs as in the bisect.
A correction to my
Not tested:
AI use: Claude Code (Claude Opus 5.5) built the trees, read #2590's NVAPI code against NVIDIA's headers, ran the runs (unattended; I ran the elevated install), read the logs and wrote this. |
|
Ran the recompiler suite at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. All 398 tests pass with 20 ignored. There were 23 Not tested: a retail world-load run, a paired smoke run, the full workspace suite, release profile, AMD and Intel GPUs, native wave64 hosts, Wine, game data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
|
main still has the #2247 AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Clean revert of #2247 (
5081dc8b6e22fc74f6fe7d31de333182e8f7ec92, merged in2898511), restoring the exact pre-#2247PRELUDE::rla()implementation incrates/xcl/src/gpu/recomp/emit.rs.Reverts #2247
Related to #1452
In #1452#issuecomment-7205972665,
@SergeAxbisected 140 first-parent merges onmain(568e7db..b49be18) on an RTX 5080 (NVIDIA driver 621.14, Windows 10 22H2) and isolated #2247 (2898511) as the first commit introducing0x887a0005(DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT) during retail world load (f9f6d49/ #2257:0/4removals;2898511/ #2247: removed). Confirmation onb49be18+ #1435 hit6/7device removals with5081dc8bpresent versus0/5removals with only5081dc8breverted.Note on branch ancestry:
5081dc8bis also an ancestor oforigin/nvidia-dev(ecc0bb57) andorigin/amd-dev(bf7c82ee), so maintainers may want to cherry-pick or merge this revert into those branches once landed onmain.What is in it
git revert 5081dc8b6e22fc74f6fe7d31de333182e8f7ec92(crates/xcl/src/gpu/recomp/emit.rs,+6/-127lines):xcl_lv[min(h >> 5, 3u)], scalar?:forq/r, and theif (nib != 0u && ...)/if ((l >> 2) == ...)guards in pixel-shaderPRELUDE::rla().#2247-specific branchless-rla()unit tests added by5081dc8b, leaving all otheremit::tests::andgpu::recomp::tests intact.Tested
rustc 1.100.0(stable-x86_64-pc-windows-msvc), DXC1.9.2609.5, debug (WARP) and release (RTX 4060).cargo clippy --all-targets -- -A clippy::approx_constant: exit 0, 0 new warnings and 0 errors incrates/xcl/src/gpu/recomp/emit.rs.XCL_WARP=1):cargo test -p xcl --lib -- gpu::recomp::emit::tests:: --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored (0 skipped).cargo test -p xcl --lib -- gpu::recomp:: --test-threads=4: 398 passed, 0 failed, 20 ignored (23 expectedSKIPPEDnotices: 20 wave64, 3 per-lane refusals).cargo test --release -p xcl --lib -- gpu::recomp::emit::tests:: --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored (0 skipped).cargo test --release -p xcl --lib -- gpu::recomp:: --test-threads=4: 398 passed, 0 failed, 20 ignored (23 expectedSKIPPEDnotices: 20 wave64, 3 per-lane refusals).cargo build --release --workspace && cargo test --release --workspace --no-fail-fast -- --test-threads=4: 1439 passed, 0 failed, 47 ignored across 37 top-level test targets (29 expectedSKIPPEDnotices: 21 wave64, 3 per-lane refusals, 3 D3D12 debug layer, 1 heap-window fallback, 1 Windows driver-cache toggle).git merge-tree --write-tree origin/main HEADexits0against liveorigin/main(8b957bec).Regression run
Paired quiet 60 s release runs (
scripts/smoke.ps1 -Seconds 60,XCL_NETWORK=0, default flags, RTX 4060 8 GB, driver 621.14) on exact parent onmain(e120925e, ancestor of8b957bec) and revert head (a87d3c2a):Exact parent on
main(e120925e, ancestor of8b957bec):PR (
a87d3c2a):Not tested
@SergeAx's RTX 5080 (Blackwell, Win10 22H2) world-load0x887a0005removal from Retail game (retail title, Series X build): GPU device removal after Wait64BitValueX waits with no producer; also watchdog stalls on slow compute pipeline builds #1452 (#1452#issuecomment-7205972665already verified0/5removals with5081dc8breverted vs6/7without it).d3d12SDKLayers.dllnot installed), and Linux / Wine / vkd3d-proton.AI use
5081dc8bbranch ancestry (main,nvidia-dev,amd-dev), prepared the cleangit revertcommit offe120925e, ran clippy, Debug WARP + Release RTX 4060 unit/recompiler/workspace suites and paired 60 s retail smokes on the hardware above, and drafted this PR description.