GPU: a skipped pipeline is not started early either #172
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!172
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/172/head"
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?
@ericomeehan on GitHub · 2026-11-24 22:07 UTC · original
team/skip-early→main· +11 −4 · 2 files · 1 commits · closed without mergingVICTORY_SKIP_PIPELINESis only checked when a draw or dispatch runs (draw.rs, viais_skipped). A pipeline is started earlier than that when the title creates it, if an earlier run drew with it:hand_out→make::early→wanted_early→start(p, EARLY). The early list is saved to disk (library::save, every 20 s while workers finish pipelines, and on a normal exit) and only grows. So if a pipeline gets on the list before its host compile crashes the driver, every later run compiles it again at creation, skipped or not, and crashes the same way. The skip doesn't help, and only a fresh cache directory does.Seen in the field: on #145 (#145), a tester on an RX 9070 XT reports that
VICTORY_SKIP_PIPELINESalone did not stop the driver compiler crashes, because the skipped pipeline is still created, early sinced279e69. With a local change that doesn't create pipelines whose shader is skipped, plusVICTORY_SHADER_OPT=11and their two remaining crashing hashes skipped, they had no compiler crash in three runs. Credit to them for finding the gap. Their change sounds broader than this one, which covers only the early start. @hashdev512, if your local version also covers other paths (rectangle draws, say), it may be the better fix, and I'm happy to close this in its favour.This change:
pipeline.rs:skipped_shadertakes the pipeline's shaders (&[Arc<Shader>]) instead of thePipeline, so it can be asked about aPendingtoo. Matching, its cfg and its two callers' behaviour are unchanged. No new gated item.make.rs:earlyreturns at once when one of the pipeline's shaders is skipped. The check is under#[cfg(feature = "diagnostics")], which (inside the Windows-onlymakemodule) is the skip list's current gate.For dispatches, mesh dispatches and non-rectangle draws, the skip check already returns before
host_pipelineis asked, soearlywas the path left for skipped compute programs. A rectangle-topology draw still askshost_pipelinethroughcompletes_rects()before or regardless of the skip check. This PR doesn't change that.Notes for merging:
all(windows, feature = "diagnostics")towindows): one small textual conflict at theskipped_shadersignature, in either order. Keep their doc comment and#[cfg(windows)]with this PR's signature. Every way of resolving it builds:skipped_shaderstays one function under one gate, and the check inearlyis diagnostics-only, which falls inside either gate. After both merge, release builds still won't check the skip list inearly. Removing that#[cfg]line then would make the check apply there too.make.rs):git merge-treemerges it cleanly, and #147 doesn't changeearly.Checked: CI on a copy of this branch (clippy with and without
--all-features, tests). There's no new test: the change is one early return, andearlyneeds a device. The race itself comes from reading the code. I haven't reproduced a crash with it, and I couldn't run the title.Written with an AI assistant (Claude).
🤖 Generated with Claude Code
Pull request closed