README: document XCL_LIVE_RESERVED #3794

Open
romeawayfromhome-rgb wants to merge 1 commit from upstream-pr/3794 into main
romeawayfromhome-rgb commented 2026-12-03 15:11:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-12-03T15:11:11Z.


Documents XCL_LIVE_RESERVED, which is read in crates/xcl/src/hle/d3d12x/vram.rs but was not mentioned in the README switches list.

  • This change does not use code, signatures or documentation from leaked or NDA-only SDKs.

What is in it

  • README.md: add an XCL_LIVE_RESERVED bullet to the "Switches for how a title runs" sub-list, after the XCL_WAIT_TIMEOUT_MS bullet.

Tested

  • Not built or tested: this change was prepared on a Linux VM, and XCL builds/runs on Windows only.
  • Verified against main at a815de9: live reserved placements are on only with the reserved pool enabled, and then only when the trimmed value is 1 or, for any other value except 0, under Wine on an AMD adapter; 0 forces them off, and XCL_RESERVED_POOL=0 turns them off with the pool. In that tree the variable name appears only in vram.rs; the README on main and amd-dev has no mention of it, and PR/issue search found no duplicate PR.

Regression run

  • Not applicable: README-only change; no runtime code changed.

Not tested

  • Windows build, GPU test suite, and title runs were not run for this docs-only change.

AI use

  • Muse Spark via Muse found the undocumented variable, drafted the README bullet, and wrote this description. No code was changed.
<!-- greyfinch-sync:ivall/xcl:issue:5629235548 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3794). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-12-03T15:11:11Z. --- Documents `XCL_LIVE_RESERVED`, which is read in `crates/xcl/src/hle/d3d12x/vram.rs` but was not mentioned in the README switches list. - [x] This change does not use code, signatures or documentation from leaked or NDA-only SDKs. **What is in it** - `README.md`: add an `XCL_LIVE_RESERVED` bullet to the "Switches for how a title runs" sub-list, after the `XCL_WAIT_TIMEOUT_MS` bullet. **Tested** - Not built or tested: this change was prepared on a Linux VM, and XCL builds/runs on Windows only. - Verified against `main` at `a815de9`: live reserved placements are on only with the reserved pool enabled, and then only when the trimmed value is `1` or, for any other value except `0`, under Wine on an AMD adapter; `0` forces them off, and `XCL_RESERVED_POOL=0` turns them off with the pool. In that tree the variable name appears only in `vram.rs`; the README on `main` and `amd-dev` has no mention of it, and PR/issue search found no duplicate PR. **Regression run** - Not applicable: README-only change; no runtime code changed. **Not tested** - Windows build, GPU test suite, and title runs were not run for this docs-only change. **AI use** - Muse Spark via Muse found the undocumented variable, drafted the README bullet, and wrote this description. No code was changed.
Foniass commented 2026-12-03 15:12:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T15:12:29Z.


Review of ae81b975 (code reading only, not a merge-check; draft) · 1 nit

In short: The PR documents XCL_LIVE_RESERVED in the README's switches list. The bullet matches the code: on by default only under Wine on an AMD adapter, 1 and 0 force it, and XCL_RESERVED_POOL=0 turns it off with the pool. One nit on what the bullet leaves out. Nothing blocks it.

Nit

  1. The bullet does not say what the switch is for, or what it costs. The comment on live_reserved_for (vram.rs ~744-758) gives both. It works around amdgpu running page-table updates behind work in flight, which page-faults a retail title on Wine + RADV. It also costs extra CreateReservedResource calls and waits on the title's thread, which is why it is off on Windows. Without either point, a reader cannot tell when 1 would help or why it is not on everywhere. Half a sentence would do, for example: "(a workaround for GPU page faults with amdgpu under Wine; it costs time on the title's thread, so Windows leaves it off)".
Checked and fine
  • The default and the forced values match live_decide (vram.rs ~809): the value is trimmed, 1 turns it on, 0 turns it off, and anything else falls back to Wine with vendor 0x1002. The vendor is Vulkan's when vkd3d-proton reports it, otherwise DXGI's.
  • live_reserved_for checks reserved_pool_enabled() first, so XCL_RESERVED_POOL=0 turns it off regardless, as the bullet says.
  • "reserved textures whose addresses predate the work in flight where possible" follows the comment at ~740.
  • The bullet sits in the "Switches for how a title runs" list, after XCL_WAIT_TIMEOUT_MS, and it is the only change. No other open PR documents this variable.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7382747490 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3794#issuecomment-7382747490). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T15:12:29Z. --- **Review** of `ae81b975` (code reading only, not a merge-check; draft) · 1 nit **In short:** The PR documents `XCL_LIVE_RESERVED` in the README's switches list. The bullet matches the code: on by default only under Wine on an AMD adapter, `1` and `0` force it, and `XCL_RESERVED_POOL=0` turns it off with the pool. One nit on what the bullet leaves out. Nothing blocks it. #### Nit 1. **The bullet does not say what the switch is for, or what it costs.** The comment on `live_reserved_for` (`vram.rs` ~744-758) gives both. It works around amdgpu running page-table updates behind work in flight, which page-faults a retail title on Wine + RADV. It also costs extra `CreateReservedResource` calls and waits on the title's thread, which is why it is off on Windows. Without either point, a reader cannot tell when `1` would help or why it is not on everywhere. Half a sentence would do, for example: "(a workaround for GPU page faults with amdgpu under Wine; it costs time on the title's thread, so Windows leaves it off)". <details><summary>Checked and fine</summary> - The default and the forced values match `live_decide` (`vram.rs` ~809): the value is trimmed, `1` turns it on, `0` turns it off, and anything else falls back to Wine with vendor `0x1002`. The vendor is Vulkan's when vkd3d-proton reports it, otherwise DXGI's. - `live_reserved_for` checks `reserved_pool_enabled()` first, so `XCL_RESERVED_POOL=0` turns it off regardless, as the bullet says. - "reserved textures whose addresses predate the work in flight where possible" follows the comment at ~740. - The bullet sits in the "Switches for how a title runs" list, after `XCL_WAIT_TIMEOUT_MS`, and it is the only change. No other open PR documents this variable. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>
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/3794:upstream-pr/3794'
git switch 'upstream-pr/3794'

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/3794'
git switch 'upstream-pr/3794'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3794'
git switch 'upstream-pr/3794'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3794'
git switch 'main'
git merge --squash 'upstream-pr/3794'
git switch 'main'
git merge --ff-only 'upstream-pr/3794'
git switch 'main'
git merge 'upstream-pr/3794'
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
xcl-dev/xcl!3794
No description provided.