Repository navigation
GPU: a skipped pipeline is not started early either - #172
Closed
ericomeehan wants to merge 1 commit into
Closed
ericomeehan wants to merge 1 commit into
ericomeehan wants to merge 1 commit into
Conversation
VICTORY_SKIP_PIPELINES was only checked at draw and dispatch time. A pipeline an earlier run drew with is on the persisted early list and make::early starts its host compile when the title creates it, so a skipped pipeline whose driver compile crashes still crashed the run. skipped_shader now takes the pipeline's shaders, and make::early returns for a pipeline with a skipped shader. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JustDownTV
pushed a commit
to JustDownTV/victory-gta6
that referenced
this pull request
Nov 24, 2026
RicerBoy
added a commit
to RicerBoy/DropItLikeItsHot
that referenced
this pull request
Nov 24, 2026
…e is not started early either Part of #16 # Conflicts: # crates/victory-gpu/src/pipeline.rs
This was referenced Nov 25, 2026
RecompLive
pushed a commit
to RecompLive/victory-fork
that referenced
this pull request
Nov 25, 2026
XMA: cache IMDCT rotation tables per subframe size
oceansde012
pushed a commit
to oceansde012/victory-gta6
that referenced
this pull request
Nov 25, 2026
XMA: cache IMDCT rotation tables per subframe size (cherry picked from commit 7d99f63)
oceansde012
pushed a commit
to oceansde012/victory-gta6
that referenced
this pull request
Nov 25, 2026
…is not started early either (by Claude)
Revens2
pushed a commit
to Revens2/VItoriaBr
that referenced
this pull request
Nov 25, 2026
…-fork#172) (cherry picked from commit aa28528ac4596f07945070e33d545a6a52f2ce9e)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
VICTORY_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 (comment)), 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 since d279e69. 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 GPU: key the shader cache by the translator's sources, and keep early pipeline starts off the title's processors #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