D3D12.X: stub orphaned older command list slots on the newer layout (#104) #307
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/310"
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 Michael-Glaser on 2026-11-23T23:06:44Z.
Part of #104. On the newer command list vtable layout (Reset at #63), older Xbox slots #61/#62/#64/#65/#66/#71/#72/#73/#74/#75/#79/#80 were left pointing at raw PC slots instead of stubs.
What is in it
crates/xcl/src/hle/d3d12x/real.rs: plan newer-layout slots cleanly (plan_newer_list_slots), stubbing orphaned older slots while preserving PCResetat #63.crates/xcl/src/hle/d3d12x/real.rs: unit testorphaned_older_list_slots_are_stubbed_on_newer_layout_without_touching_reset.Tested
aarch64-apple-darwin, Rust 1.100.0):cargo check --offline --target x86_64-pc-windows-msvc --workspace --tests(0 errors, 0 new warnings).@nullmarshon644967f(AMD RX 9060 XT RDNA4, Windows 11, Rust 1.100.0 MSVC):.\scripts\test.ps1671 passed, 0 failed, 41 ignored (0 SKIPPED GPU tests).@DavidM1911(RTX 3060 Ti, Windows 11, merged withmain):cargo test -p xcl --libpassed, 0 failed.Regression run
Retail 60 s smoke run contributed by
@CuteBooty(RTX 3070 8 GB, NVIDIA 621.24, Ryzen 5 3600, Windows 11 Pro 26200, Rust 1.100.0 MSVC, release build):main:
this PR:
Not tested
AI use
@CuteBootywith Claude Code (Claude Opus 5.5).mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by nullmarsh on 2026-11-24T00:05:06Z.
Windows run for this PR (the description lists it as not built or run on Windows):
644967fmerged ontomain3516080(clean merge) builds and passes with MSVC.Tested
x86_64-pc-windows-msvc; debug build..\scripts\test.ps1: 671 passed, 0 failed, 41 ignored; noSKIPPEDGPU tests.cargo test -p xcl --lib list_layout:orphaned_older_list_slots_are_stubbed_on_newer_layout_without_touching_resetpasses.Not tested
plan_newer_list_slots, which this PR adds.smoke.ps1/ a retail title (so nothing on a real newer-layout command list); NVIDIA.AI use
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by CuteBooty on 2026-11-24T21:02:27Z.
Regression run on a retail title for
bf1d03c: pass (no device removal, no crash, frames and peak commit within the check's limits).Tested
scripts\smoke.ps1 -Game <folder> -Seconds 60, no input, on this PR's head as it is and onmain47efa2e, the commit it branches from, each from a clean checkout. Each build ran twice back to back; the blocks are the second runs. Themainblock is shared with my reports on other PRs of the same base.main:
this PR:
Not tested
mainmerged in, AMD and Intel GPUs.AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T14:43:37Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by Michael-Glaser on 2026-11-27T12:00:36Z.
Thanks @CuteBooty, @nullmarsh, and @DavidM1911! Added the verbatim
xcl-smoke v1regression blocks forbf1d03cand the Windows test results into the PR description.Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-27T17:52:50Z.
NVIDIA and AMD full-suite run, to go with the reports above by CuteBooty, since none of them covers AMD. Tested exact head
bf1d03c6(on its base47efa2e).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 742 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.orphaned_older_list_slots_are_stubbed_on_newer_layout_without_touching_reset.XCL_ADAPTER=radeon),cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 742 passed, 0 failed, 41 ignored, no skips.--skipleaves out tests that fail on main6089122atoo, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:06:30Z.
Triage (#1607) – head
bf1d03cNo other open PR changes the command list newer/older layout split. #1378 (also #104) is a test-only change for queue slot #18 and does not overlap.
Notes on the diff: (1) the description lists the orphaned slots as #61/#62/#64/..., but the code and test give 59, 60, 68, 69, 78, 81, 84, 88, 89, 93, 94. (2)
plan_newer_list_slotschanges the PC target of the existing shifted slots belowpublicfrom the raw driver method (*ot.add(newer)on main) to the overridden vtable entry (pc[1 + slot]). This changes runtime behaviour and the description does not mention it.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.