Repository navigation
GPU diagnostics: skip host pipeline creation by shader hash - #1320
gurvancampion wants to merge 1 commit into
Conversation
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; this is source review plus the PR's own Windows tests.
VICTORY_SKIP_PIPELINES now skips host pipeline creation, not just draws: Pending::new computes skipped_shader once, pre-publishes made=None so ready() answers immediately, and early()/queueing are bypassed (made.get().is_none() guard). Draw/dispatch accounting (is_skipped, note_drop) reads the stored hash instead of recomputing. parse_skip_hashes moved to cfg(all(feature=diagnostics, any(windows, test))) so the parsing test runs anywhere the crate does. The new skipped_pipeline_stays_off_the_queue test verifies neither cold nor warm pipelines queue workers. Sound; diagnostics-only feature.
|
Automated triage for the maintainers. Merge candidate. This now merges cleanly into With What I checked:
The README row is a one-line wording update. Not changed by this PR: the report in the comment above that a skipped direct dispatch may not log a drop reason on Generated by Claude Code |
|
Rebased this onto Triage asked for a rebase, so I did one to see what it would take. Setup: RTX 3080 (driver 621.24), Ryzen 7 5800X, 32 GB, Windows 11 26300, pinned What the rebase runs into
Checks on the rebased tree
The two failures are The claim itself, measured. Three short boot-only runs with the local title, one compute program created early in boot used as the probe (same warm cache, same scripted input):
So on One half I could not verify. "Draw and dispatch diagnostics keep reporting I have not pushed anything; the rebase is local and the resolution is described above so it stays your commit. Nothing from the game here: test counts, log line kinds and timings. Inputs were the local title for the three runs and synthetic for everything else. AI-assisted (Claude Code); results are from the runs and builds described. |
70b92d9 to
3d87d02
Compare
Summary
VICTORY_SKIP_PIPELINESfilters commands during recording, after an early cache hit or a host lookup can already send the matching pipeline to a worker.Pending::newnow records the matching hash and marks the host result complete and absent.earlyandreadyleave it off the queue. Draw and dispatch diagnostics keep reportingskipped shader {hash}.This extends the diagnostic used to isolate pipeline compilation crashes. Issue #144
Evidence
pipeline::make::tests::skipped_pipeline_stays_off_the_queuefailed on base with both queue flags set (0 passed, 1 failed). It passed on head (1 passed, 0 failed) and checked that both pipelines were complete and the synthetic shader was untranslated. Run withcargo xwin test -p victory-gpu --features diagnostics --locked --target x86_64-pc-windows-msvc pipeline::make::tests::skipped_pipeline_stays_off_the_queue.cargo xwin clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warningspassed on both revisions.cargo xwin clippy --workspace --all-targets --all-features --locked --target x86_64-pc-windows-msvc -- -D warningspassed on both revisions.cargo xwin test -p victory-gpu --features diagnostics --locked --target x86_64-pc-windows-msvcpassed under GE-Proton with Vulkan disabled. Base had 53 passes. Head had 54 passes. Both had one ignored test.cargo xwin test --workspace --locked --target x86_64-pc-windows-msvc --no-fail-fastrecorded 322 passes on each revision. With--all-features, base recorded 326 passes and head recorded 327. Both modes had the same 20 failures on base and head under no-GPU Wine, plus six ignored tests. The runs passed with those 20 cases filtered. The cases require a shader-model-6.6 device or Wine support for windows, a networking export, a nested Cargo build, or Git.cargo test -p xtask --locked repository_passes_policypassed natively on both revisions.cargo xtask policy --stagedpassed for all three changed files.cargo fmt --all -- --checkreported existing formatting differences on both revisions. Changed Rust lines pass againstrustfmt.toml.git diff --check origin/main HEADpassed.Not verified
Native Windows, live D3D12 and the retail title were outside this no-GPU run. Existing platform errors prevent full native Linux workspace tests and Clippy.
Merge Danger
A revert restores record-time filtering for matching Windows diagnostics pipelines. The pipeline cache format stays compatible.
AI disclosure
OpenAI Codex (
gpt-6.2-sol) assisted with the implementation, synthetic tests, verification, and PR draft. Antigravity (Gemini 4 Neon) coordinated and reviewed the diff. The author reviewed the diff and description before opening the PR.