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!1291
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1291/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?
@emirduran707 on GitHub · 2026-11-24 14:21 UTC · original
emirduran707:d3d12x-clear-uav-console-handles→main· +184 −0 · 2 files · 1 commits · merged 2026-11-25 16:32 UTCConsole command lists'
ClearUnorderedAccessViewUint/Float(#53 / #54) went straight to the PC's #49 / #50 (console_remap). No XCL code ran on them, so the console's descriptor handles reached the PC unchanged. Console code gets those handles from heap #9 / #10, which return console heap slot memory in unified memory, not PC descriptors. So the GPU handle was not in the bound shader-visible heap, and the CPU handle pointed at the console's T# words. Microsoft's documentation ofClearUnorderedAccessViewUint: the GPU handle "must be in a shader-visible descriptor heap, which must be set on the command list via SetDescriptorHeaps", and the CPU handle must be "in a non-shader visible descriptor heap that references an initialized descriptor". Only the opt-in console-list replay (XCL_CONSOLE_LISTS=1) translated them.clear_uav_uint_x/clear_uav_float_xnow take #53 / #54:What is in it
crates/xcl/src/hle/d3d12x/list_x.rs:uav_clear_handles;uav_clear_handles_translate_console_slots, with no device;clear_uav_with_console_handles_clears_the_slots_viewon WARP. It registers an R32_UINT buffer UAV in a console heap, clears it with the console handles and 0xDEADBEEF, and reads it back.crates/xcl/src/hle/d3d12x/real.rs: slots 53 / 54 inconsole_slots(Kind::CommandList), and testconsole_clear_uav_slots_translate_handles.Tested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4on1a1a07f(rebased ontomain1a0bbe3): 1251 passed, 2 failed, 46 ignored; 8 SKIPPED (6 inlower_dxil::tests::{f16,f32}_programs_on_the_gpu;heap_window_out_of_memory_falls_back_to_the_switch_form;pso_measurement_compiles_an_exact_synthetic_record)gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1,gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3) fail identically on unmodifiedmain1a0bbe3on this GPU (seeds 722 and 1599).console_slots,console_clear_uav_slots_translate_handlesfails; with a pass-through decision (what the default path did), the WARP test ends the test process withSTATUS_ACCESS_VIOLATIONinside the PC clear; with the change all three passRegression run
main:
this PR:
Not tested
AI use
main1a0bbe3(a conflict in the tests ofcrates/xcl/src/hle/d3d12x/list_x.rs; both tests kept) and reran the suite and smoke runs above.🤖 Generated with Claude Code
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@DavidM1911 on GitHub · 2026-11-24 14:33 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
@WASDeKeys on GitHub · 2026-11-24 14:34 UTC · original · edited 2026-11-24 14:36 UTC
Thanks for running this. Is retail-title the actual folder name, or did you anonymize the title? I’m trying to reproduce the smoke test—could you share the title name and confirm it was an authorized, unpacked Xbox build? I am very confused as to how to run the smoke test. No game files needed. @emirduran707
@futurepro62 on GitHub · 2026-11-24 14:39 UTC · original
Full-suite run on NVIDIA and AMD (the checks above are NVIDIA only). Tested exact head
0fd1b66(on its base47efa2e).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 744 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.uav_clear_handles_translate_console_slots,clear_uav_with_console_handles_clears_the_slots_view,console_clear_uav_slots_translate_handles.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 744 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
@madaraXor on GitHub · 2026-11-24 15:29 UTC · original
Retail title check on AMD RDNA2: the upscaler's UAV clears no longer fault in the driver
This covers the "Not tested: a title's own UAV clears on hardware" point, with the retail title (1.0.2.1).
Setup: AMD Radeon RX 6700 XT 12 GB (RDNA2), driver 32.0.21045.29003, Ryzen 5 5600X, 16 GB RAM, Windows 10 Pro 22H2 (19045.6466), Agility SDK 1.620.2, Rust 1.90.0, release build.
device_type = "lockhart",XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_PRELOAD=0 XCL_PSO_WAIT_MS=50 XCL_DXC_THREADS=3, menus driven withXCL_PRESS_ATinto the story start. The title needs #684 to get this far on this machine (it stops inxg::copy_fromat ~535 s without it), so every build below has it.Without the change (
main47efa2e+ #684 + #615 + #495), two runs: when the world starts,amd_fidelityfx_upscaler_xbox.dllcallsID3D12PipelineState1::#11, then the list's #53 from+0x72f4, and the process ends with0xc0000005 in amdxc64.dll+0x3167ae (read at address 0xffffffffffffffff), the upscaler's+0x72f4/+0x138b4on the stack: at 598 s and at 600.9 s.With it, exact head
0fd1b66merged withmain930e8b4+ #684 + #615 + #495 + #1288 + #1315/#1316 (none of them touches the clears): the upscaler starts at 607.9 s (#11 stub, then its passes), noClearUnorderedAccessView … not donewarning in the whole run, and no fault there. The same title ran on for another 50 s and then ended in a different place,amdxc64.dll+0x6f30ce(read at 0x24) with only driver frames on the stack, while the driver compiled the world's compute pipelines with local video memory at 13.9 GB on this 12 GB card – not the clears.An equivalent change of mine (same slots, same translation through
console_heap::slot) onb8b1f49+ #684 + #615 + #495 passed the same point twice, at 595.9 s and 676.1 s.Not tested: NVIDIA / Intel with the retail title; whether the clears give the right values (nothing on screen to check yet – the title is still on its loading art at that point here).
AI use: Claude Code, Claude Opus 5.5 ran the builds and runs on my PC and wrote this report. Counts, times and offsets only.
@DavidM1911 on GitHub · 2026-11-24 16:01 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib -- --test-threads=1: all passed, 0 failed, 21 ignored. (Parallel runs intermittently abort with 0xc0000005 — same harness flake seen on unmodifiedmain.)Thanks!
@emirduran707 on GitHub · 2026-11-24 19:32 UTC · original
@WASDeKeys
retail-titleis a folder link (junction) I made so that the smoke block does not carry a commercial title's name. I'd rather not name it here. Any GDK title you own and have installed works the same way:cargo build --release -p xcl.\scripts\smoke.ps1 -Game <the title's install folder>(60 s by default, networking off). It prints thexcl-smokeblock at the end.For a PR, run it once on a build of
mainand once on the PR's head, on the same title. "Building and usage" in the README covers running a title.Written with Claude Code (Claude Opus 5.5).
@jessenic on GitHub · 2026-11-25 08:24 UTC · original
Test report: on a retail title, this PR removes a GPU hang at the first frame of the world. DRED put the hang at a
ClearUnorderedAccessViewon a title list. With this PR the title gets past it to the intro cutscene's title card.Setup: RTX 5070 Ti 16 GB (driver 610.88), Ryzen 7 9700X, 32 GB, Windows 11 Pro 26300, rustc 1.97.0, release. Retail title, Series S profile (
device_type = "lockhart"), story load with scripted A presses. Every compute pipeline was precompiled into the driver cache, including the > 8 MB ones (XCL_PIPELINE_MAX_KB=0), so no build runs during the load.Tree: a local integration branch on
main8f5fca5, with #1323, #1143, #1221, #765, #1405, #1464, #751, #684, #1110, #615, #1315/#1316, #495, #1993, #2009, #929 and a local port of #640 (it conflicts withmain). This PR's commit0fd1b66was cherry-picked on top cleanly as62e86ec. Local diagnostics only, none of them touching clears. All runs usedXCL_HEAP_WINDOWS=1 XCL_DRED=1 XCL_COHERENT_HEAPS=sparse:256 XCL_PAGE_BUDGET_MB=5120.0x887a0006(DEVICE_HUNG), 1–5 s after the last presents15 7 15 >13 15 13(ClearUnorderedAccessViewin progress); the other lists not started; no page fault0x887a0005(DEVICE_REMOVED), about 1 s after the last presents, 8 s after the title's first#101console_list.rs) saw none in the failing runs.cargo test -p xcl --lib -- uav_clear clear_uavon this tree: 3 passed, 0 failed (uav_clear_handles_translate_console_slots,clear_uav_with_console_handles_clears_the_slots_view,console_clear_uav_slots_translate_handles).What still ends the run (not this PR): the
0x887a0005removal with nothing in flight, right after the intro's title card, as in other reports on #505. The debug layer's last 64 messages before it hold only errors already present in the menus (1047, 527) and a graphics pipeline created 15 ms before.Not tested:
mainalone (the hang needs the rest of the stack to reach the world on this card); AMD; Series X; more than 2 runs with the PR. This was not ascripts/smoke.ps1regression run.AI use: Claude Code (Claude Opus 5.5) ran the runs on the machine above, read the DRED output and wrote this report.
@WASDeKeys on GitHub · 2026-11-25 08:30 UTC · original
@emirduran707 I have a retail-title, I was just wondering if there's a specific title I need to run the smoke test on or if any xbox series unencrypted title would do.
@emirduran707 on GitHub · 2026-11-25 10:12 UTC · original
@WASDeKeys Any unpacked Xbox Series (GDK) title you own works; there is no specific one. What matters is that you run the same title twice: once with an
xcl.exebuilt frommainand once with one built from the PR's head, each for the same 60 s (.\scripts\smoke.ps1 -Game <folder> -Xcl <that build's xcl.exe>). Then paste bothxcl-smokeblocks. A title that does not reach the code a PR changes still counts as a regression check; say so under Not tested.Written with Claude Code (Claude Opus 5.5).
@WASDeKeys on GitHub · 2026-11-25 10:18 UTC · original
@emirduran707
Thanks a ton, this has cleared a big confusing part for me. Also could you tell me if there is a list of things that need work right now, like improvement issues that need fixing and testing or really anything you would point a new contributor towards? Also is there a chat room/community like in discord yo coordinate with other devs?
Thanks!
@thehollowedone on GitHub · 2026-11-24 14:25 UTC · original · edited 2026-11-25 15:17 UTC
Independent native NVIDIA float clear check on
0fd1b66, Windows 11 build 26300, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug with Windows Graphics Tools.I adapted the WARP fixture to use an
R32_FLOATbuffer on the native adapter. With the console CPU-only and shader-visible slots registered, I passed their console handles directly to XCL’sclear_uav_float_xon an adopted command list. After a fence and GPU readback, all 64 elements were exactly0.375. The D3D12 debug layer recorded zero messages during the clear and copy. The three stock tests also passed, including the WARP unsigned-integer readback.Synthetic buffer and handler coverage only. AI-assisted. Codex (GPT-6, exact variant unavailable) adapted and ran the scratch fixture and drafted this report.
Recheck on current head 1a1a07f on the same RTX 3080 Ti. The clean workspace built and reported 1,253 passed, 0 failed, 46 ignored, including 25 reported skips (20 without wave64, 3 unsupported per-lane forms, 1 driver-cache toggle and 1 heap-window test). All three stock UAV tests passed, including the WARP readback.
I also ran the unsigned-integer clear on the RTX 3080 Ti with separate CPU-only and shader-visible heaps, a buffer created in COMMON and transitioned to UAV, and D3D12 debug and GPU-based validation enabled. All 64 elements matched. The device stayed healthy, with zero validation warnings or errors. The native check changed only the test fixture. No retail or shared-heap coverage in this recheck. AI-assisted. Codex (GPT-6, exact variant unavailable) ran the suite, adapted the native fixture and drafted this update.
@throny on GitHub · 2026-11-25 15:33 UTC · original
Two contributors checked independently and found that #2329 solves the same problem (for #675) in a different way: #1607, group D80. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
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.
@imnicho on GitHub · 2026-11-25 16:10 UTC · original
A second NVIDIA card for the retail-title result above, and a correction on my side: #2329 is my duplicate of this PR (the triage hint above, group D80). This one was first, so I am closing #2329 in its favour.
I found the same hang independently today and missed this PR in my search. The measurements, made with the same handle translation as here (
pc_gpu_uavof the GPU slot,pc_uavof the CPU slot, the same three cases) but in #2329's hooks, not on this head:Setup: RTX 5080 16 GB (driver 610.47, 32-lane waves), i7-7700K, 16 GB RAM, Windows 10 22H2, release. The newer retail title (my own copy),
XCL_NETWORK=0, scripted pad, a local tree (#2057 at4df1e6e+mainat0f13d2a+ the mesh stack),XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1, Series S profile.#101nvlddmkm"stopped responding" (event 4101)XCL_DRED=1+XCL_GPU_PROFILE=1named the same place in two runs: a list of 139 operations with 45 done, the next oneClearUnorderedAccessView. That agrees with @jessenic's report above.R32_FLOATtexture, each with a GPU handle and a CPU handle from two console heaps, and goes on (3 runs of 3). The losses that remain are later and other things (#505).The one difference between the two PRs, for you to judge: when the GPU slot's UAV is in the shared heap, #2329 calls
ensure_view_heapbefore the clear, because the PC wants the heap of the GPU handle set on the list, and a list that only clears may not have named one. I have not seen a list where that mattered (my title runs always had the call), so it is a precaution, not a measured need.Not tested: this head itself. When this machine is free I will run this PR's three tests on the RTX 5080 and post the counts here.
AI use: Claude Code with Claude Fable 5.2 ran the title on the machine above and wrote this.
@DavidM1911 on GitHub · 2026-11-26 04:47 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