fix(gpu/run): keep descriptor heaps alive, harden device loss handling #239
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!239
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/239/head"
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?
@racknea on GitHub · 2026-11-23 21:45 UTC · original
racknea:patch-1→main· +500 −474 · 1 files · 1 commits · closed without mergingNo description provided.
@denio4321 on GitHub · 2026-11-23 22:13 UTC · original
Tested
cc124cfmerged ontomain9ab7d76on RTX 3060 12 GB (Ampere, 32-lane waves), NVIDIA 610.88, Windows 11 Pro 23H2 (22631), rustc 1.100.0 MSVC, DXC 1.9.2602.17..\scripts\test.ps1(debug,--test-threads=4), noXCL_SAMPLE_*set. Baselinemain9ab7d76alone on the same machine: 651 passed, 0 failed, 40 ignored.main. Nothing regresses in the GPU tests that go throughgpu/run.AI-assisted (Claude Code).
@Kalmarv on GitHub · 2026-11-23 22:30 UTC · original
Please keep the empty-draw heap fix and revise device removal before merging. Two controls on an RTX 5070 Ti showed where recovery breaks.
GetDeviceRemovedReasonreturnedS_OKand the submission fence completed after release. On the merge it returnedDXGI_ERROR_DEVICE_REMOVED(0x887A0005). No shader ran. Bothdraw_on_multianddispatch_onpass a caller-owned device to this helper. Keep submitted resources alive until completion or confirmed removal and leave device-wide recovery to the owner. Error path · D3D12 removal semanticsinit()succeeded on the merge, but the public runner still returned the cached removal error. Cache successful recreation and leave the slot empty on a transient failure. Cache path · D3D12 device identityTested
Windows 11 Pro 26200.9711, Ryzen 9 9950X, RTX 5070 Ti, NVIDIA 610.74, native D3D12, DXC 1.7.2308.16. Local merge
61583594e366877a62fb109066626dadedd0836aof headcc124cf80159f160da0505ac79e4d340b82afa60onto main7a033c8cd13194900cd49c01ed60a59c6c9559c7. The PR adds no tests.run_code, stopping after PSO creationE_INVALIDARGOn the unmodified merge,
cargo test -p xcl -j2 --lib --no-runfollowed by the binary withgpu::recomp:: --test-threads=1reported 182 passed, 0 failed, 18 ignored, including two native-wave64 skips and one sample-dependent early return. Queued runs of the fence tests (5), compute integration tests (2), predication integration test (1), UMA test (1) and static-sampler test (1) passed on both builds. The 11 review controls above and in the findings ran individually in fresh processes. Nine failed on main and passed on the merge, one regressed, and one failed on both.Merge order. Each head conflicts with #239 in
runner.rs. Rebase #214 (bf2a27e) after #187 (c74b03a) and preserve #187’s populated window UAV heap in both arena and compute dispatch. #214 already conflicts with main inreal.rs. Preserve #152’s cached draw queue and increasing fence value (4ba00d9) when applying the lifetime fix. Its conflicts inrecomp/mod.rsandtests.rsalready exist on main.Not tested
The retail game, AMD, WARP, a real driver TDR, or timing changes from I/O packing, barrier batching and removing the second map. The static-sampler control checked PSO creation only. An initial invalid-DXIL arena probe terminated without an assertion result and is excluded from the counts.
🤖 GPT-6.2 Astra
@raylitebull on GitHub · 2026-11-24 10:43 UTC · original
Closing as a stale, conflicting PR with an empty description and unresolved device-loss recovery review feedback. Feel free to submit a fresh, scoped PR for the descriptor-heap fix per
CONTRIBUTING.md.Pull request closed