Renderer port 1 stays off where the card does not see a section through a heap on a view #254

Open
github-bot wants to merge 1 commit from github-bot/gh-254 into main AGit
Owner

@⁠arogan178 on GitHub · 2026-11-26 13:19 UTC · original
arogan178:proton-section-check → main · +56 −0 · 2 files · 1 commits · open

Under Proton (vkd3d-proton on RADV), VICTORY_PORT_CONSTANTS=1 renders every frame black. A heap opened on a view of a section shows the card other memory there, so the card reads zeros where the title's constants are.

The repo's own probe (VICTORY_INPLACE_PROBE=1) says so on this PC:

VERDICT: private memory in place: reads true, writes true; the page pool's section in place: reads false, writes false

What it does

  • inplace::section_views_shared tries it once, on a 128 KiB section of its own: it maps a view, opens a heap on it with OpenExistingHeapFromAddress1 as port 1 does, places a buffer and has the card read the view's bytes. The result is kept for the run.
  • port::open_region asks it first. Where the card does not see the bytes, port 1 places nothing and the copies stay as before. The existing warning says why: the card does not see a section's bytes through a heap opened on a view (vkd3d-proton).
  • On Windows the check passes and nothing changes. A WARP test checks that it passes there.

Measured

RX 9070 XT, CachyOS, Proton (vkd3d-proton 71cae0, RADV), a9400a6 diagnostics build, scripts\play.ps1 settings, Series S, ports 2, 5 and 6 on. City scenes over 3,000 draws, about 20 five-second reports each:

port 1 on, before port 1 off port 1 on, this PR
picture black right right
fps 14 (black) 9.1 9.7
draws/frame 2,500 4,264 4,400

Tests

  • inplace:: and port:: tests pass under Proton, including the new warp_sees_a_section_through_a_heap_on_a_view. WARP is likely not there under Proton, so that one counts on CI.
  • cargo clippy -p victory-gpu --all-targets: no warnings in the changed files.

No game data used.

**@⁠arogan178** on GitHub · 2026-11-26 13:19 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/254) `arogan178:proton-section-check` → `main` · +56 −0 · 2 files · 1 commits · open Under Proton (vkd3d-proton on RADV), `VICTORY_PORT_CONSTANTS=1` renders every frame black. A heap opened on a view of a section shows the card other memory there, so the card reads zeros where the title's constants are. The repo's own probe (`VICTORY_INPLACE_PROBE=1`) says so on this PC: > VERDICT: private memory in place: reads true, writes true; the page pool's section in place: reads false, writes false ## What it does - `inplace::section_views_shared` tries it once, on a 128 KiB section of its own: it maps a view, opens a heap on it with `OpenExistingHeapFromAddress1` as port 1 does, places a buffer and has the card read the view's bytes. The result is kept for the run. - `port::open_region` asks it first. Where the card does not see the bytes, port 1 places nothing and the copies stay as before. The existing warning says why: `the card does not see a section's bytes through a heap opened on a view (vkd3d-proton)`. - On Windows the check passes and nothing changes. A WARP test checks that it passes there. ## Measured RX 9070 XT, CachyOS, Proton (vkd3d-proton 71cae0, RADV), `a9400a6` diagnostics build, `scripts\play.ps1` settings, Series S, ports 2, 5 and 6 on. City scenes over 3,000 draws, about 20 five-second reports each: | | port 1 on, before | port 1 off | port 1 on, this PR | |---|---|---|---| | picture | black | right | right | | fps | 14 (black) | 9.1 | 9.7 | | draws/frame | 2,500 | 4,264 | 4,400 | ## Tests - `inplace::` and `port::` tests pass under Proton, including the new `warp_sees_a_section_through_a_heap_on_a_view`. WARP is likely not there under Proton, so that one counts on CI. - `cargo clippy -p victory-gpu --all-targets`: no warnings in the changed files. No game data used.
Under vkd3d-proton on RADV a heap opened on a view of a section shows the
card other memory: it reads zeros there, and with VICTORY_PORT_CONSTANTS=1
every frame is black. Port 1 now tries it once on a section of its own and,
where the card does not see the bytes, keeps the copies as before.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 13:20:42 +00:00
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/254/head:github-bot/gh-254'
git switch 'github-bot/gh-254'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-254'
git switch 'github-bot/gh-254'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-254'
git switch 'github-bot/gh-254'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-254'
git switch 'main'
git merge --squash 'github-bot/gh-254'
git switch 'main'
git merge --ff-only 'github-bot/gh-254'
git switch 'main'
git merge 'github-bot/gh-254'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.