GPU: report pipeline creation and loads after they succeed #2959

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

@⁠necrobytes on GitHub · 2026-11-26 01:31 UTC · original
necrobytes:fix/pipeline-log-outcomes → main · +58 −16 · 1 files · 1 commits · open

When D3D12 cannot create a host pipeline library, VICTORY_PIPELINE_LOG writes built … loaded for a pipeline the driver just created. In a short Proton run, all ten built records said loaded after VIctory reported that the library was unavailable. A failed create could also leave a built record and increment the creation count.

Record the outcome after a successful load or create. Both creation paths share the same bookkeeping, and a failed request clears the worker’s previous diagnostic record. This matters when using the trace to decide whether a warm run reused a pipeline. It also applies to hosts where an empty library is unavailable independently of #1722.

I verified this on Fedora 45 with an RX 9060 XT, RADV 26.2.7 and Proton Experimental. The regression tests force the missing-library path even on a host that supports pipeline libraries. With the original bookkeeping, the first-create and refused-create tests both failed. With the fix, both passed. In a fresh test process, one failed create moved the cumulative creation count from 0 to 1 on main and left it at 0 with the fix. The existing synthetic placed_uav_dispatch_writes_its_texture test passed readback on both versions. Its single fresh compute pipeline changed from loaded to made in the trace.

Workspace Clippy passed on the Windows GNU target with all targets and warnings denied, both with default features and with all features enabled. The staged asset-policy check passed. An additional native Linux workspace test build stopped in the unchanged shader crate on references to its Windows-only DXIL validator.

Claimed in the coordination thread. AI-assisted with Codex.

**@⁠necrobytes** on GitHub · 2026-11-26 01:31 UTC · [original](https://github.com/Marvisak/VIctory/pull/2959) `necrobytes:fix/pipeline-log-outcomes` → `main` · +58 −16 · 1 files · 1 commits · open When D3D12 cannot create a host pipeline library, `VICTORY_PIPELINE_LOG` writes `built … loaded` for a pipeline the driver just created. In a short Proton run, all ten `built` records said `loaded` after VIctory reported that the library was unavailable. A failed create could also leave a `built` record and increment the creation count. Record the outcome after a successful load or create. Both creation paths share the same bookkeeping, and a failed request clears the worker’s previous diagnostic record. This matters when using the trace to decide whether a warm run reused a pipeline. It also applies to hosts where an empty library is unavailable independently of #1722. I verified this on Fedora 45 with an RX 9060 XT, RADV 26.2.7 and Proton Experimental. The regression tests force the missing-library path even on a host that supports pipeline libraries. With the original bookkeeping, the first-create and refused-create tests both failed. With the fix, both passed. In a fresh test process, one failed create moved the cumulative creation count from 0 to 1 on main and left it at 0 with the fix. The existing synthetic `placed_uav_dispatch_writes_its_texture` test passed readback on both versions. Its single fresh compute pipeline changed from `loaded` to `made` in the trace. Workspace Clippy passed on the Windows GNU target with all targets and warnings denied, both with default features and with all features enabled. The staged asset-policy check passed. An additional native Linux workspace test build stopped in the unchanged shader crate on references to its Windows-only DXIL validator. Claimed in [the coordination thread](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633). AI-assisted with Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:18:39 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-26 05:25 UTC · original

Automated triage for the maintainers.

Merge candidate (recommending a look, not approving). On main, library::pipeline in crates/victory-gpu/src/pipeline/library.rs sets the diagnostics LAST record to loaded before it knows the outcome. Without a library, it then returns create() with that record still saying loaded, and it bumps MADE even when the create fails. With this PR, MADE/LOADED and LAST are recorded only after a load or create succeeds, and a failed request clears LAST, so make::log_built writes nothing for it. The new pipeline_in split lets the tests force the no-library path; a_refused_pipeline_has_no_built_record and the extended load-during-save test check the records the log should show. CI check passes.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-26 05:25 UTC · [original](https://github.com/Marvisak/VIctory/pull/2959#issuecomment-7183476225) <!-- victory-triage v1 head=1355a2a0ff4944261056cb1e3d1f6166a71d1a3f verdict=merge-candidate at=2026-11-26T05:27:00Z --> Automated triage for the maintainers. **Merge candidate** (recommending a look, not approving). On `main`, `library::pipeline` in `crates/victory-gpu/src/pipeline/library.rs` sets the diagnostics `LAST` record to `loaded` before it knows the outcome. Without a library, it then returns `create()` with that record still saying `loaded`, and it bumps `MADE` even when the create fails. With this PR, `MADE`/`LOADED` and `LAST` are recorded only after a load or create succeeds, and a failed request clears `LAST`, so `make::log_built` writes nothing for it. The new `pipeline_in` split lets the tests force the no-library path; `a_refused_pipeline_has_no_built_record` and the extended load-during-save test check the records the log should show. CI `check` passes. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2959'
git switch 'github-bot/gh-2959'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2959'
git switch 'github-bot/gh-2959'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2959'
git switch 'main'
git merge --squash 'github-bot/gh-2959'
git switch 'main'
git merge --ff-only 'github-bot/gh-2959'
git switch 'main'
git merge 'github-bot/gh-2959'
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/Marvisak--VIctory!2959
No description provided.