README: document XCL_RESIDENCY_PRIORITY #3570
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3570"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-12-01T13:15:54Z.
Documents
XCL_RESIDENCY_PRIORITY, the opt-in switch added with the residency-priority work merged in #3156 (headb2b1f109d27e746a62ec95b04dd1f9924452e682). The README had no mention of it.What is in it
XCL_TEXTURE_LEVEL_PAGESbullet: whatXCL_RESIDENCY_PRIORITY=1does, which heaps get HIGH, that the priority is set when a heap is made with nothing called per frame, that a failure is logged once and leaves the default, and that it is off by default with only1turning it on.Tested
crates/xcl/src/hle/d3d12x/vram.rsatb2b1f109(residency_priority_wanted,role_priority,pages_role,set_heap_priority) and theWindowPoolcall incrates/xcl/src/hle/d3d12x/sparse.rs: only a trimmed1enables it, render-target arenas, window tile pools and target page pools get HIGH, other texture pages keep the default, and a failure logs once.Regression run
Not needed: docs only (README.md), no runtime change.
Not tested
AI use
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T20:45:04Z.
Review (head
3c901562, diff read, not a merge-check; draft):XCL_RESIDENCY_PRIORITYon unless it is0and adds its own README bullet for the same variable. Whichever merges second leaves two bullets, and if #3582 lands this bullet's "Off by default; only1turns it on" (README.md ~418) is wrong.HeapRole::TexturePages, which makes no call (vram.rs~1684, ~1010). It is raised to HIGH only later byPages::keep_pools(~2183, called from ~2486 and ~2616) when the pages of a render target, depth buffer or UAV texture are first bound into it, and stays HIGH until the slot is reclaimed (~1724). Only the arenas (~1070) and the window tile pools (sparse.rs~3548) get their priority when they are made.Fine: the enable check (a trimmed
1, read once), the roles that get HIGH (role_priority,gpu_ownedcovering RT/DS/UAV), the one-time failure warning and the absence of a per-frame call matchvram.rsonmain.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.