Repository navigation
Conversation
|
Test run of Tested
Review: The two-lane queue is strict priority: while graphics jobs keep arriving, queued compute jobs wait. That cannot hang, since a bind that needs a compute pipeline runs its job itself in Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Tested I ran the same synthetic D3D12 fixture on
Not tested Sustained or multi-worker queue pressure, D3D12 debug-layer messages, and retail loading. AI use Codex with GPT-6.2 Sol wrote the scratch fixture, ran the tests, and drafted this report. |
Replace the single FIFO channel in pso_async with a two-lane queue so queued graphics draw pipelines dequeue ahead of compute builds instead of starving behind large world-loading compute shaders. Assisted-by: Antigravity (Gemini 4 Neon)
ac387a1 to
766b661
Compare
|
Independent NVIDIA RTX 5080 build/test run and code review at head Code Review
Tested
Not tested
AI use: Antigravity (Gemini 4 Neon) performed the code review, ran the RTX 5080 workspace tests, and drafted this comment. |
|
Code/CI review only (not independently runtime-tested by me): clean merge with both checks green ( |
|
Does not build when merged onto current Looks like a rebase is needed — the call this PR adds does not resolve against what For context on why it matters to this title: on AI use: OpenCode, DeepSeek V4.1 Flash 1017. |
|
I verified the caller update on a local, uncommitted merge of With the fix, Windows 11 build 26300, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug. This check covers worker scheduling with synthetic jobs. Driver compile time and retail world loading remain untested here. AI-assisted. Codex (GPT-6, exact variant unavailable) tested the caller change and drafted this follow-up. |
# Conflicts: # crates/xcl/src/hle/d3d12x/pso_async.rs
Empirical test report (766b661)Hardware / environment
Commands and results
& $testExe --exact --test-threads=1 --nocapture hle::d3d12x::pso_async::tests::graphics_jobs_dequeue_ahead_of_queued_compute_jobs
& $testExe --exact --test-threads=1 --nocapture hle::d3d12x::pso_async::tests::worker_pool_prioritizes_graphics_pipeline_over_queued_compute
Observed behavior The queue test verified that graphics jobs dequeue ahead of earlier compute jobs and that jobs retain submission order within each class. The worker-pool test occupied every worker with a synthetic job, queued a compute job followed by a graphics job, and released one worker. The graphics job started first, and both jobs returned the expected synthetic pipeline handles. The PR adds two CPU-only tests. Not tested Full GPU workspace suite and game smoke runs omitted. AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr628-focused.log and published. |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
Replace the single FIFO
mpsc::channelinpso_asyncwith a two-laneWorkQueueso queued graphics pipelines dequeue ahead of queued compute pipelines on thexcl-pso-*worker pool.When a retail title transitions into world rendering, it queues hundreds of large compute pipelines (100–490 KB DXIL) ahead of its graphics draw pipelines. With one shared FIFO channel, all
xcl-pso-*workers spent tens of seconds compiling compute shaders while every queued graphics pipeline waited behind them (in a local world-loading stack run, 217 compute PSOs finished while 0 graphics PSOs finished over 28 s; with graphics prioritized first, 181 background pipelines built including ~147 graphics PSOs and the title began presenting post-loading world frames). Within each lane (graphics and compute), FIFO order is preserved.What is in it
crates/xcl/src/hle/d3d12x/pso_async.rs: replace thempscchannel inqueue()withWorkQueue<T>(gfxandcomputeVecDeques, poppinggfxbeforecompute) +Pool/enqueue; add unit testsgraphics_jobs_dequeue_ahead_of_queued_compute_jobsandworker_pool_prioritizes_graphics_pipeline_over_queued_compute.Tested
32.0.16.1742, wave32), AMD Ryzen 7 7800X3D, 32 GB RAM, Windows 11 Pro 10.0.26200, DXC 1.9.2609.5,rustc 1.93.1 (01f6ddf75 2026-02-11), debug (tests) and release (smoke).766b661),cargo build --workspacepassed andcargo test -p xcl --lib pso_async -- --nocapturereported 4 passed, 0 failed, 0 ignored and 0 skipped.ac387a1),cargo build --workspace && cargo test --workspace -- --test-threads=4reported 688 passed, 0 failed, 41 ignored.SKIPPEDGPU tests (2, no wave64 on this adapter):gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware.Wait64BitValueXstall.Regression run
Not tested
pso_asyncunit tests cover queue priority.AI use
WorkQueuepriority scheduling and unit tests inpso_async.rs, ran the test suite and smoke runs on the hardware listed above, and drafted this description.gpt-6.2-sol) resolved the rebase conflict, ran the post-rebase build and focused tests, and refreshed the regression runs and PR description.