CLI: reject VS+GS graphics pipelines in prebuild #2592
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!2592
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2592"
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?
@fuzeofficlal on GitHub · 2026-11-25 16:22 UTC · original
fuzeofficlal:fix/cli-prebuild-reject-vs-plus-gs→main· +224 −53 · 1 files · 1 commits · openSummary
Fixes
apps/victory/src/prebuild.rssilently dropping the geometry shader stage when a shaderpack graphics record carries bothVS(stages[1]) andGS(stages[2]):prepareonly checkedg.stages[3..](ES/HS/LS/fetch) and then usedvs.or(gs). When bothvsandgswere present,vs.or(gs)pickedvsand droppedgs, passing a bogus VS+PS stream without a geometry shader toPrebuild::graphicsand persisting an unreachable PSO under the wrong key (whereas runtimeHostPipeline::newrejects geometry stages).prepare_graphics, explicitly rejectingvs.is_some() && gs.is_some()alongsideg.stages[3..]as"stages other than vertex, mesh and pixel", and usesvs.xor(gs)for the single first stage.shaders_of_graphics/format_stagesso diagnosticVICTORY_PREBUILD_KEYSoutput lists all present stages (preserving the existing[vertex ..., pixel ...]and[mesh ..., pixel ...]formatting while no longer hidingGSbehindVSor labeling standaloneHwStage::Gsasmesh).Verification
prebuild::tests::prepare_rejects_vs_plus_gs_while_allowing_vs_and_ms_pipelines(apps/victory/src/prebuild.rs) coveringVS+PS,MS+PS,VS+GS+PS, and unresolvedVS+GSrecords.cargo test -p victory -- --test-threads=1(11 unit + 2 integration passed)cargo clippy -p victory --all-targets -- -D warnings(default and--features diagnostics)cargo xtask policy@Marvisak on GitHub · 2026-11-25 22:21 UTC · original
Automated triage for the maintainers.
Merge candidate. In
apps/victory/src/prebuild.rs,preparechecked onlystages[3..]and then tookvs.or(gs). A record with both a vertex and a geometry program was therefore prebuilt as VS+PS, with the geometry stage silently dropped, and stored under that record's key. The runtime'sHostPipeline::new(victory-gpu/src/pipeline/host.rs) refuses any stage other than vertex, mesh, pixel and compute, so that prebuilt pipeline could never be used as stored.prepare_graphicsnow rejects VS+GS with the existing message and picks the first stage withxor.shaders_of_graphicslists every stage present forVICTORY_PREBUILD_KEYS, and the vertex/mesh + pixel output format is unchanged. The test builds synthetic records for VS+PS, MS+PS and VS+GS(+PS).CI:
checkpassing. Merges cleanly into currentmain. A recommendation to look at it, not an approval.Generated by Claude Code
@futurepro62 on GitHub · 2026-11-26 01:32 UTC · original
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
dd2d861(on its baseda82e44).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 774 passed, 0 failed, 9 ignored.prepare_rejects_vs_plus_gs_while_allowing_vs_and_ms_pipelines.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
@andrewpozdnakov7-jpg on GitHub · 2026-11-26 15:57 UTC · original
The #2787 prebuild optimization now composes with this stage check in
3e2bb33. Both paths reject VS+GS before looking up keys or containers, and the diagnostic record still lists geometry alongside vertex and pixel. The shared regression and all 19 CLI tests pass. The maintainers can choose the merge order. Full check in #2787.Please retain the Git authors on pickup. If folding the integration or its test into another commit, use
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.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.