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

Open
arogan178 wants to merge 1 commit from upstream-pr/254 into main
arogan178 commented 2026-11-26 13:19:12 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by arogan178 on 2026-11-26T13:19:12Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6627520942 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/254). Originally posted by [arogan178](https://github.com/arogan178) on 2026-11-26T13:19:12Z. --- 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.
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/254:upstream-pr/254'
git switch 'upstream-pr/254'

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/254'
git switch 'upstream-pr/254'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/254'
git switch 'upstream-pr/254'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/254'
git switch 'main'
git merge --squash 'upstream-pr/254'
git switch 'main'
git merge --ff-only 'upstream-pr/254'
git switch 'main'
git merge 'upstream-pr/254'
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
avatarmanz/VIctory-7900XTX!254
No description provided.