gpu(native): make described graphics pipelines that read title memory #599

Open
AnastasisKon wants to merge 3 commits from upstream-pr/599 into main
AnastasisKon commented 2026-11-28 11:31:43 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T11:31:43Z.


What this changes

Removes the gate in crates/victory-gpu/src/native/shaders.rs that refused any described graphics pipeline whose shader reads title memory through the page table (reads title memory through the page table in a graphics pipeline), and the memory parameter that carried it. The page table is bound for every stage (Binding::memory, memory_args in native/host.rs), guessed and described, compute and render alike, so the gate had no technical reason. The dfafaf38/06295fb1 pair — the first draw of each frame, dropped as no_pipeline on every frame — now gets a host pipeline. Refs #303

How it was tested

  • cargo test -p victory-gpu — 456 passed, 0 failed; shader_tests::render_pipelines_come_from_the_translated_shaders_and_the_streams_state now asserts a memory=true vertex shader in a described state is made (Pipe::Render), and shaders_the_host_cannot_run_are_refused_and_counted no longer counts that refusal
  • cargo test --target x86_64-apple-darwin -p victory-gpu --lib shader — 33 passed under Rosetta
  • cargo test -p victory-hle -p victory -p victory-gpu -p xtask — all ok
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings — RC=0
  • cargo xtask policy — 404 files ok
  • Game run: not yet (game download still in progress); the by-output sweep will confirm dfafaf38/06295fb1 gain a pipeline

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md — noted in the "Guessed graphics pipelines" section
  • New diagnostics are behind a VICTORY_* variable and documented — n/a, a refusal removed, not a switch
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5539672409 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/599). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T11:31:43Z. --- ## What this changes Removes the gate in `crates/victory-gpu/src/native/shaders.rs` that refused any described graphics pipeline whose shader reads title memory through the page table (`reads title memory through the page table in a graphics pipeline`), and the `memory` parameter that carried it. The page table is bound for every stage (`Binding::memory`, `memory_args` in `native/host.rs`), guessed and described, compute and render alike, so the gate had no technical reason. The `dfafaf38`/`06295fb1` pair — the first draw of each frame, dropped as `no_pipeline` on every frame — now gets a host pipeline. Refs #303 ## How it was tested - [x] `cargo test -p victory-gpu` — 456 passed, 0 failed; `shader_tests::render_pipelines_come_from_the_translated_shaders_and_the_streams_state` now asserts a `memory=true` vertex shader in a described state is made (`Pipe::Render`), and `shaders_the_host_cannot_run_are_refused_and_counted` no longer counts that refusal - [x] `cargo test --target x86_64-apple-darwin -p victory-gpu --lib shader` — 33 passed under Rosetta - [x] `cargo test -p victory-hle -p victory -p victory-gpu -p xtask` — all ok - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` — RC=0 - [x] `cargo xtask policy` — 404 files ok - [ ] Game run: not yet (game download still in progress); the by-output sweep will confirm `dfafaf38`/`06295fb1` gain a pipeline ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md — noted in the "Guessed graphics pipelines" section - [x] New diagnostics are behind a `VICTORY_*` variable and documented — n/a, a refusal removed, not a switch
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/599:upstream-pr/599'
git switch 'upstream-pr/599'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/599'
git switch 'upstream-pr/599'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/599'
git switch 'upstream-pr/599'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/599'
git switch 'main'
git merge --squash 'upstream-pr/599'
git switch 'main'
git merge --ff-only 'upstream-pr/599'
git switch 'main'
git merge 'upstream-pr/599'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
LakshanSivakumar/Native-Victory-macOS!599
No description provided.