GPU: report pipeline creation and loads after they succeed #2957
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2959"
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?
Imported from Marvisak/VIctory. Originally posted by necrobytes on 2026-11-26T01:31:18Z.
When D3D12 cannot create a host pipeline library,
VICTORY_PIPELINE_LOGwritesbuilt … loadedfor a pipeline the driver just created. In a short Proton run, all tenbuiltrecords saidloadedafter VIctory reported that the library was unavailable. A failed create could also leave abuiltrecord 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_texturetest passed readback on both versions. Its single fresh compute pipeline changed fromloadedtomadein 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.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T01:50:59Z.
Review: COMMENTED
Reviewed and verified against
main(63bcca43) on Windows 11 (RTX 5090 + WARP,VICTORY_D3D12_DEBUG=1) — clean fix and ready to merge:LAST.set(None)at the entry ofpipeline_in(crates/victory-gpu/src/pipeline/library.rs:270-308) and recordingLASTonly aftercreate()?orload(...)succeeds guaranteeslog_built(make.rs:148) never attributes a worker's previous successful pipeline to a newly refused one.pipeline_inalso letsa_pipeline_loads_while_a_save_holds_the_libraryand the newa_refused_pipeline_has_no_built_recordrun deterministically against temporary directories without relying on a pre-existing on-disk library.Local verification:
cargo test --locked -p victory-gpu --lib pipeline::: 23/23 passed on both RTX 5090 and WARP (VICTORY_D3D12_DEBUG=1)cargo clippy --locked -p victory-gpu --tests -- -D warnings(default &--features diagnostics): 0 warningscargo xtask policy: 191 files okImported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-26T02:24:14Z.
Review: COMMENTED
Verified the bug: LAST.set() ran before the load attempt, so a refused pipeline inherited an earlier success's record. Now LAST is cleared up front and set at each actual outcome (loaded→true, made→false, refused→None). pipeline_in's Option<&Shared> injection is a clean way to test both paths. Consistent with the panic-drain fix in #2980.
Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T05:45:23Z.
Review: APPROVED
Tested locally merged onto
origin/main(63bcca4) on Windows 11 x64 (NVIDIA GeForce RTX 5090 + WARP):LASTon entry topipeline_inand incrementingMADE/ settingLASTonly aftercreate()orload()succeeds ensures failed pipeline creations are never misreported as created or loaded (and never inherit an earlier worker record).cargo test -p victory-gpu --features diagnostics pipeline::library::tests -- --test-threads=1(RTX 5090): 12 passed, 0 failed (includinga_refused_pipeline_has_no_built_record).VICTORY_WARP=1 cargo test -p victory-gpu --features diagnostics pipeline::library::tests -- --test-threads=1(WARP): 12 passed, 0 failed.cargo clippy -p victory-gpu --features diagnostics --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T05:25:42Z.
Automated triage for the maintainers.
Merge candidate (recommending a look, not approving). On
main,library::pipelineincrates/victory-gpu/src/pipeline/library.rssets the diagnosticsLASTrecord toloadedbefore it knows the outcome. Without a library, it then returnscreate()with that record still sayingloaded, and it bumpsMADEeven when the create fails. With this PR,MADE/LOADEDandLASTare recorded only after a load or create succeeds, and a failed request clearsLAST, somake::log_builtwrites nothing for it. The newpipeline_insplit lets the tests force the no-library path;a_refused_pipeline_has_no_built_recordand the extended load-during-save test check the records the log should show. CIcheckpasses.Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.