D3D12.X: draws find their pipeline facts and list state without global locks #898
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/904"
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 mastrr9 on 2026-11-24T08:00:13Z.
Eliminates repeated global mutex grabs and per-call allocations on hot draw and dispatch paths (
crates/xcl/src/hle/d3d12x/bind.rs+real.rs):Vecallocation on root-constants updates.DrawInstancedfrom ~33 down to ~8 (andDrawIndexedInstanced29 → 7,Dispatch24 → 7), sharply reducing contention across multi-threaded command list recording.Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstalled3d6253bbcb307f919621f2a72de758f19808c33f(HEAD21755afb2dba7318a49690ff02b9fe6a69270740has an identical tree; only commit author metadata was updated after GitHub account rename)cargo build --workspace: clean (no new warnings; only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 719 passed, 0 failed, 41 ignoredSKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Regression run
Smoke run by @Toons29 in comment below: https://github.com/xcl-dev/xcl/pull/904#issuecomment-7151633202
Contributed by a community tester; the PR author did not run it. Both blocks are pasted as posted.
main:
PR:
Tester's setup and limits: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.Tester's AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; the tester checked the blocks before posting.Not tested
AI use
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T09:34:33Z.
Linux / AMD RDNA3 datapoint.
Merged state: head
21755afonto main09940bb, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 709 passed, 11 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). lock-free pipeline/list hooks green; one extra failure (writes_land_after_the_queue) appeared once in the lane but passes 2/2 in isolation, consistent with the ordering flakes on this rig.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
upstream-sync referenced this pull request2026-11-24 21:29:08 +00:00
upstream-sync referenced this pull request2026-11-25 02:07:14 +00:00
Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:08:43Z.
Regression run of
7c2ccd9bon the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 99 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.upstream-sync referenced this pull request2026-11-25 05:07:03 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:32:57Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:error[E0425]: cannot find value 'pso' in this scopeatcrates/xcl/src/hle/d3d12x/bind.rs:415and:419(2 errors). Fails on the PR head itself.— Devin
upstream-sync referenced this pull request2026-11-25 14:08:43 +00:00
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:19: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-01T04:28:12Z.
Triage (#1607) – head
7c2ccd9Main already takes draws' list state and pipeline lookups off the global locks, in a different way. bind.rs
withnow goes through per-listBindEntrys with their own lock, a per-thread cache (state_entry/STATE_CACHE) and a sharded registry (a3ae4644, merged with #2959).is_translated_graphics/is_translated_compute/pso_root_signature/pso_user_sgprsread sharded tables (6e7040b0), and list state keeps a retainedPipelineResolution. This PR'sEntry/LASTand per-listPipelinecache would replace that code rather than add to it.Recommendation: close (superseded by main commits
a3ae4644and6e7040b0).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:41:20Z.
Closing as superseded: this change is already on
main(a3ae4644). main has the sharded BindStateRegistry (per-list Arc entries), per-thread cached bind entries (a3ae4644) and Sharded TRANSLATED_GRAPHICS/COMPUTE/PSO_RS/PSO_USER_SGPRS tables (6e7040b0); the PR's goal (off the global STATES/pipeline locks) is met by a different design; its small per-list pipeline cache and words_as_bytes micro-opts are not carriedTwo independent checks found this: Foniass's close list on #1607 and ours against current
main. If something here is still missing onmain, say so and reopen it, or ask and I will.AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.
Pull request closed