GPU: list only pipelines retained by the host library as prebuilt #2334
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2336"
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 andrewpozdnakov7-jpg on 2026-11-25T10:56:41Z.
Prebuild::makeused to record every successfully created host PSO inprebuilt-pipelines.txt, even when D3D12 refusedStorePipeline. A later prebuild would skip that key although the library could not load the PSO.StorePipelinecan refuse an existing name or fail to allocate storage. D3D12 APIThe library now reports whether it loaded or stored the PSO. Prebuild adds the title key only in those cases. A PSO that was successfully created remains usable after a refused store.
The same synthetic Windows/WARP test on
940d32fand this patch seeded a conflicting library name. The incoming compute PSO was created andStorePipelinereturnedE_INVALIDARG. On940d32f, prebuild listed that key. With the change, the refused key stayed pending and the successfully stored control was the only key in the saved list. The focused pipeline suite passed 17 tests. The full GPU suite on app-local WARP passed 147 project tests with 2 ignored. Strict GPU Clippy with and without diagnostics and the staged asset policy passed.Coordination claim
Please retain the Git author when reapplying this change. If you fold it into another commit, please add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T11:03:09Z.
Review: COMMENTED
Static review only: victory-gpu is Windows-only; not compiled or tested on this macOS arm64 host. Only pipelines actually retained by the host library are listed as prebuilt (in_library threaded through HostPipeline) — fixes prebuilt listings for pipelines the library refused to store. Looks correct.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T11:31:45Z.
Review: COMMENTED
Tested against
origin/main(940d32f) on Windows 11 + NVIDIA GeForce RTX 5090 and WARP:cargo clippy -p victory-gpu --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.pipeline::host::tests::a_host_pipeline_refused_by_the_library_is_not_listed_as_prebuiltfails atcrates/victory-gpu/src/pipeline/host.rs:843:13— the spawned child test process (VICTORY_TEST_PIPELINE_STORE_REFUSAL=1) exits abnormally right after printingrunning 1 teston both hardware (RTX 5090) andVICTORY_WARP=1(15/16 passed inpipeline::).AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T13:11:07Z.
@DenRakEiw thanks for the failure report. bc52643 switches the fixture from FXC
cs_5_1to the same synthetic SM 6.6 DXIL emission path prebuild uses. The child now reports its last phase and Windows exit status if it stops early.The original
ac424bfran on local app-local WARP. Inbox WARP on this machine skipped at the directly indexed root signature. The updated fixture reaches the real duplicate-nameStorePipelinerefusal on940d32f, where it fails because the refused key is marked prebuilt. Onbc52643the same fixture persists only the successfully stored key. The full app-local WARP suite passed 147 project tests (0 failures, 2 ignored). Strict Clippy passed with and without diagnostics, and the asset policy passed.Could you rerun this test on the RTX 5090 at the new head? If it still stops early, the phase and exit status will narrow it down. For a forced software run,
victory-gpureadsVICTORY_D3D12_WARP=1when built with--features diagnostics.AI-assisted with Codex. Synthetic shaders only.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:23:53Z.
Automated triage for the maintainers.
Merge candidate.
library::pipeline(crates/victory-gpu/src/pipeline/library.rs) now returns aPipelineStatethat says whether the PSO was loaded from the library or stored in it, andPrebuild::make(pipeline.rs) lists a key as prebuilt only in that case. A PSO whoseStorePipelinewas refused stays pending and is still used. The merge with the depth-bounds stream builders inpipeline/host.rspasses the result throughstream_pipelineand everyHostPipelineconstructor.On your reply: the conflict resolution looks right. The new test re-runs its own test binary as a child process for the device's process-wide cache, which is the same pattern existing tests on
mainuse. CI: passing.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T22:55:43Z.
The #158 depth-bounds merge conflicted with the pipeline-library result in
pipeline/host.rs. I resolved it indaa944aon842b0cb. The new vertex and mesh stream builders still choose the depth-stencil state based on host support and now carry through the library result.On app-local WARP, the existing cache fixture confirmed that the stored key was persisted and the refused PSO remained pending. Both upstream depth-bounds tests passed in the same GPU suite, which finished with 247 passed and one ignored. Strict GPU Clippy in both configurations and the staged asset policy passed.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T00:46:35Z.
Code review and RTX 5090 + WARP verification at head
daa944a7b659merged cleanly ontomain(63bcca43c6a0):library.rs:258-300,pipeline/host.rs,pipeline.rs:672-674):PipelineState { pso, in_library }accurately threads library retention across all three pipeline paths (compute, mesh, graphics):falsewhen no library exists,trueonloadhit, andStorePipeline(...).is_ok()on fresh compile (without incrementingl.addedon failure such asE_INVALIDARG).Prebuild::make()callslibrary::note_prebuilt(key)only whenpipeline.in_libraryistrue, keepingprebuilt-pipelines.txtconsistent with the savedID3D12PipelineLibrary1blob across cold and incremental warm runs so refused pipelines are not falsely skipped later.VICTORY_D3D12_DEBUG=1, Rust 1.98.1):cargo xtask policy:191 files ok;cargo clippy --locked -p victory-gpu --tests -- -D warnings(default +--features diagnostics): 0 warningspipeline::: 24/24 passed default on RTX 5090; 27/27 passed (--features diagnostics) on both RTX 5090 and WARPa_host_pipeline_refused_by_the_library_is_not_listed_as_prebuiltexecuted end-to-end (unskipped) on both RTX 5090 and WARP through SM 6.6 DXIL compilation,StorePipelineE_INVALIDARGrefusal, save, andprebuilt-pipelines.txtcheck.LGTM.
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.