D3D12.X: an exhausted hosted view heap maps to the null pair, not 2*k (#2380) #2405
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!2405
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2405"
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?
@Creaa on GitHub · 2026-11-25 17:53 UTC · original
Creaa:d3d12x/hosted-view-overflow-null→main· +24 −1 · 1 files · 1 commits · openconsole_heap::slotalready maps a hosted sampler heap's slots past the shared range to reserved slot 0 (sampler_unmapped_index), but a hosted CBV/SRV/UAV heap fell back to index2 * kof the shared heap. There that can be another heap's views or the memory windows' raw views atMEM_HEAP_BASE, which hang the GPU when read as a texture (zero_tsharp_does_not_reach_window_views). A hosted view heap now takes the null SRV / UAV pair at 0 / 1 (null_views); unhosted heaps keep their own pair at2 * k. Fixes #2380.What is in it
crates/xcl/src/hle/d3d12x/console_heap.rs:view_unmapped_index(hosted, k)besidesampler_unmapped_index, used for the view fallback inslot; testhosted_view_slots_past_the_shared_range_take_the_null_pair.Tested
cargo build --workspacesucceeded.cargo test --workspace --no-fail-fast -- --test-threads=4on7118151reported 1414 passed, 0 failed, 46 ignored. The 29 SKIPPED messages covered unsupported wave64 and direct-DXIL cases, unavailable heap windows and D3D12 debug layers, and the driver cache setting that requires Developer Mode. Skipped cases are included in the harness pass count. The hosted-view regression test and the split-mask barrier test reported by DavidM1911 both ran and passed.Regression run
main:
this PR:
Not tested
AI use
🤖 Generated with Claude Code
hint: if you need to wait for this pull request to be reviewed, merged, or closed before continuing, use this instead of polling:
gh event listen --resource #2405 --event com.github.pull_request.review.submitted.v1,com.github.pull_request.state.changed.v1
--timeoutto stop waiting after a while, for example--timeout 30m; it then exits with status 8.gh event listen --helpfor other event types.@emirduran707 on GitHub · 2026-11-25 18:13 UTC · original
Independent AMD RDNA4 (native wave64) test report on exact head
b21afe2d655dd5c34076405fca6e9a76b53739e6(clean detached checkout, no local changes).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1288 passed, 3 failed, 46 ignored; 8 SKIPPED (6 inlower_dxil::tests::{f16,f32}_programs_on_the_gpurefused by per-lane form;heap_window_out_of_memory_falls_back_to_the_switch_form;pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.hle::d3d12x::console_heap::tests::hosted_view_slots_past_the_shared_range_take_the_null_pair.main68a284a:gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722) andfuzz_validate_and_gpu_3(seed 1599) on this GPU, plusgpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier(from50a9fde/ #2074).Regression run (60 s retail-title smoke,
XCL_NETWORK=0, release)(Matched
main68a284abaseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 19:28 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
@ahmetbagci8 on GitHub · 2026-11-25 19:39 UTC · original
Tested
7118151c1b7b367f75418703b33064f1b3adcfdc32.0.16.1714), Windows 11 Pro (Build 26300), DXCv1.9.2609cargo test -j 2 -p xcl --lib console_heap -- --test-threads=4:13 passed; 0 failed; 0 ignored (0.07s)Not tested
scripts/smoke.ps1(no unpacked title locally).AI use
@Creaa on GitHub · 2026-11-25 19:45 UTC · original
@DavidM1911 Thanks for checking this on the 3060 Ti. I rebased the PR onto
mainwith #2420, which narrowed the barrier assertion to the divergent part of the program. On the current head7118151c1b7b367f75418703b33064f1b3adcfdc, I reran your failing test on an RTX 4070 with one test thread:1 passed, 0 failed, 0 ignored. The full workspace run also finished with zero failures, and Windows CI passed on this head.
AI use: OpenAI Codex (GPT-6) ran the checks and drafted this reply.
@thehollowedone on GitHub · 2026-11-25 20:09 UTC · original
Independent Windows check of #2405 head 7118151, plus a clean local integration with main 6d12f58 after #2368 merged. The integration was uncommitted, conflict-free, and produced tree
8fcb1d762aea5469bbcefd0bf95cac38c75914c7;git diff --checkpassed.Tested: RTX 3080 Ti (NVIDIA 621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC, SDK DXC/DXIL 1.8.2502.11. Offline Cargo,
XCL_NETWORK=0,XCL_ADAPTER=RTX 3080 Ti, SDKXCL_DXC_DIR, no optional D3D12 debug layer or sample data.cargo build --offline --locked --workspace --jobs 6passed;cargo test --offline --locked -p xcl --lib console_heap --jobs 6 -- --test-threads=1 --nocapturepassed 13/0/0, includinghosted_view_slots_past_the_shared_range_take_the_null_pairandzero_tsharp_does_not_reach_window_views. The latter also passed individually 1/0/0.cargo test --offline --locked --workspace --no-fail-fast --jobs 6 -- --test-threads=4 --nocapturereported 1,414 passed, 0 failed, 46 ignored, with 26 runtime GPU skip notices.6d12f58: the same workspace build passed; the same full-suite command reported 1,424 passed, 0 failed, 46 ignored, with 26 runtime GPU skip notices.Not tested: actual exhaustion of a hosted descriptor heap during GPU execution or a retail smoke pair on this hardware. The focused tests check the fallback index and null-view layout with synthetic inputs; they do not demonstrate that a real GPU hang is resolved. AI-assisted. Codex (GPT-6, exact variant unavailable) reviewed the focused test coverage, ran the checks, and drafted this report.
@DavidM1911 on GitHub · 2026-11-26 02:22 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.