GPU: keep the initial pipeline of new command lists #461

Closed
github-bot wants to merge 1 commit from gh-pr/461/head into gh-pr/461/base
Owner

@⁠fuzeofficlal on GitHub · 2026-11-24 03:42 UTC · original
fuzeofficlal:fix/initial-command-list-pso → main · +82 −6 · 2 files · 1 commits · closed without merging

Both command-list creation entry points accept an initial pipeline state. Forward it into the list's draw state so the first draw or dispatch can use it when the caller sets the PSO at creation. Host pipeline creation stays lazy.

The synthetic regression creates a shim pipeline and passes it to the regular and X command-list entry points. Both calls returned success on main but stored a null pipeline. With this change both retain the supplied pipeline, and ResetX and Reset still clear and restore the pipeline as requested.

The GPU test suite passed on Windows with 46 tests in diagnostics and 44 in the default build, with one ignored benchmark in each configuration. The focused regression also passed with WARP. The staged asset policy check passed.

**@⁠fuzeofficlal** on GitHub · 2026-11-24 03:42 UTC · [original](https://github.com/Marvisak/VIctory/pull/461) `fuzeofficlal:fix/initial-command-list-pso` → `main` · +82 −6 · 2 files · 1 commits · closed without merging Both command-list creation entry points accept an initial pipeline state. Forward it into the list's draw state so the first draw or dispatch can use it when the caller sets the PSO at creation. Host pipeline creation stays lazy. The synthetic regression creates a shim pipeline and passes it to the regular and X command-list entry points. Both calls returned success on main but stored a null pipeline. With this change both retain the supplied pipeline, and ResetX and Reset still clear and restore the pipeline as requested. The GPU test suite passed on Windows with 46 tests in diagnostics and 44 in the default build, with one ignored benchmark in each configuration. The focused regression also passed with WARP. The staged asset policy check passed.
Seed draw state with the optional pipeline from both list creation entry points. The regression covers creation and Reset using a synthetic pipeline object.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:04:54 +00:00
github-bot closed this pull request 2026-11-26 04:04:54 +00:00
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 03:46 UTC · original

Verified bf84506 on Arch Linux x86_64, Windows MSVC release build under Wine 11.22 (victory-gpu, --test-threads=1): 44 passed, 0 failed, 1 ignored.

Not covered: title command lists that are opened, submitted and reused in the world (no game data here).

**@⁠DaviTostes** on GitHub · 2026-11-24 03:46 UTC · [original](https://github.com/Marvisak/VIctory/pull/461#issuecomment-7121401405) Verified `bf84506` on **Arch Linux x86_64**, Windows MSVC release build under **Wine 11.22** (`victory-gpu`, `--test-threads=1`): **44 passed, 0 failed, 1 ignored**. Not covered: title command lists that are opened, submitted and reused in the world (no game data here).
Author
Owner

@⁠LocranKing on GitHub · 2026-11-24 04:18 UTC · original

Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, MSVC 1.98.1).

Tested

  • Commit: bf84506 (pr-461, clean tree)
  • Environment: Windows 11 Home Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (driver 32.0.16.2101), Rust 1.98.1 (x86_64-pc-windows-msvc)
  • cargo xtask policy: asset policy: 151 files ok
  • cargo test --workspace: 265 passed, 0 failed, 4 ignored
  • diag build (VICTORY_D3D12_DRED=1) live boot/first-screen run (45 s) on RTX 3060 Ti:
    • 30.0–30.1 fps, 33.3–33.4 ms/frame (0.2 ms preparing, 0.1 ms copies, 1.2–4.8 ms on the GPU, 0.0 ms copying back), 13 draws/frame, 0 dropped (frame=1024: 6656/6656 draws, 512/512 dispatches).
    • copystat (steady state): 14.9–15.4 submissions, 70–72 title copies (0.1 MB), 75–77 refreshes (62.9–65.0 MB), 10 watches (0.14–0.16 ms), 0–1 page faults. crashes.log empty.

Not tested: World streaming past the first screens, D3D12 debug layer (VICTORY_D3D12_DEBUG=1), AMD GPUs.

AI use: Antigravity (Gemini 4 Hydrogen) ran the checks and diagnostics run and drafted this report from the logs.

**@⁠LocranKing** on GitHub · 2026-11-24 04:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/461#issuecomment-7121899070) Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, MSVC `1.98.1`). **Tested** - Commit: `bf84506` (`pr-461`, clean tree) - Environment: Windows 11 Home Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (driver `32.0.16.2101`), Rust `1.98.1` (`x86_64-pc-windows-msvc`) - `cargo xtask policy`: `asset policy: 151 files ok` - `cargo test --workspace`: **265 passed, 0 failed, 4 ignored** - `diag` build (`VICTORY_D3D12_DRED=1`) live boot/first-screen run (45 s) on RTX 3060 Ti: - **30.0–30.1 fps**, `33.3–33.4 ms/frame` (`0.2 ms` preparing, `0.1 ms` copies, `1.2–4.8 ms` on the GPU, `0.0 ms` copying back), `13` draws/frame, `0` dropped (`frame=1024`: `6656/6656` draws, `512/512` dispatches). - `copystat` (steady state): `14.9–15.4` submissions, `70–72` title copies (`0.1 MB`), `75–77` refreshes (`62.9–65.0 MB`), `10` watches (`0.14–0.16 ms`), `0–1` page faults. `crashes.log` empty. **Not tested:** World streaming past the first screens, D3D12 debug layer (`VICTORY_D3D12_DEBUG=1`), AMD GPUs. **AI use:** Antigravity (`Gemini 4 Hydrogen`) ran the checks and diagnostics run and drafted this report from the logs.
Author
Owner

@⁠mercuryVM on GitHub · 2026-11-24 05:47 UTC · original

Correction to my review: the #[cfg(not(windows))] let _ = pipeline; is needed, since the state field is #[cfg(windows)]. Please ignore that nit; the approval stands.

AI-assisted (Claude Code).

**@⁠mercuryVM** on GitHub · 2026-11-24 05:47 UTC · [original](https://github.com/Marvisak/VIctory/pull/461#issuecomment-7123279147) Correction to my review: the `#[cfg(not(windows))] let _ = pipeline;` is needed, since the `state` field is `#[cfg(windows)]`. Please ignore that nit; the approval stands. AI-assisted (Claude Code).
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:03 UTC · original

Automated triage for the maintainers. Closing because another open pull request covers the same change.

See #1446. Keeps the initial pipeline passed at list creation; #1446 does the same and merges clean.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:03 UTC · [original](https://github.com/Marvisak/VIctory/pull/461#issuecomment-7148084288) Automated triage for the maintainers. Closing because another open pull request covers the same change. See #1446. Keeps the initial pipeline passed at list creation; #1446 does the same and merges clean. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!461
No description provided.