D3D12.X: XCL_TEXTURE_SYSMEM puts streamed texture levels in system memory #3039
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3039"
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 treybertram06 on 2026-11-27T16:22:08Z.
Target:
main(opened againstnvidia-dev, which #3203 merged intomain; rebased ontomaind52ff48c). Stacked on #2987; only the top commit belongs here. Part of #2688. Related: #1702.With
XCL_TEXTURE_LEVEL_PAGES=1, a streamed texture's levels get video memory pages as their texels arrive. On a 10 GB card a retail world holds 1.5–2 GB of them, beside about 3 GB of render targets and the title's other GPU memory, past the budget Windows gives the process, which then pages whatever it likes.XCL_TEXTURE_SYSMEM=1(off by default; only with level pages) gives those levels pages from pool heaps in system memory (custom heaps,MEMORY_POOL_L0, write-back), which the GPU samples over PCIe. Render targets and every other texture keep video memory, since they're written every frame. #1702 moves all texture page pools instead, render targets included.What is in it
D3D12.X: XCL_TEXTURE_SYSMEM puts streamed texture levels in system memory(hle/d3d12x/vram.rs):bind_range_intakes new pages from the system-memory pools for lazy levels. Since the rebase it passes onmain'sevictablepacking class too;SYS_TILEin its heap index, and freed ones cool in their own pool (cool);mapresolves either heap.a_system_memory_page_is_told_apart_and_cools_in_its_own_pool.Tested
xcl.exe. Debug tests, release title runs.cargo test --workspace --no-fail-fast -- --test-threads=4, withXCL_DXC_DIRset to DXC 1.9, at this PR's head97715129: 2880 passed, 1 failed, 51 ignored.gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, also fails onmaind52ff48cwithout this change (2876 passed, 1 failed, 51 ignored there).SKIPPED: 22no wave64, 2no heap windows. The same onmain.cargo test -p xcl --lib vram -- --test-threads=4: 73 passed, 0 failed, 1 ignored.gpu_retire_queue_holds_heap_until_blocked_queue_passes_mark(out of memory with GPU tests side by side, then passed on reruns). It passed in the full run above.7cce7d3d(before the rebase; not rerun since),XCL_COHERENT_HEAPS=sparse XCL_SPARSE_SYSMEM=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_TEXTURE_SYSMEM=1 XCL_PREPARE_WORKERS=6, scripted presses. Over the 400 s after the menus: 1.35 presents/s, video memory at the end 11.9 GB local / 8.9 GB non-local (budget 9.0 GB), commit 41.3 GB, no device removal.XCL_TEXTURE_SYSMEMunset): 0.72 presents/s, 15.1 GB local.0x887a0006, no DRED breadcrumbs); the prototype these come from lost it in 2 of 7 runs, and runs without these switches lose it on this title too (#2688).Regression run
Base, a commit of
main:d52ff48c.smoke.ps1now setsXCL_PREPARE=0, somain's launch preparation gate no longer holds the run, and the base is currentmainagain. The switch is off in both runs. A 60 s warm-up run ofmaincame first.This PR's head:
Not tested
reclaim_empty_heaps).AI use
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T17:24:54Z.
Independent RTX 3080 Ti check on #3039 head
7cce7d3d.The PR already notes that empty system-memory pool heaps are retained. I reproduced that in a focused D3D12 test: with one tile live, a fully free 64 MiB L0 heap was not reclaimed after a sweep. After the final tile cooled, another empty L0 heap was still retained. The regression failed on the untouched head and passed with the candidate below. The change reclaims empty
sys_poolslots, takes their handles fromsys_pools, and sends them through the existing queue-fence retirement batch. The local VRAM heap with the same numeric slot remains live.Tested: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti 12 GB / driver 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11. With
XCL_TEXTURE_LEVEL_PAGES=1andXCL_TEXTURE_SYSMEM=1,cargo build --workspacepassed on the candidate.cargo test --workspace --no-fail-fast -- --test-threads=4on the untouched head: 1,823 passed, 13 failed, 48 ignored, 26 GPUSKIPPEDnotices. On the isolated candidate build aftercargo build --workspace: 1,824 passed, the same 13 failed, 48 ignored, 26 GPU skip notices. The failure names match exactly; the extra pass is the new reclaim regression. The existing 11-mip synthetic texture GPU fixture passed, including byte-exact copy readback. A temporary assertion confirmed its mapped tiles carriedSYS_TILE, rather than silently falling back to VRAM; that assertion is omitted from the diff because the fixture also runs with the switch off.Source-review note: the statement that render targets keep VRAM has an alias exception. If a streamed level first maps a page in L0, a later render target at the same title page reuses that tile; the reverse order retains VRAM. This preserves page aliasing. I would qualify the description as “new pages use the selected pool; aliases keep their first backing,” and test both placement orders before promising strict render-target VRAM placement. I did not measure an in-game performance effect of this case.
The candidate is local and uncommitted. A real title smoke pair, AMD/Intel coverage, and shader sampling from an L0-backed level remain to be checked on a clean author commit. AI use: Codex (GPT-6.2 Sol) wrote and ran the regression/candidate and this report; Codex (GPT-6.2 Astra) independently reviewed the alias and fence-lifetime paths.
Candidate diff: reclaim cooled system-memory heaps and cover the pool boundary
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-27T19:33:01Z.
I checked shader reads from the system-memory level pages on RTX 5070 / NVIDIA 616.92 at head
7cce7d3d4625ac8f90f146f1f89f25a613e32e76. A test-only extension of the existing native level-pages fixture used a 1024×1024 RGBA8 texture with 11 mip levels and explicit 2D views. Both cases enabledXCL_TEXTURE_LEVEL_PAGES=1; the same binary ran in fresh processes withXCL_TEXTURE_SYSMEM=1and0(in that order).SYS_TILE, and their native heap descriptions reportedD3D12_MEMORY_POOL_L0.SampleLevel(1)returned the expected value 48 for all 2,048 pixels of its half, andLoadfrom mip 0 returned 25 for all 2,048 pixels of the other half. Both focused runs passed without skips.This establishes shader-visible contents in this synthetic fixture and verifies the backing heap descriptions. It does not measure physical residency, PCIe traffic, frame time, or retail memory savings.
AI use: OpenAI Codex with GPT-6.2 Astra built and ran the checks; Codex reviewed and prepared this report.
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-27T20:04:43Z.
RTX 3060 12 GB (NVIDIA), this PR's head
7cce7d3d, retail title, 300 s: withXCL_TEXTURE_SYSMEM=1, peak local video memory falls from 12 967 MB to 10 362 MB, so it fits on the card. It's the only run on this card so far that stays under 12 GB.Same build, both runs with
XCL_TEXTURE_LEVEL_PAGES=1, release,XCL_ACTIVITY=1, A pressed every 4 s from 20 s, warm caches, one run each.XCL_TEXTURE_SYSMEMoffXCL_TEXTURE_SYSMEM=1About 2.6 GB moves from local to non-local, and process commit goes up by about 2.9 GB. Frame counts are about the same. In neither run does presenting go past world load. In earlier runs on this card that stop came from title-thread driver compiles (#2595), so the later last present with the switch on may not be due to the switch. Neither run had device removals or crashes.
For comparison, the
nvidia-devtipe0821b12without level pages peaked at 16 840 MB local on this card.RTX 3060 12 GB (driver 581.80), i9-14900KF, 64 GB RAM, Windows 11 26200.
AI use: Claude Code (Claude Opus 5.5) built the PR, ran the title and wrote this report.
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-27T20:12:46Z.
AMD run for the Not tested line (also covers #2987, whose three new tests are part of this diff).
Tested: pass, head
7cce7d3applied on its basenvidia-devd1be810, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X.cargo test -p xcl --lib -- hle::d3d12x::sparse hle::d3d12x::vram hle::kernelx --test-threads=4 --nocapture:nvidia-devalone: 149 passed). New and ok:a_lazy_tile_outside_the_gpu_heaps_gets_system_memory,a_parked_system_memory_tile_gives_way_to_a_gpu_heap,the_title_gpu_heaps_are_hot_and_nothing_around_them,a_system_memory_page_is_told_apart_and_cools_in_its_own_pool.#2987 at
f8e75bcalone, same base,hle::d3d12x::sparse hle::kernelx: 130 passed, 0 failed (127 without), its three new tests ok.The sparse and vram tests make their device on the first adapter (
D3D12CreateDevice(None, ..)), the RX 9070 XT here.Not tested: a title run or a session longer than a test, the system-memory pool heaps being given back, Intel.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-27T20:22:30Z.
I checked the creation-order overlap question on RTX 5070 / NVIDIA 616.92 at head
7cce7d3d4625ac8f90f146f1f89f25a613e32e76. A test-only native fixture usedCreatePlacedResourceXto place a 1024×1024 RGBA8 sampled texture (11 mips) and a one-mip render target at the same guest start, in both orders. Four fresh processes covered both orders withXCL_TEXTURE_SYSMEM=1and0; level pages were enabled throughout.After the newer placement, the superseded resource had zero tracked tiles in each case. While the RT was active, a native clear and copy readback matched all 1,048,576 pixels, including when its 64 tiles were L0-backed. Sampled mip-1 copy readback also matched in every case. All four focused runs passed without skips.
This confirms that an RT can inherit L0 backing when it replaces a streamed texture, despite the intended placement distinction; the reverse order can leave sampled tiles local. It does not establish OS physical residency, simultaneous-alias correctness, retail frequency, or frame-time impact.
AI use: OpenAI Codex with GPT-6.2 Astra built and ran the fixture; Codex reviewed and prepared this report.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T21:32:07Z.
merge-check
base: d1be8103644791b7a65f068954324e93d4b1b565 (
nvidia-dev)head: 7cce7d3d4625ac8f90f146f1f89f25a613e32e76
merge: clean trial merge of the #2987 + #3039 stack into the current
nvidia-devtip; #2987 is an ancestor and #3039's own commit changes onlyvram.rs(+123/-12). The combined merge changes three intended files (+362/-22).build:
cargo build --locked --workspace-> ok.tests:
cargo test --locked --workspace --no-fail-fast -- --test-threads=4-> first run 1,827 passed, 9 failed, 48 ignored, 27 GPUSKIPPEDnotices; repeat 1,828 passed, 8 failed, 48 ignored, 27 skips. All four tests added by the stack passed. Eight failures in the repeat are a subset of the nine on the untouched exact base: both texture-upload tests, the console-MS test, the async-compute PSO test, split-compute in two targets, and two-pass driver-cache in two targets. The first run also failedmemory_under_a_shown_page_is_told_to_sparse_before_it_goes; it passed alone (1/0), in the kernelx group (59/0, 1 ignored), and in the full-suite repeat. Its cause is unresolved, so I am not attributing that one result to this PR.review: Fully unused L0 texture pool heaps remain allocated after cooling.
sweep_and_reclaimdrainssys_pool.coolingbut reclaims onlypool/pools, leaving everysys_poolsheap at the streaming high-water mark. My earlier exact-head RTX 3080 Ti regression and collapsed candidate diff show an unused 64 MiB L0 heap retained above the configured spare, then passing after the cooled system pools join the existing fence-aware retirement path. That test also keeps the same-index local heap live. This is avoidable system-memory commitment, not evidence that it caused a device removal. #2987 has a separate system-memory pool that needs its own follow-up.review: a render target placed over an already mapped streamed page inherits its L0 backing, as the creation-order GPU check confirms. This preserves title-page aliasing; please qualify the description's blanket statement that render targets keep video memory. Do not split one aliased page into two backings to make that statement true.
performance: the new switch is off by default. With it on, system-memory sampling trades local VRAM pressure for non-local access and process commit. An independent RTX 3060 run reports lower local VRAM and higher commit, but I did not measure retail frame time or memory on this trial merge.
verdict: not yet: reclaim cooled, fully free L0 texture pool heaps through the existing deferred retirement path, then rerun the focused regression. The prior linked diff is a small candidate for this top commit; the parent pool should be handled separately.
hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (NVIDIA 621.35), rustc 1.99.1 MSVC, SDK DXC 1.8.2502.11. Codex (GPT-6.2 Sol) ran the trial merge, build, two full suites and focused kernelx reruns, reviewed the merged diff, and wrote this check; Codex (GPT-6.2 Astra) independently traced allocator and heap-retirement lifetimes.
Not tested here: a new retail-title run, AMD, Intel, or a production change on this trial merge.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T23:42:16Z.
merge-check claim
head:
7cce7d3d46Imported from ivall/xcl. Originally posted by throny on 2026-11-28T00:05:50Z.
merge-check
base:
d1be8103(nvidia-dev)head:
7cce7d3d46merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1827 passed, 9 failed, 48 ignored (27 SKIPPED lines). Eight are the base's own failures on this GPU (the same six names with and without the PR; base alone: 1824 passed, 8 failed, 48 ignored). The ninth, hle::d3d12x::vram::tests::gpu_retire_queue_holds_heap_until_blocked_queue_passes_mark, failed once in the full run with an out-of-memory result (0x8007000E) from a create call in the test; rerun on the same merge result it passed 6 of 6 alone and 2 of 2 with the whole vram module, and 6 of 6 on the base. I read it as memory pressure from GPU tests running side by side, possibly a little higher with this PR's own tests, not as a defect of the change.
review: opt-in confirmed: it needs both XCL_TEXTURE_LEVEL_PAGES=1 and XCL_TEXTURE_SYSMEM=1. Open points, none blocking for an opt-in: system-memory heaps are never reclaimed (the sweep reclaims only the video-memory pool); a render target placed after a sampled texture on the same pages keeps that texture's system-memory pages (raised in the thread, still on this head); with the sparse switch on, pool_bytes counts system-memory tiles in quarantine as free video memory; the suite has no GPU test of sampling from the vram.rs path (corrected after a note in the thread: a tester did exercise it on this exact head with a synthetic fixture, all sampled pixels matching the control; it is not a title or performance result). The diff here includes #2987 (XCL_SPARSE_SYSMEM). For whoever merges: it conflicts with #2898 in sparse.rs in text and in meaning (its system-memory tiles must not go into #2898's per-heap free table, which would be resized to a huge index): merge #2898 first and rebase this on it.
performance: with the switch off, nothing measurable (a OnceLock read and an empty-queue drain per sweep; note_hot always records the title's GPU heaps in a small Vec). With it on, sampled levels are read from system memory across the bus and commit rises (a tester measured about +2.9 GB), which matters on machines without a page file. Not measured here.
verdict: safe to merge (as opt-in, after a rebase on #2898)
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build, suite and reruns by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-28T00:30:16Z.
@throny One coverage correction for the merge check: the earlier RTX 5070 test did exercise native shader sampling from the
vram.rslevel-page path on exact head7cce7d3d. It verified all 86 texture tiles asSYS_TILEon L0 heaps and comparedSampleLevel(1)and mip-0Loadoutput with the local-pool control; all 2,048 pixels in each output half matched.That is a synthetic explicit-2D-view fixture, not a retail sampling or performance result, and it does not resolve the heap-reclamation, alias-placement, or #2898 integration concerns.
Imported from ivall/xcl. Originally posted by razormontana on 2026-11-28T00:49:50Z.
Independent native validation of
7cce7d3d4625ac8f90f146f1f89f25a613e32e76with #2987f8e75bca1ea903b1cf0e9d4f9387b73f359e5051ond1be8103. Windows 11 Pro build 22631, Core i7-10700K, RTX 3070 8 GB with NVIDIA 617.42, Rust 1.100.0 x64 MSVC.Tested
cargo test --offline --locked -j 1 -p xcl --lib --no-run --message-format=json-render-diagnosticssucceeded. Three selected CPU and three native GPU cases passed on the exact clean stack. This includes the stocka_placed_texture_gets_the_pages_of_a_level_with_its_texelsfixture with level pages and texture sysmem enabled. The library test executable used exact names with--exact --nocapture --test-threads=1.XCL_TEXTURE_LEVEL_PAGES=1in both, the same 86 mapped tiles used one default heap with texture sysmem off and one custom L0 write-back heap with it on. The 1024×1024 texture's 11 mips read back byte-for-byte in both runs. The overlay changed only test code.Not tested
These focused checks leave shader sampling, mixed render-target placement order, whole L0 heap reclamation, and retail VRAM savings open.
AI use
Codex GPT-6.2 ran the focused validation, checked the results, and prepared this report.
Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-28T08:43:14Z.
I reused the texture-level part of this proposal for the NVIDIA candidate, preserving attribution rather than opening another PR. The adaptation is a4e83a1eb411e4d3e6cf6e8f202f1f2c42a1d16a: optional L0 texture backing, symmetric empty-heap reclamation for the system pool, and pool accounting that includes both local and system capacity. It follows the fail-closed retirement adaptation from #2538. Existing shared pages retain their backing; allocation failure falls back locally. The sparse/kernel changes in your stacked #2987 are not included. Global defaults remain off; the isolated 8 GB launch explicitly enables the switch as a memory-placement experiment, not a total-memory reduction or guaranteed budget cap.
The combined candidate
a4e83a1eb411e4d3e6cf6e8f202f1f2c42a1d16acompiled successfully withcargo build --locked --release -p xcl --target-dir <isolated target>on Windows x64 (230 seconds). This is combined-tree compilation, not an individual-PR build or GPU validation. Source review completed; regression fixtures are present but were not run after the user explicitly waived further shader/memory checks and requested an interactive launch. Hardware behavior, paired title regression and actual sustained memory savings remain unvalidated. No merge-readiness claim.Codex (GPT-6) prepared this scoped adaptation and report. Optional temporary contributor/testing coordination: https://discord.gg/gK3y7WRRY
Imported from ivall/xcl. Originally posted by pvfreis on 2026-11-28T18:00:23Z.
Plan, on top of #2987 + this PR (nothing written yet): a
budgetvalue forXCL_TEXTURE_SYSMEM/XCL_SPARSE_SYSMEMthat picks VRAM or L0 for each new pool heap from DXGI's live local budget (one watcher thread: budget-change event + poll; room reserved for the title's GPU heaps and the two-pass buffers), so a card with room keeps levels in VRAM and a smaller one stays under budget by XCL's choice, not Windows'.First PR: only the probe and the pure decision function with unit tests, not called. Then the texture gate, then sparse.
@treybertram06 @Prime1997: should this stack on these two PRs or on a4e83a1eb, and does it collide with anything unposted (gefydev's past-budget sparse plan, #3112, #3098's probe)? Planned with Claude Code (Claude Opus 5.5, checked by Claude Fable 5.2).
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-28T18:17:03Z.
@pvfreis A public-tree overlap check for your budget-mode plan:
7cce7d3d) is exactly one commit ahead, zero behind #2987 (f8e75bca). Checking out #3039 already supplies both implementations; stacking the two changesets separately would duplicate the sparse commit. Git comparisona4e83a1ebports the texture portion into a separate history with additional pool accounting, empty-heap retirement and fallback. It changes README andvram.rs, notsparse.rsorkernelx.rs. For an unused probe and pure policy, targeting currentnvidia-devfirst avoids choosing between those texture implementations. The actual integration needs an explicit choice of retirement/accounting behavior.main. It budgets 64 MiB target pools and counts pending and fence-retiring heaps. Its fallback is partial NULL mappings, not L0. Its accounting provides a useful control for a new-pool decision: before the first allocation appears in a fresh DXGI sample, two simultaneous requests can both see the same room. A deterministic test with headroom for one heap can distinguish a reserved first grant from two grants. Likewise, moving a pool to a retirement queue doesn't yet return its bytes.main. Neither public change implements the proposed live per-new-heap NVIDIA L0 selector.This is a source/ancestry check. I can't speak for unposted branches or which integration base the owners intend to merge. AI use: OpenAI Codex checked the commits and PRs and prepared this reply.
Imported from ivall/xcl. Originally posted by treybertram06 on 2026-11-30T07:13:10Z.
Rebased onto
maind52ff48con top of the rebased #2987 (new head97715129). The full suite and smoke runs are in the description.@pvfreis: stack on these two PRs (#2987
15b74314, this one97715129). Prime1997'sa4e83a1eis a combined candidate with only the texture-level part, not #2987's sparse part. We have nothing unposted on a budget mode, so nothing of ours collides. One thing that matters for yours: the system-memory pool heaps here are never given back (only the video-memory ones are), so a mode that moves levels back to VRAM when there is room would want that added.AI use: Claude Code (Claude Opus 5.5) did the rebase and the runs, and wrote this comment.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-30T22:53:40Z.
merge-check
base:
86e86fcb33head:
97715129a6merge: clean (local merge d4b8f128f6da2c4816d4be280b9382441bf1b475; this head includes the still-open #2987 stack)
build:
cargo build --workspace --target-dir ..\target-> ok; clean release builds for base and merge -> oktests:
cargo test --workspace --no-fail-fast --target-dir ..\target -- --test-threads=4-> 2,893 passed, 0 failed, 51 ignored across 43 targets; SKIPPED: 24 (22 require wave64, 2 require heap-window opt-in); failing: nonereview: The three changed files contain only the stacked sparse and texture-pool changes. On this head, a test-only extension of the existing 11-mip native GPU fixture passed in separate
XCL_TEXTURE_SYSMEM=1and0processes (1 passed, 0 failed, 0 skipped each). It checked every allocated streamed-level page's pool tag and the fixture's GPU copy readbacks against expected mip bytes. This covers placement and contents, not shader sampling. The previously reported L0 heap-retention finding and tested candidate diff still apply: after all tiles cool,sweep_and_reclaimreclaims only VRAM pool heaps. The same prior report explains the alias-order exception to the description's render-target VRAM claim. No other source-level issue found.performance: With the opt-in switches off, paired 60 s smokes on the same title and RTX 3080 Ti exited normally: base 1,661 frames / 16,900 MB peak commit; merge 1,696 frames / 16,643 MB. Both had zero crashes and device removals. These short runs do not establish a speed or memory benefit. I did not run an opt-in world load or measure long-session commit, VRAM, PCIe cost, or frame pacing on this head.
verdict: not yet: the opt-in world-load memory and pacing effect remains unmeasured on this head, and empty system-memory texture heaps still retain their peak allocation (candidate fix linked above).
hardware / tool and model: RTX 3080 Ti 12 GB / driver 621.40, Ryzen 7 9800X3D, Windows 11 build 26300 / OpenAI Codex (GPT-6 Sol)
Generated paired smoke blocks
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-12-01T05:37:11Z.
Source-accounting follow-up on current head
97715129: the opt-in L0 texture pools need their own owner totals in the memory report.page_bytes_forcounts mapped pages from both backing types but reports only local pool capacity.snapshotthen assigns all those pages to local video memory. On a discrete GPU, one fully used 64 MiB L0 texture heap with no local texture heap would appear as 64 MiB of localtarget pages;other(Kind::Video)subtracts that amount from the wrong DXGI segment. The raw DXGI usage totals are unaffected.Please preserve
page_bytes_for's aggregate count for existing callers, but supplymemory_reportwith used bytes and capacity split by local/L0 pool. Classify L0 with the report's existing discrete/integrated segment rule. A focused regression can give the two pools the same numeric heap slot, map one shared page in each, and check per-segment used/free bytes andother. This is separate from the earlier combined-capacity candidate.This is a source-accounting review; I did not run a new build or GPU test. AI use: OpenAI Codex (GPT-6.2 Sol) checked the accounting path; OpenAI Codex (GPT-6.2 Astra) independently reviewed the pool and segment ownership.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:24:11Z.
Triage (#1607) – head
9771512Stacked on #2987 (its first commit, sparse tiles in system memory); only
97715129belongs here, so the shared lines with #2987 are not a duplicate.#1702 (D234) also puts texture pages in D3D12 L0, but it switches every title-texture page pool, render targets included, while this keeps a second L0 pool for streamed texture levels only and leaves render targets in video memory. The two take different approaches, so neither duplicates the other.
No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by pvfreis on 2026-12-03T01:47:54Z.
@treybertram06 thanks. Since then #3620 (sparse and sampled texture pools) and #3587 (texture pools, on
amd-dev) add an opt-in that moves new pool heaps to L0 from the live DXGI budget, and the drafts #3740/#3742 do the same.So we won't open a separate budget mode. #3613 adds the heap give-back for #2987's sparse pools only; the texture-level heaps here are still kept.
AI use: Claude Code (Claude Opus 5.5 wrote this, Claude Fable 5.2 checked it against the PRs).
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.