Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by GustavoEllwanger on 2026-11-25T19:07:55Z.
CreateDescriptorHeapwith 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.Imported from ivall/xcl. Originally posted by ahmetbagci8 on 2026-11-25T19:40:04Z.
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
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T20:02:42Z.
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.Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T20:47:11Z.
Review: COMMENTED
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T20:15:58Z.
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
Imported from ivall/xcl. Originally posted by GustavoEllwanger on 2026-11-25T20:18:51Z.
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.Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T23:00:04Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T01:50:09Z.
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
Imported from ivall/xcl. Originally posted by GustavoEllwanger on 2026-11-26T12:32:40Z.
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!Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:34:23Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:06:31Z.
Triage (#1607) – head
5681f9f#2556 made the same change in
dev_create_descriptor_heap_x(register the heap only whenhr >= 0 && !ppv.is_null() && !(*ppv).is_null()); its author closed it as a duplicate of this PR, which came first. Main still hasif hr >= 0 { let raw = *ppv; … }, so the null-ppv crash is still there.The integration test covers CBV_SRV_UAV and SAMPLER heaps with and without SHADER_VISIBLE, and also checks that normal creation still registers. No problems found in the diff. The failing check is the PR description check.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.