GPU: prioritize requested and early depth-only pipelines over early draw PSOs #164

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

@⁠dutch2005 on GitHub · 2026-11-25 18:06 UTC · original
perf/early-depth-pipeline-priority → main · +235 −32 · 2 files · 1 commits · closed without merging

GPU: prioritize requested and early depth-only pipelines over early draw PSOs

Backports three-tier pipeline worker priority from DexNom/VIctory while preserving separate ordinary and screen-pass worker pools plus lost-worker recovery:

  • Add GraphicsState::writes_depth_only (targets == 0, valid depth format, DepthEnable, DepthWriteMask::All) in pipeline/host.rs.
  • Replace Pending::queued + FIFO mpsc::channel with Pending::queue_state (NOT_QUEUED, EARLY, REQUESTED, MAKING) and per-pool Queue (requested > early_depth > early) + Condvar in pipeline/make.rs.
  • Add unit tests for writes_depth_only, priority promotion (EARLY -> REQUESTED), early_depth before early, pool worker execution, early(), and PEAK tracking.

Verification (RUST_TEST_THREADS=1):

  • victory-gpu --lib --locked -- --test-threads=1 --skip written_pages_are_reported_to_every_asker: 114 passed, 0 failed, 4 ignored (skipped pre-existing #102 flake).
  • cargo check -p victory-gpu --lib --tests --all-features --locked: passed.
  • cargo clippy -p victory-gpu --lib --tests --locked --no-deps: 0 warnings on touched lines.
  • cargo xtask policy --staged: 2 files ok.
  • cargo mutants --in-diff (-p victory-gpu): 27 mutants tested — 18 caught, 3 unviable, 6 timeouts (Queue::push/Queue::pop/worker/workers), 0 missed.
**@⁠dutch2005** on GitHub · 2026-11-25 18:06 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/164) `perf/early-depth-pipeline-priority` → `main` · +235 −32 · 2 files · 1 commits · closed without merging GPU: prioritize requested and early depth-only pipelines over early draw PSOs Backports three-tier pipeline worker priority from `DexNom/VIctory` while preserving separate ordinary and screen-pass worker pools plus lost-worker recovery: - Add `GraphicsState::writes_depth_only` (`targets == 0`, valid depth format, `DepthEnable`, `DepthWriteMask::All`) in `pipeline/host.rs`. - Replace `Pending::queued` + FIFO `mpsc::channel` with `Pending::queue_state` (`NOT_QUEUED`, `EARLY`, `REQUESTED`, `MAKING`) and per-pool `Queue` (`requested` > `early_depth` > `early`) + `Condvar` in `pipeline/make.rs`. - Add unit tests for `writes_depth_only`, priority promotion (`EARLY` -> `REQUESTED`), `early_depth` before `early`, pool worker execution, `early()`, and `PEAK` tracking. Verification (`RUST_TEST_THREADS=1`): - `victory-gpu --lib --locked -- --test-threads=1 --skip written_pages_are_reported_to_every_asker`: 114 passed, 0 failed, 4 ignored (skipped pre-existing #102 flake). - `cargo check -p victory-gpu --lib --tests --all-features --locked`: passed. - `cargo clippy -p victory-gpu --lib --tests --locked --no-deps`: 0 warnings on touched lines. - `cargo xtask policy --staged`: 2 files ok. - `cargo mutants --in-diff` (`-p victory-gpu`): 27 mutants tested — 18 caught, 3 unviable, 6 timeouts (`Queue::push`/`Queue::pop`/`worker`/`workers`), 0 missed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:37:00 +00:00
github-bot closed this pull request 2026-11-26 03:37:00 +00:00
Author
Owner

@⁠KernelSmoker on GitHub · 2026-11-25 18:08 UTC · original

Tested head 064d6db on Bazzite 45 with the RTX 3090, using the Windows GNU test binary under GE-Proton 10-34. The three pipeline::make::tests passed in one serial run and in 15 consecutive runs with --test-threads=3 (3/3 each run). This exercises queue promotion and the ordinary and screen worker pools. I did not measure gameplay performance.

**@⁠KernelSmoker** on GitHub · 2026-11-25 18:08 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/164#issuecomment-7170507442) Tested head 064d6db on Bazzite 45 with the RTX 3090, using the Windows GNU test binary under GE-Proton 10-34. The three pipeline::make::tests passed in one serial run and in 15 consecutive runs with --test-threads=3 (3/3 each run). This exercises queue promotion and the ordinary and screen worker pools. I did not measure gameplay performance.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.