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· +24 −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.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
XCL_ADAPTER=5060XCL_ADAPTER=Radeonmain3ceb550with only the test added:cargo test -p xcl --test d3d12_resource_and_sync console_descriptor_heap_validation -- --test-threads=1panics withnull pointer dereference occurredatreal.rs:1093(let raw = *ppv) and the test binary aborts with0xc0000409.main889ef3e; heade5e5528. On that head:cargo test -p xcl --test d3d12_resource_and_sync -- --test-threads=1: 4 passed, 0 failed, 0 ignored on both GPUs.cargo test --workspace --no-fail-fast -- --test-threads=4, withmain889ef3erun the same way for comparison:SKIPPEDlines (main: 1413 passed, 0 failed, 46 ignored).SKIPPEDlines (main: 1412 passed, 1 failed, 46 ignored). The failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 783), the same as onmain, #2115.SKIPPEDlines are wave64-only and per-lanegpu::tests, plusheap_window_out_of_memory_falls_back_to_the_switch_form,shaders::tests::pso_measurement_compiles_an_exact_synthetic_record, the twothe title under the debug layerruns anduploads_start_from_each_subresources_state(no debug layer or Developer Mode here), and on the iGPUpassthrough_mesh_stream_accepts_a_triangle_driver_blob(no mesh shaders).Regression run
scripts/smoke.ps1run onmainand on this head.Not tested
ppv, so this path only changes what happens on a validation call.AI use
ppvsites inhle/d3d12xare reachable, wrote the fix and the test, ran the tests above and wrote this description.🤖 Generated with Claude Code
@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
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.