HLE: order fresh slices in low graphics placeholders #1339

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

@⁠Filip722 on GitHub · 2026-11-26 17:08 UTC · original
Filip722:hle/order-fresh-graphics-pages → main · +171 −7 · 1 files · 1 commits · open

Summary

Add an opt-in Wine path that orders previously unused physical-page slices within a low graphics placeholder. Set VICTORY_CONSTANTS_ORDER=1 to opt in. This lets an eligible graphics buffer occupy one consecutive range of its pagefile section and prepares it for direct D3D12 import.

The runtime records the effective placeholder flag. It plans the full permutation under the physical-page table lock and retains the guest page numbers. Mapping and DirectStorage access mark slices before another thread can change their positions. Any conflicting exposure or incomplete plan leaves the original assignments in place.

The ordering approach follows VIctory-7900XTX 4b82f6c.

Verification

  • On an RTX 5060 Laptop GPU with driver 615.78.08, GE-Proton11-14 and vkd3d-proton 3.2.0, the private compatibility build changed a 174 MiB registered graphics buffer from scattered section offsets to one contiguous span. The ordered replay reached the rendered prison view. A separate import experiment measured the resulting GPU path. Import test on #1117.

  • The synthetic regression checks both a successful permutation and a later request containing an already exposed slice. It verifies that a rejected plan leaves the earlier assignments intact.

  • All 15 focused XMem tests passed under GE-Proton on the PR branch. Windows-target Clippy passed with warnings denied, and the staged asset-policy check passed.

Assisted by Codex (GPT-6.2-Sol High).

**@⁠Filip722** on GitHub · 2026-11-26 17:08 UTC · [original](https://github.com/fxceless/victory-fork/pull/1339) `Filip722:hle/order-fresh-graphics-pages` → `main` · +171 −7 · 1 files · 1 commits · open ## Summary Add an opt-in Wine path that orders previously unused physical-page slices within a low graphics placeholder. Set `VICTORY_CONSTANTS_ORDER=1` to opt in. This lets an eligible graphics buffer occupy one consecutive range of its pagefile section and prepares it for direct D3D12 import. The runtime records the effective placeholder flag. It plans the full permutation under the physical-page table lock and retains the guest page numbers. Mapping and DirectStorage access mark slices before another thread can change their positions. Any conflicting exposure or incomplete plan leaves the original assignments in place. The ordering approach follows [VIctory-7900XTX 4b82f6c](https://github.com/avatarmanz/VIctory-7900XTX/commit/4b82f6c). ## Verification - On an RTX 5060 Laptop GPU with driver 615.78.08, GE-Proton11-14 and vkd3d-proton 3.2.0, the private compatibility build changed a 174 MiB registered graphics buffer from scattered section offsets to one contiguous span. The ordered replay reached the rendered prison view. A separate import experiment measured the resulting GPU path. [Import test on #1117](https://git.gtahub.st/github/fxceless--victory-fork/pulls/1117). - The synthetic regression checks both a successful permutation and a later request containing an already exposed slice. It verifies that a rejected plan leaves the earlier assignments intact. - All 15 focused XMem tests passed under GE-Proton on the PR branch. Windows-target Clippy passed with warnings denied, and the staged asset-policy check passed. Assisted by Codex (GPT-6.2-Sol High).
Assisted by Codex (GPT-6.2-Sol High).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 17:10:00 +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/1339/head:github-bot/gh-1339'
git switch 'github-bot/gh-1339'

Merge

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