GPU: order page remaps with queued work and copy-back #1143

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

@⁠Lkxex on GitHub · 2026-11-25 21:33 UTC · original
Lkxex:fix/queue-ordered-page-remaps → main · +1449 −193 · 8 files · 1 commits · open

A page remap can overtake queued GPU work and redirect pending copy-back into the replacement backing. Queue the remap with earlier work, settle pending GPU writes before changing the backing, and keep queue and fence references alive until their deferred work completes. This includes the Windows placeholder prerequisite and the regression fixture.

All source changes are by NotADonky43, who posted the implementation and tests in #1131 and the placeholder fix in #824. The commit retains that authorship.

Independent Windows validation on code-identical base c36971b: 8 queue tests, 14 XMem tests and the synthetic D3D12 readback test passed. The D3D12 debug layer was unavailable on this machine. The base advanced to 9c184b3 with a README-only change.

**@⁠Lkxex** on GitHub · 2026-11-25 21:33 UTC · [original](https://github.com/fxceless/victory-fork/pull/1143) `Lkxex:fix/queue-ordered-page-remaps` → `main` · +1449 −193 · 8 files · 1 commits · open A page remap can overtake queued GPU work and redirect pending copy-back into the replacement backing. Queue the remap with earlier work, settle pending GPU writes before changing the backing, and keep queue and fence references alive until their deferred work completes. This includes the Windows placeholder prerequisite and the regression fixture. All source changes are by NotADonky43, who posted the implementation and tests in #1131 and the placeholder fix in [#824](https://git.gtahub.st/github/fxceless--victory-fork/pulls/824). The commit retains that authorship. Independent Windows validation on code-identical base c36971b: 8 queue tests, 14 XMem tests and the synthetic D3D12 readback test passed. The D3D12 debug layer was unavailable on this machine. The base advanced to 9c184b3 with a README-only change.
Apply the published placeholder fix, queue ordering changes, and regression tests from NotADonky43 in fxceless/victory-fork#1131.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:58:21 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/framelog.rs
  • crates/victory-gpu/src/queue.rs
  • crates/victory-hle/src/modules/xmem.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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