Repository navigation
Conversation
XCL_PSO_PRELOAD=graphics keeps remembered graphics pipelines eligible for preloading while compute pipelines retain their ordinary first-bind build and wait. Unset, 1, 0 and unrecognized values retain their existing behavior. The existing queues, workers and exact-once job ownership are unchanged. Extend xcl-dev#690 with an opt-in admission policy, not a default or dispatch change. The CPU scheduling regression runs five policy values in fresh processes and checks actual remembered graphics/compute submission and real-value selection. Assisted-by: OpenAI Codex (GPT-6; exact model variant unavailable)
|
Regression runs for this PR's head main: this PR: Tested
Not tested
Report written with Claude Code (Claude Opus 5.5) from runs on this machine. |
|
World-loading run with
So on this machine graphics-only preloading does not get the title further. For context: thread dumps on #754 (my comment there) show the title's threads blocked in Written with Claude Code (Claude Opus 5.5) from runs on this machine. |
|
Native D3D12 check I tested I extended the stock wave64 compute readback fixture to seed one remembered compute shader with a cold DXIL cache. With
This checks the compute dispatch contract on hardware. It leaves the world-loading performance question open. AI use |
|
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on All green: the graphics-only pipeline preload builds and runs, the workspace has no new failure against AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it. |
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. 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 AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
|
I'm gunna push this for ready to review as I want to know what others think as well. Even if we passed this for others to test, I want to know what the main reviewers think. -Prime. |
|
Linux (Wine + vkd3d-proton) + NVIDIA test of Setup: Fedora 44 (kernel 7.2.9), Wine 11.21 Staging (Wayland driver), vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch, Tested
Run 3 with Why the default crawls under Wine (thread dumps at 90 s and 110 s of a slow default run on The preload worker is building a remembered compute pipeline whose DXIL is not in the cache, and DXC takes 23 to 50 s for these programs, allocating from the process heap all the while. The title's five pipeline-creation threads allocate from the same heap as XCL parses each shader, and under Wine that heap has one critical section for these sizes. Sampled 40 times over 2 s in another slow run, each of the five used 14 to 18% of a core and was in a Read
Not tested: past 100 s; this switch together with #684 and AI use: Claude Code (Claude Fable 5.2) read the diff, built the tree, ran the title with |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
Adds
XCL_PSO_PRELOAD=graphicsas an optional admission policy for #690. Remembered graphics pipelines remain eligible for preloading; compute pipelines keep their required first-bind build and wait. Unset,1,0, and unrecognized values retain their previous behavior.This PR is ready for review. Our two Windows suite runs reproduced the cubemap assertion tracked in #718. The failures and isolated reruns are recorded under Tested.
What is in it
pso_async.rs: filter pipeline type before starting/enqueueing preload workers; preserve pending-job ownership. A scheduling regression checks five settings in fresh processes, nonzero real-result selection at first use and exact-once completion.e50836b; cleanly mergeable with checked mainbeaa245.Tested
hle::d3d12x::pso_async::used_tests: 3 passed, 0 failed, 0 ignored on identical source immediately beforeb1530acwas committed. These scheduling cases also passed in both exact-head full runs.b1530ac5454469703db46e3c6366b6264486684e:cargo build --locked --workspace,cargo test --locked --workspace --no-runandcargo build --locked --release --workspacepassed, with fresh synthetic title/DLL fixtures and the packaged DXC pair.cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture: 702 passed, 3 failed, 41 ignored, twice with unchanged source/settings. Both hitplaced_title_textures_share_vram_and_preserve_pixelsat the cubemap reuse assertion, thenPoisonErrorintransitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memory. Each exact failing case passed 1/0/0 in a fresh isolated process. Both full attempts explicitly skippedgpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardwarebecause this adapter has no wave64. Optional samples/XG oracle were unset.graphics, DXC threads 2, private clone of an earlier 196-set history, hidden desktop, verified hard job-memory backstop and no input. Actual report: exit 0, no crash/removal/OOM/guard stop, 542 presents, 15,462 MiB sampled peak process commit. Two preload threads logged graphics PSO successes and at least 512 completed preload jobs; that counter includes refusals (40 known MS-in-AS translation refusals), not 512 successful PSOs. One compute PSO built on another thread, none logged on the observed preload threads. Frame 500 had a readable Account Picker/Player 1 footer over a uniform dark background.Independent hardware results
Regression run
Two fresh 60-second runs of the same title, each on a unique non-input Win32 desktop, offline, no input, distinct initially empty XCL data/DXIL caches, and the same adapter/DXC pair. Defaults were used; the feature check above is separate. Vendor/OS caches were not reset. Presentation counts are used only for the startup threshold.
Baseline:
Candidate:
Not tested
AI use
I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord