GPU: retry a mesh pipeline refused with E_OUTOFMEMORY after making room #2888

Open
github-bot wants to merge 1 commit from github-bot/gh-2888 into main AGit
Owner

@⁠SlyWater on GitHub · 2026-11-29 18:34 UTC · original
SlyWater:fix/mesh-pipeline-oom-retry → main · +23 −1 · 1 files · 1 commits · open

What happens

host_pipeline treats a mesh pipeline the driver refuses as final: refused::failed("mesh", ...) records it once and returns None. When the refusal is E_OUTOFMEMORY — seen on 8 GB cards while an upload burst holds the device budget — every draw that needs that pipeline is dropped for the rest of the run. #2464 reports exactly this ("56 host pipelines failed (51 mesh), never retried"), and it shows as missing objects after a load; #2693 has the same card pressure.

Change

Only for E_OUTOFMEMORY: free idle texture memory (resource::let_go_idle) and spare upload chunks (host::trim_spare_chunks), wait 200 ms and ask the driver again, at most four times. Any other refusal is unchanged, and one that persists ends as before (None, logged once).

The retry is bounded (under a second on a pipeline worker) and logs once if it succeeds.

Tested

Built and run on Windows 11, i5-12400F, RTX 3070 8 GB, title 1.0.2.1, Series S 1080p:

  • the path for refusals other than E_OUTOFMEMORY is unchanged;
  • on this card the same mesh programs were refused on every attempt (the driver answered 0x8007000E on each), so the retry did not turn them into pipelines here. The value is for the transient case during upload bursts, which this machine did not reproduce.

No game files, dumps or title logs are included.

**@⁠SlyWater** on GitHub · 2026-11-29 18:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2888) `SlyWater:fix/mesh-pipeline-oom-retry` → `main` · +23 −1 · 1 files · 1 commits · open ## What happens `host_pipeline` treats a mesh pipeline the driver refuses as final: `refused::failed("mesh", ...)` records it once and returns `None`. When the refusal is `E_OUTOFMEMORY` — seen on 8 GB cards while an upload burst holds the device budget — every draw that needs that pipeline is dropped for the rest of the run. #2464 reports exactly this ("56 host pipelines failed (51 mesh), never retried"), and it shows as missing objects after a load; #2693 has the same card pressure. ## Change Only for `E_OUTOFMEMORY`: free idle texture memory (`resource::let_go_idle`) and spare upload chunks (`host::trim_spare_chunks`), wait 200 ms and ask the driver again, at most four times. Any other refusal is unchanged, and one that persists ends as before (`None`, logged once). The retry is bounded (under a second on a pipeline worker) and logs once if it succeeds. ## Tested Built and run on Windows 11, i5-12400F, RTX 3070 8 GB, title 1.0.2.1, Series S 1080p: - the path for refusals other than `E_OUTOFMEMORY` is unchanged; - on this card the same mesh programs were refused on every attempt (the driver answered `0x8007000E` on each), so the retry did not turn them into pipelines here. The value is for the transient case during upload bursts, which this machine did not reproduce. No game files, dumps or title logs are included.
A mesh pipeline is refused with E_OUTOFMEMORY while an upload burst holds the card's budget, and refused::failed records it once and returns None: the draws that need it stay dropped for the rest of the run (#2464: 56 host pipelines failed, 51 mesh, never retried). On 8 GB cards this is what leaves objects missing after a load.

Only for E_OUTOFMEMORY, give idle texture memory back (resource::let_go_idle) and spare upload chunks (host::trim_spare_chunks), then ask the driver again up to four times, 200 ms apart (under a second in all). Other refusals behave as before. The retry logs once if it succeeds.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 18:34:44 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/pipeline/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2888/head:github-bot/gh-2888'
git switch 'github-bot/gh-2888'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2888'
git switch 'github-bot/gh-2888'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2888'
git switch 'github-bot/gh-2888'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2888'
git switch 'main'
git merge --squash 'github-bot/gh-2888'
git switch 'main'
git merge --ff-only 'github-bot/gh-2888'
git switch 'main'
git merge 'github-bot/gh-2888'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2888
No description provided.