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!2444
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2444"
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?
@GustavoEllwanger on GitHub · 2026-11-25 19:07 UTC · original
GustavoEllwanger:fix/d3d12x-descriptor-heap-null-ppv→main· +46 −2 · 2 files · 1 commits · openCreateDescriptorHeapwith a null out pointer is D3D12's validation call: no heap is made and it returnsS_FALSE. The console #14 hook (dev_create_descriptor_heap_x) read*ppvon any success code, so that call crashed for CBV_SRV_UAV and SAMPLER heaps, the two types it sends through its own path. Fixes #2401.What is in it
crates/xcl/src/hle/d3d12x/real.rs:dev_create_descriptor_heap_xregisters the heap only whenppvand*ppvare not null, asdev_create_descriptor_heapalready does; the validation call returns the driver'sS_FALSE.crates/xcl/tests/d3d12_resource_and_sync.rs:console_descriptor_heap_validation_call_with_null_out_pointer_returns_s_falsecalls console #14 with a null out pointer for both heap types, shader-visible and not, and expectsS_FALSE; then verifies that normal non-null creation for the same combinations still returnsS_OK, registers inconsole_heap, and unregisters on drop.I also checked the other
hr >= 0then*ppvspots inhle/d3d12x:create_devicereturns early on a nullppv,finish_two_passreturnsE_INVALIDARGfor it (so the mesh and GSdred::labelcalls after it are not reached), andcompute_containeris covered by #2297.Tested
32.0.16.1088),XCL_ADAPTER=506032.0.21042.62),XCL_ADAPTER=Radeonmain3ceb550with only the test added:cargo test -p xcl --test d3d12_resource_and_sync console_descriptor_heap_validation -- --test-threads=1panicked withnull pointer dereference occurredatreal.rs:1093(let raw = *ppv) and aborted with0xc0000409.mainb49be183; head5681f9fa:cargo test -p xcl --test d3d12_resource_and_sync --test d3d12_descriptor_heap_and_fence -- --test-threads=1:d3d12_resource_and_sync4 passed,d3d12_descriptor_heap_and_fence3 passed (0 failed, 0 ignored, 0 skipped) on both RTX 5060 and AMD Radeon RDNA2.XCL_ADAPTER=5060 cargo test --workspace -- --test-threads=4(NVIDIA RTX 5060): 1436 passed, 0 failed, 47 ignored (29 pre-existing runtimeSKIPPEDlines on wave32 NVIDIA / without D3D12 debug layer / Developer Mode / heap windows).Regression run
scripts/smoke.ps1blocks onmain(b49be183) and on this head (5681f9fa).Not tested
ppv, so this path only changes what happens on a validation call.AI use
b49be183, added the non-null registration/unregistration assertions per @bmjask's review, and ran the dual-GPU and workspace test suites.@ahmetbagci8 on GitHub · 2026-11-25 19:40 UTC · original
Tested
55a476e3ab62fdcbfe79fcbb522c1de54e4eae6b32.0.16.1714), Windows 11 Pro (Build 26300), DXCv1.9.2609cargo test -j 2 -p xcl --lib d3d12x -- --test-threads=4:245 passed; 0 failed; 2 ignored (7.92s)Not tested
scripts/smoke.ps1(no unpacked title locally).AI use
@SlopTart on GitHub · 2026-11-25 20:02 UTC · original
gpu_suite (cold cache): 160 passed / 4 failed, no crashes. The four are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, depth-buffer state refusal, andgpu_promoted_uav_clear_values_pass_create_committed_resource(report); none caused by this PR.@DavidM1911 on GitHub · 2026-11-25 20:15 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
@GustavoEllwanger on GitHub · 2026-11-25 20:18 UTC · original
Thanks @DavidM1911 for running it!
That failure is not from this PR.
a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierwas broken onmainitself after #2203 and was fixed by #2420, merged at 18:45 UTC. Your localmainwas probably from before that.The current head
e5e5528is rebased ontomain889ef3e, which has #2420. There the test passes on an RTX 5060 and an AMD RDNA2 iGPU, the whole suite ismainplus the one new test on both, andBuild and teston this PR is green. This PR only changesdev_create_descriptor_heap_xinreal.rsand adds one test incrates/xcl/tests/d3d12_resource_and_sync.rs, nothing ingpu::recomp.If you rerun on
e5e5528after updatingmain, it should pass. The test for this fix itself iscargo test -p xcl --test d3d12_resource_and_sync.@luckyteagirl on GitHub · 2026-11-25 23:00 UTC · original
RX 6800M verification on exact PR head
e5e55281f2aad85a8116d2bbdffeaa4406ae68dc(Windows 11 build 26200, Radeon RX 6800M driver30.0.13002.13003, Rust 1.99.0 MSVC):XCL_ADAPTER=6800M XCL_REQUIRE_GPU=1 cargo test --locked -p xcl --test d3d12_resource_and_sync console_descriptor_heap_validation_call_with_null_out_pointer_returns_s_false -j 1 -- --test-threads=1 --show-output: 1 passed, 0 failed, 0 ignored, 0 SKIPPED (3 filtered out). The first cold build attempt stopped at the memory guard before testing; the retry above completed.cargo build --locked --release -p xcl -j 1passed on the PR head and its exact basee0d93c84ad8253f6e17738d14741c1bab7061127, with no guard stop. I preserved the PR executable before rebuilding the base and verified the copy's SHA-256 matched.0x0, 0 crashes and 0 device removals. Base: 13 frames, 6,954 MB peak commit. PR: 6 frames, 6,927 MB peak commit. This pair's PR frame count is 46% of base, below the 80% regression threshold; I would not call the smoke gate passed. These runs only reached intro frames and did not exercise the null-output validation call.6d12f58) run was also clean but showed 0 frames; short startup frame counts vary here. The PR's base predates four source-file changes on current main (core_tests.rs,lower_mem.rs,runner.rs,bind.rs), so the exact-base pair is the causal comparison, while a current-main pair after rebase is still needed for merge readiness.Not tested: a full current-head workspace suite, a completed longer title run, a physical Bluetooth controller, or other GPUs on this exact head. No game data was uploaded.
AI use: OpenAI Codex (GPT-6; exact variant unavailable) ran the guarded exact-head test/builds and smoke comparisons, checked the logs and source delta, and drafted this report.
@DavidM1911 on GitHub · 2026-11-26 01:50 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
e5e55281f2to5681f9fa1d@bmjask on GitHub · 2026-11-25 20:47 UTC · original · reviewed
No code-level blocker found. The null-output guard matches the existing creator pattern, preserves S_FALSE, and the new tests cover both affected console heap types; Windows CI is green. Merge readiness is administrative: this runtime change still needs the required paired retail smoke evidence. Optional additional coverage: explicitly assert normal non-null creation still registers successfully.
@GustavoEllwanger on GitHub · 2026-11-26 12:32 UTC · original
Thanks @bmjask for the review and @luckyteagirl for the RX 6800M check! Rebased onto current \main\ (\49be183, new head \
5681f9fa) and added explicit non-null console #14 creation assertions in \console_descriptor_heap_validation_call_with_null_out_pointer_returns_s_false\ verifying \S_OK, \console_heap::start(...)\ registration (when UMA is active), and clean unregistration on drop for both \CBV_SRV_UAV\ and \SAMPLER\ heaps (shader-visible and non-shader-visible).Re-verified on NVIDIA RTX 5060 and AMD Radeon RDNA2 (4/4 \d3d12_resource_and_sync, 3/3 \d3d12_descriptor_heap_and_fence, 1436 passed, 0 failed, 47 ignored full workspace on RTX 5060). If anyone with a retail title can run a paired 60 s \scripts/smoke.ps1\ on \49be183\ and \
5681f9fa, it would be greatly appreciated!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.