GPU: keep PSO compile deferrals local to each attempt #3648
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3648
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3648"
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?
@ghptc on GitHub · 2026-11-30 02:49 UTC · original
ghptc:fix/pso-attempt-deferral→main· +209 −163 · 6 files · 1 commits · closed without mergingWhat changes
A PSO compile that the memory admission guard defers currently returns the same HRESULT as a native allocation failure. That can log a driver refusal and reach the diagnostic Create path while admission has declined the compile. The direct prewarmer reuses a thread across builds, so the previous attempt's thread-local deferral can also stick around for the next PSO.
Carry the admission decision as a result local to each creation attempt. A guard deferral skips driver diagnostics and fallback and leaves the PSO pending for its existing cooldown. A native error keeps its original HRESULT and takes the existing failure path. Library hits still return before the Create gate. The patch uses the wait logic and library counters in upstream main.
This addresses classification and the fallback on a denied attempt. The existing
VICTORY_SHADER_CAPS=1retry after a genuine driver failure still uses its direct Create path. The patch adds no driver OOM recovery, and the tests cover no gameplay or FPS claims.Credit Gabriele Cabrini for the deferral diagnosis in #2743 and steven-seagull27 for the related classification and CAPS controls in #2578. Those proposals consult a thread-local flag. This patch carries the guard result to the caller for each attempt.
Validation
Built the exact upstream port
a73a90e9c54c81dc0860986a79be6b247326d1a9forx86_64-pc-windows-msvcwith Cargo offline. Seven selected libtests passed under headless Proton. They cover a denied permit followed by genuineE_INVALIDARGandE_OUTOFMEMORY, isolation across threads, pending state, panic handling and the existing compute wait accounting. The tests use synthetic results and do not need a GPU or game data.@trustno1-coder on GitHub · 2026-12-01 18:50 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed