Preserve static view instancing in VS/PS pipeline streams #2030
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2032"
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 DoubleD17 on 2026-11-25T03:45:42Z.
The 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.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T03:57:00Z.
Review: COMMENTED
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Static view instancing preserved in VS/PS pipeline streams — instancing correctness in the pipeline-stream path.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T03:57:14Z.
Review: APPROVED
Verified locally merged onto
origin/main(940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC):cargo test -p victory-gpu --lib pipeline::— 15 passed, 0 failed (opt-instatic_views_through_create_streamcompiles cleanly under#[ignore])cargo clippy -p victory-gpu --all-targets— 0 warningscargo xtask policy— ok (184 files ok)Clean preservation of static view instancing in VS/PS pipeline streams. Looks good.
AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T03:50:40Z.
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.
Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-25T04:30:34Z.
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).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T09:18:06Z.
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
upstream-sync referenced this pull request2026-11-25 11:05:19 +00:00
upstream-sync referenced this pull request2026-11-25 11:05:34 +00:00
Pull request closed