Preserve static view instancing in VS/PS pipeline streams #2032
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!2032
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2032/head"
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?
@DoubleD17 on GitHub · 2026-11-25 03:45 UTC · original
DoubleD17:port/fxceless-604→main· +641 −27 · 3 files · 1 commits · closed without mergingThe graphics pipeline stream parser advances past VIEW_INSTANCING without retaining the static view locations. Copy supported VS/PS viewport and render-target slice pairs into pipeline state, preserve their order in the library key, and use the D3D12 pipeline stream for creation and loading. On Windows 11 with D3D12 WARP (DXGI 1414:008C, View Instancing Tier 1), the same synthetic create_stream fixture changed the viewport case from 16/0 to 16/16 pixels and verified the two-slice case, distinct library keys, creation and reload, and the existing masked-descriptor fallback. Four pipeline tests also passed. Validation covers the synthetic WARP scenario.
Adapted from fxceless/victory-fork #604.
AI-assisted.
@jeremygold02 on GitHub · 2026-11-25 03:50 UTC · original
Triage verdict — Keep, add an adapter fallback before merge (
ce61651)Evidence
D3D12_OPTIONS3.ViewInstancingTier. Tier 0 does not support multiple views, so a pipeline that currently gets a single-view approximation can instead fail creation. The WARP fixture requires a supported tier and cannot exercise that fallback. PSO selection · WARP fixture · D3D12 capability tiersChecks and limits
Next step
This verification was AI-assisted.
@upipibi on GitHub · 2026-11-25 04:30 UTC · original
Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at
ee3a7dc.cargo test -p victory-gpu --locked: 141 passed, 2 failed, 2 ignored. The 2 are #1744's heap-cap failures onmain. The new tests aren't in this run:view_instancing_testiscfg(all(test, feature = "diagnostics")).--features diagnostics:graphics_view_selection_uses_effective_library_statepasses.--features diagnostics,VICTORY_D3D12_WARP=1and--ignored:static_views_through_create_streampasses.Since the default
cargo testskips both, a reviewer who runs only that doesn't exercise this PR's tests. Same asmainon this hardware. Not run: a title.AI-assisted (Claude Code).
@Marvisak on GitHub · 2026-11-25 09:18 UTC · original
Automated triage for the maintainers.
Needs work.
pipeline.rsread_streamnow keeps the view-instancing subobject (type 22).pipeline/host.rsGraphicsState::read_viewscopies its static view locations, andHostPipelinebuilds a stream PSO (graphics_view_pipeline) when views are present. The code reads cleanly. The tier fallback that an earlier comment asked for is already in this head (effective_viewsfalls back to no views below tier 1 when more than one view is requested). Still, this changes GPU state handling with only a synthetic WARP fixture behind it:GraphicsState::read_viewsreads the console subobject's payload at +8 as a PCD3D12_VIEW_INSTANCING_DESC(count, pointer to locations, flags). Nothing shows that the console's type 22 has this layout and this meaning;mainonly knows its size. Please give the evidence, e.g. the title's own pipeline streams that carry this subobject with view locations, or documentation of the layout. A title pipeline that needs it would also show that the change matters.read_streamkeeps views only for VS/PS pipelines, so the geometry-shader branch ingraphics_view_pipeline(StreamWithGeometry) is never reached. Remove it or allow GS.cfg(all(test, feature = "diagnostics")), and the main one is#[ignore]and needs WARP. A plaincargo testand CI do not run them.What would change the verdict: evidence for the console subobject layout and a title pipeline that uses it.
CI: passing (
check).Generated by Claude Code
Pull request closed