GPU: list only pipelines retained by the host library as prebuilt #2336
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2336
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 10:56 UTC · original
andrewpozdnakov7-jpg:codex2/prebuilt-requires-library-entry→main· +187 −22 · 3 files · 4 commits · openPrebuild::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]>.@andrewpozdnakov7-jpg on GitHub · 2026-11-25 13:11 UTC · original
@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.
@Marvisak on GitHub · 2026-11-25 15:23 UTC · original · edited 2026-11-26 00:20 UTC
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
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 22:55 UTC · original
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.
@fuzeofficlal on GitHub · 2026-11-26 00:46 UTC · original
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.