GPU: port DirectStorage staging and indirect draw improvements #2632

Open
github-bot wants to merge 5 commits from github-bot/gh-2632 into main AGit
Owner

@⁠Lkxex on GitHub · 2026-11-25 17:14 UTC · original
Lkxex:port/nov25-marvis → main · +221 −25 · 4 files · 5 commits · open

This ports DirectStorage queue staging, console texture formats 189–191, offline shader signature deduplication, and an opt-in single-record indirect clamp. Larger batches keep the existing tiled clamp.

Validation: Windows cargo check passed on the port. In-game behavior and FPS have not been measured.

**@⁠Lkxex** on GitHub · 2026-11-25 17:14 UTC · [original](https://github.com/Marvisak/VIctory/pull/2632) `Lkxex:port/nov25-marvis` → `main` · +221 −25 · 4 files · 5 commits · open This ports DirectStorage queue staging, console texture formats 189–191, offline shader signature deduplication, and an opt-in single-record indirect clamp. Larger batches keep the existing tiled clamp. Validation: Windows cargo check passed on the port. In-game behavior and FPS have not been measured.
Port-of: 166f783

Source contribution: 886
Port-of: a8dc0cd

Source contribution: B7
Port-of: bda5b05
Source contribution: 882
Keep the tile-wide budget path for larger batches.

Port-of: e377a5c
Source contribution: 1016
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:10:47 +00:00
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 17:52 UTC · original

Reviewed: keying dedup on (DXIL hash + ISG1/OSG1/PSG1/PSV0/RTS0 part hashes) fixes a real silent-skip: shared shader bodies with different signatures were previously dropped as duplicates, losing pipeline variants in --pipelines runs. The synthetic two-part container test proves the case. CI green.

**@⁠kotekompotek** on GitHub · 2026-11-25 17:52 UTC · [original](https://github.com/Marvisak/VIctory/pull/2632#issuecomment-7170128506) Reviewed: keying dedup on (DXIL hash + ISG1/OSG1/PSG1/PSV0/RTS0 part hashes) fixes a real silent-skip: shared shader bodies with different signatures were previously dropped as duplicates, losing pipeline variants in `--pipelines` runs. The synthetic two-part container test proves the case. CI green.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 22:21 UTC · original

Automated triage for the maintainers.

Merges cleanly, but this is five unrelated changes in one PR, validated only by cargo check, and two of them change emulation behaviour without stated evidence:

  • crates/victory-formats/src/texture.rs: console texture formats 189 and 190 are given RGBA8-like and R8-like layouts (4 and 1 bytes per texel). What these formats are, and why those layouts, needs a source (public documentation, or the title's own use observed in a run), not just the size match the test asserts.
  • crates/victory-hle/src/modules/dstorage.rs: the read scheduler in Lanes::start is rewritten (a staging reservation that lets one other queue's head use spare space). That changes ordering and fairness for every title, with no test of the new behaviour and no measurement. It also touches the same code as #2617.
  • crates/victory-gpu/src/indirect.rs: an opt-in one-thread clamp (VICTORY_INDIRECT_SINGLE), with no measurement of what it gains.
  • apps/victory/src/translate.rs: offline dedup keyed on DXIL plus signature parts. This one is plausible on its own and has a test.

The description says "ports" but does not name where they come from. Please split these into separate PRs, credit the source, and for each say what was measured (a test that fails on main, a run, or a reference for the formats). The translate dedup change could go first on its own.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 22:21 UTC · [original](https://github.com/Marvisak/VIctory/pull/2632#issuecomment-7176263883) <!-- victory-triage v1 head=091cdc77760809b9e6a88501cd2ae9fcd682cdaf verdict=needs-work at=2026-11-25T22:23:00Z --> Automated triage for the maintainers. Merges cleanly, but this is five unrelated changes in one PR, validated only by `cargo check`, and two of them change emulation behaviour without stated evidence: - `crates/victory-formats/src/texture.rs`: console texture formats 189 and 190 are given RGBA8-like and R8-like layouts (4 and 1 bytes per texel). What these formats are, and why those layouts, needs a source (public documentation, or the title's own use observed in a run), not just the size match the test asserts. - `crates/victory-hle/src/modules/dstorage.rs`: the read scheduler in `Lanes::start` is rewritten (a staging reservation that lets one other queue's head use spare space). That changes ordering and fairness for every title, with no test of the new behaviour and no measurement. It also touches the same code as #2617. - `crates/victory-gpu/src/indirect.rs`: an opt-in one-thread clamp (`VICTORY_INDIRECT_SINGLE`), with no measurement of what it gains. - `apps/victory/src/translate.rs`: offline dedup keyed on DXIL plus signature parts. This one is plausible on its own and has a test. The description says "ports" but does not name where they come from. Please split these into separate PRs, credit the source, and for each say what was measured (a test that fails on `main`, a run, or a reference for the formats). The translate dedup change could go first on its own. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2632/head:github-bot/gh-2632'
git switch 'github-bot/gh-2632'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2632'
git switch 'github-bot/gh-2632'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2632'
git switch 'github-bot/gh-2632'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2632'
git switch 'main'
git merge --squash 'github-bot/gh-2632'
git switch 'main'
git merge --ff-only 'github-bot/gh-2632'
git switch 'main'
git merge 'github-bot/gh-2632'
git push origin 'main'
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!2632
No description provided.