Repository navigation
GPU: report pipeline creation and loads after they succeed - #2959
necrobytes wants to merge 1 commit into
Conversation
Signed-off-by: necrobytes <11080534+necrobytes@users.noreply.github.com>
fuzeofficlal
left a comment
There was a problem hiding this comment.
Reviewed and verified against main (63bcca43) on Windows 11 (RTX 5090 + WARP, VICTORY_D3D12_DEBUG=1) — clean fix and ready to merge:
- Clearing
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. - Refactoring
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 ok
kotekompotek
left a comment
There was a problem hiding this comment.
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.
|
Automated triage for the maintainers. Merge candidate (recommending a look, not approving). On Generated by Claude Code |
Dukestar69
left a comment
There was a problem hiding this comment.
Tested locally merged onto origin/main (63bcca4) on Windows 11 x64 (NVIDIA GeForce RTX 5090 + WARP):
- Diff review: Clearing
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).
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.