D3D12.X: XCL_VRAM_BUDGET keeps XCL's pools under the adapter's budget #3587
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3587"
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 iggyvilla on 2026-12-01T17:03:58Z.
Adds opt-in
XCL_VRAM_BUDGET=1(off by default: zero behavior change) to keep XCL's paged texture pools and sparse tiles under the adapter's DXGI local video-memory budget on 8 GB cards (#1337, #1585). Supersedes #3335 (now closed).TL;DR — Before vs After (RX 6650 XT 8 GB,
lockhart)XCL_VRAM_BUDGET=0)XCL_VRAM_BUDGET=1)41aa60cevs2ddf8227, off)1,654frames /15,902 MB1,659frames /16,495 MB0crashes)6,808 MBbudget)7,688 MB(+880 MBover,85warns)6,024–6,534 MB(-257to-783 MBunder,0warns;MARGIN=2500)1.59 → 1.12 fps(WDDM paging)2.19 fps(456 ms/frame,6.58 GB < 6.8 GB)2048 MiB) loading commit (41aa60ce)23,819 MBcommit (5,746 MBlocal)20,737 MBcommit (5,629 MBlocal,256 MBL0)What is in it (~400 runtime lines + ~215 test lines across 5 files; cohesive budget sampler + pool placement + reporting)
crates/xcl/src/hle/d3d12x/vram_budget.rs: opt-inXCL_VRAM_BUDGET=1pressure tracker (Room/Near/Overwith 256 MiB hysteresis), sampling DXGI local budget every 250 ms (XCL_VRAM_BUDGET_MARGIN_MB, default2048;XCL_VRAM_BUDGET_MBfixed target) + unit tests.crates/xcl/src/hle/d3d12x/memory_report.rs: cachesIDXGIAdapter3per adapter LUID (no factory creation on 250 ms samples), addslocal_segment(), and reports"target pools in system memory"viauma_segment(non_local)(non-local on discrete GPUs, local on single-segment/UMA adapters).crates/xcl/src/hle/d3d12x/vram.rs: per-devicePoolHeapsL0 tracking (is_sys,sys_live) andpage_bytes_split_for; under pressure, sampled textures spill new tiles to 64 MiB L0 heaps (CUSTOM,CPU_PAGE_PROPERTY_NOT_AVAILABLE,MEMORY_POOL_L0) only after free VRAM pool tiles are exhausted, and empty pools reclaim every 250 ms with 0 warm spares.gpu_ownedtargets (RT/DS/UAV) stay in thesys = falsevideo-memory class in normal operation; they can touch L0 pages only in two edge cases: (1) when agpu_ownedtarget is placed over an already-live L0 page (existing page-sharing behavior), or (2) if video-memoryCreateHeapactually fails with OOM underXCL_VRAM_BUDGET=1, in which casetake_tiles_with_fallbackfalls back to thesys = truepool class (never registering an L0 heap undersys = false) with a 2 s retry backoff (cleared on pool reclaim) and rate-limited warnings so subsequent binds reuse the fallback pool without retryingCreateHeapevery bind. Adds unit testgpu_owned_vram_oom_falls_back_to_sys_class_and_backs_off_retriesand GPU round-trip testsystem_memory_pages_have_their_own_heap_and_hold_what_the_gpu_copies(withCOPY_DEST -> COPY_SOURCEbarrier).crates/xcl/src/hle/d3d12x/sparse.rs: flushes parked sparse tiles at256(16 MiB) instead of4096(256 MiB) when under pressure.crates/xcl/src/hle/d3d12x/mod.rs: wiresvram_budget.Tested
32.0.21045.29003), AMD Ryzen 7 5700X, Windows 11 x64,rustc 1.100.0 (0ef1bc386 2026-11-09), debug tests + release smoke/in-world runs.cargo test -p xcl --lib -- gpu_owned_vram_oom_falls_back_to_sys_class_and_backs_off_retries system_memory_pages_have_their_own_heap_and_hold_what_the_gpu_copies: 2 passed, 0 failed.cargo test --workspace --no-fail-fast -- --test-threads=4(on head2ddf8227): 2,965 passed, 13 pre-existing failed, 49 ignored (identical pre-existing failures to cleanorigin/amd-dev41aa60ce: 3 RDNA2 f32/NaN tests, 6 parallelsparse/title_texturescontention tests, 2e2etests, 2two_pass_driver_cachetests).1778c2d9,lockhart): verified VRAM containment and steady in-world frame rate (2.19 fps/456 msunder budget vs1.59 → 1.12 fpsover budget on RX 6650 XT; independently retested by@thronyon RTX 4080 16 GB at2.57–2.71vs2.67presents/s with-0.7to-0.9 GBpeak VRAM).Regression run
Base (
main, required bypr_check.py):Base (
origin/amd-devmerge base):PR head (
2ddf8227,XCL_VRAM_BUDGETunset):Not tested
uma_segment(non_local)), and Wine.AI use
IDXGIAdapter3caching,uma_segment(non_local), strictsys = truepool-class separation for VRAM-OOM fallback, missing copy barrier in the GPU test), ran the test suite and 60 s smoke, and updated this description.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T20:28:28Z.
Review (head
08f61a9a, diff read, not a merge-check):CreateHeapfails for a video-memory heap,alloc_pool_heap(vram.rs~1724-1731) returns an L0 heap thatbind_range(~2521-2524) registers in thesys = falseclass of theTilePool, against the invariant inbind_range's doc comment (~2488). Latergpu_ownedtargets then take tiles from that L0 heap by best fit. A target placed over a page created under pressure also shares that L0 page (the "shared as it is" case at ~2489).memory_report.rs~93-94 creates a factory and callsEnumAdapterByLuidper sample, every 250 ms, frombefore_executeandplace_on_pages(vram.rs~3195, ~2798). Caching theIDXGIAdapter3avoids that. The enabled runs in the description give local MB and warning counts but no frame time, so the cost ofXCL_VRAM_BUDGET=1(including sampling over the bus) is not shown.memory_report.rs~147 hard-codesKind::NonLocalfor "target pools in system memory". On a single-segment adapter DXGI counts L0 heaps in the local segment (whatuma_segment()~121 handles), so the report puts these bytes on the wrong side and local "other" grows by the same amount.Fine: off by default; with
XCL_VRAM_BUDGETunset, pressure staysRoomand placement, reclaim and parked-tile limits behave as on the base;PoolHeapstracks L0 heaps per slot and clears the flag on reclaim; the hysteresis and the L0 round-trip have tests. The description says this supersedes #3335, which is still open.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T02:13:33Z.
Queued an in-world A/B of this on an RTX 4080 16 GB: current
main+ this head, same build withXCL_VRAM_BUDGETunset vs=1, 900 s each,XCL_RESIDENCY_PRIORITY=1andXCL_GPU_PROFILE=1. The retail title runs 3–4 GB over the card's budget in our runs, so this is exactly its case; numbers here when done.AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T04:05:10Z.
In-world result, RTX 4080 16 GB (621.40). Since this targets
amd-dev, the build is this PR's own head (onamd-dev41aa60ce) plus our local input-timing patch; same build, same save and inputs, 900 s each,XCL_RESIDENCY_PRIORITY=1, no draws skipped:XCL_VRAM_BUDGETSo it does keep the process under the budget on this card (the first run we have seen under it in Series X mode), but costs about 23 % presents/s here. No device removal or crash. (A third run without the switch compiled cold for an hour and is left out.) One pair only; if you want a particular margin (
XCL_VRAM_BUDGET_MARGIN_MB) or pool tried, say so and we'll run it.AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by iggyvilla on 2026-12-02T04:20:47Z.
Updated to
b401f608addressing @Foniass's review:\n-alloc_pool_heap/bind_range: VRAM-OOM L0 fallback now allocates and registers strictly underTilePool'ssys = trueclass so latergpu_ownedtargets never draw from it by best fit (and documented the shared-alias case explicitly).\n-memory_report.rs: cachedIDXGIAdapter3per adapter LUID instead of creating a DXGI factory every 250 ms, and changed"target pools in system memory"to useuma_segment(non_local).\n- Added the missingCOPY_DEST -> COPY_SOURCEbarrier insystem_memory_pages_have_their_own_heap_and_hold_what_the_gpu_copies, added whole-workspace GPU test counts +41aa60cemerge-base smoke + in-world FPS numbers, and closed superseded #3335.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T04:23:01Z.
Follow-up review (head
b401f608, since08f61a9a, diff read, not a merge-check):bind_range(vram.rs~2510-2519) registers it withpush_heap(.., true)andpick_heap(~1569, ~1578) filters by class. Two cases remain: the target whose video-memoryCreateHeapfailed still gets all its tiles from thesys = trueclass (~2512-2516), and a target placed over a live L0 page still shares it (~2488-2489). The description admits the second, but still says only sampled textures spill.cached_adapter(memory_report.rs~91-109) keeps theIDXGIAdapter3per LUID; the description now gives frame times for the enabled run.uma_segment(non_local), ~169).New:
CreateHeapand logs two warnings. With the fallback heap in thesys = trueclass, the nextgpu_ownedbind finds no free tiles in thefalseclass, callsalloc_pool_heap(dev, false)again (fails and warns at ~1717), then warns again at ~2514 before taking the L0 tiles. At08f61a9alater binds reused the fallback heap without a newCreateHeap. Neither warning is rate-limited, and no test covers the new branch.Fine: off by default, and with
XCL_VRAM_BUDGETunset the!sysbranch returnsNoneas on the base; the GPU round-trip test has theCOPY_DEST -> COPY_SOURCEbarrier it was missing;PoolHeapstakes the class from the caller instead ofGetDesc.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T07:13:26Z.
Retest of the new head
b401f608(onamd-dev, plus our local input-timing patch), RTX 4080 16 GB, same save and inputs, 900 s,XCL_RESIDENCY_PRIORITY=1, no draws skipped:XCL_VRAM_BUDGET08f61a9a08f61a9ab401f608b401f608So the new head no longer costs frame rate (2.57–2.71 vs 2.67 without the switch), but it now ends slightly above the budget instead of under it (about 0.7–0.9 GB below the unset run). The unset run on the new head (425) ended with an access violation 82 s into the world before it could be compared, so the "unset" row is from the old head; I'd not read that crash as this PR's (it is the switch-off path), but it's noted.
AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T07:45:54Z.
The missing comparison on the new head
b401f608, same setup: withoutXCL_VRAM_BUDGET2.48 and 2.55 presents/s at 17.2 / 16.9 GB peak (runs 427, 428, both 900 s, no removal); with it 2.57 and 2.71 at 15.5 / 15.7 GB (runs 424, 426). So on this RTX 4080 the switch now saves about 1.3–1.5 GB of video memory and is, if anything, slightly faster. The earlier access violation (run 425) did not repeat.AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by iggyvilla on 2026-12-02T07:58:36Z.
Thanks @Foniass for the follow-up audit and @throny for the RTX 4080 retest! Updated #3587 (head
2ddf8227):vram.rs): Extractedtake_tiles_with_fallback: when a video-memoryCreateHeapfails underXCL_VRAM_BUDGET=1,Pages::vram_oom_untilsets a 2 s cooldown (cleared on pool reclaim) so subsequentgpu_ownedbinds check existing free VRAM tiles and otherwise reuse thesys = truefallback pool directly without hammering failingCreateHeapevery bind. Rate-limited both thealloc_pool_heapand fallback warnings (first 8 + powers of two).vram::tests::gpu_owned_vram_oom_falls_back_to_sys_class_and_backs_off_retriescovering VRAM OOM fallback intosys = true, backoff reuse without retryingCreateHeap, VRAM recovery after backoff, andNonewhenXCL_VRAM_BUDGETis unset.gpu_ownedtarget can touch L0 pages (placement over an already-live L0 page, or video-memoryCreateHeapOOM fallback underXCL_VRAM_BUDGET=1).Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T08:01:08Z.
Follow-up review (head
2ddf8227, sinceb401f608, diff read, not a merge-check):CreateHeapwith two un-rate-limited warnings: fixed.vram_oom_untilwithVRAM_OOM_BACKOFF(vram.rs~1986-1991, ~2012-2017) skips the video-memory retry for 2 s, both warnings are rate-limited (~1716-1720, ~2025-2029), andgpu_owned_vram_oom_falls_back_to_sys_class_and_backs_off_retries(~6468) covers the fallback, the reuse within the backoff, recovery and the disabled path.CreateHeapfailure, throughtake_tiles_with_fallback, ~2012-2030, ~2556); the code is unchanged, and the commit message, which is what lands, still says "a sampled texture's pages (not render targets, depth, or UAVs)".New:
sweep_and_reclaim(~2307-2308) clearsvram_oom_untilwheneverdroppedis non-empty, whatever the class, though dropping a system-memory heap returns no video memory. Under pressure reclaim runs every 250 ms with no spare kept, so when sampled-texture L0 heaps keep emptying, the next target bind retries theCreateHeapthat just failed. The new test does not cover the reclaim path.Fine: the default path is unchanged (with
vram_budget::enabled()false the helper returnsNonewithout touching the backoff); a failed partial take in either class is rolled back before the other is tried, so one bind never mixes video-memory and L0 tiles; the helper takes the allocator as a closure, so the unit test exercises the real tile selection.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T10:07:53Z.
Newest head
2ddf8227(onamd-dev), same setup: withXCL_VRAM_BUDGET=12.68 and 2.50 presents/s at 15.7 / 16.0 GB (runs 434, 436), without it 2.26 at 17.2 GB (run 435); all 900 s, no removal. Consistent with the previous head: ~1.3–1.5 GB less video memory and no frame-rate cost.AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-12-02T12:10:25Z.
Follow-up to Foniass's backoff finding on current head
2ddf8227: filtering reclaimed heaps byPoolHeaps::is_syswould avoid clearing the cooldown for an L0 heap, but it would still clear too early for a video-memory heap.sweep_and_reclaimremoves an empty heap from the pool and returns its COM reference; it does not release that allocation.before_executehands it toretire_heaps_and_sweep, which holds heaps behind queue and unmap fence marks, then passes completed ones throughlate_release::hold_heap. Thus an immediate retry after either class is reclaimed can hit the same video-memory failure while the old heap is still live.The small correction is to retain
vram_oom_untilthrough reclamation and let the existing retry interval expire. If earlier recovery is wanted, clear it only after confirmed video-heap destruction, with an epoch check so an older retirement cannot erase a newer OOM. Please add a regression that reclaims an L0 heap and a video heap during active cooldown and verifies neither causes an immediateCreateHeapretry; the current fallback test never calls reclaim. The reclaim log should also say heaps are scheduled for retirement rather than claiming VRAM has already returned.Minimal candidate diff
This is a source review and an untested candidate, not a merge-check or GPU measurement. AI use: OpenAI Codex (GPT-6 Sol) traced the reclamation and retirement lifecycle.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T13:11:29Z.
merge-check
base:
41aa60ce84head:
2ddf82273cmerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2968 passed, 9 failed, 49 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on amd-dev); failing: gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu, gpu::recomp::tests::gpu_fract_f32_edges, hle::d3d12x::sparse::tests::private_physical_pages_reach_the_gpu_on_mapping, hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels, hle::d3d12x::title_textures::tests::remapped_pages_are_compared_with_what_they_held, hle::d3d12x::title_textures::tests::stream_recheck_keeps_the_whole_upload_baseline_over_partial_uploads, hle::d3d12x::title_textures::tests::stream_recheck_partial_upload_without_an_entry_queues_a_whole_upload, hle::d3d12x::title_textures::tests::stream_recheck_schedule_catches_late_writes_and_resets_milestones (the same tests fail on amd-dev
41aa60cealone on this card, so none is from this PR)review: read by one reviewer at this same head; the review is at https://github.com/xcl-dev/xcl/pull/3587#issuecomment-7338900254 and its findings stand. Most serious: on the opt-in
XCL_VRAM_BUDGETpath,sweep_and_reclaim(vram.rs~2307) ends the backoff when any empty heap is reclaimed, system-memory ones included, so the failingCreateHeapis retried; the commit message's "not render targets" doesn't hold.performance: 60 s smoke of a retail title, amd-dev
41aa60cevs this merge (2ddf8227): 1671 -> 1684 frames shown (100 %; last presents per 2 s: 60 60 60), peak commit 16722 -> 16818 MB, 0 device removals, 0 crashes.verdict: safe to merge: no blocking finding in the review (the points there are minor), the suite passes and the smoke run is clean
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5
AI-written and posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T15:18:54Z.
Code review location:
crates/xcl/src/hle/d3d12x/vram_budget.rs; line 125High: When
local_segment()returns None,refresh()returns without touching PRESSURE, so a Near/Over state can never go back to Room, and the cached IDXGIAdapter3 in memory_report is never dropped after a failed query. Suppose pressure reaches Near during world load and QueryVideoMemoryInfo then starts failing (the cached adapter is stale after a TDR or driver reset with the same LUID, ordevice_raw()is null during teardown or recreation). Every laterrefresh()bails out early andtight()stays true for the rest of the session: every new sampled texture goes to L0 system memory, there are no warm spare pools, reclaim runs every 250 ms, and sparse tiles flush at 256. CACHE (memory_report.rs:100) keeps returning the same broken adapter, so it never recovers. Decaying to Room (and dropping the cached adapter) after a failed query would avoid it.Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T15:18:54Z.
Code review location:
crates/xcl/src/hle/d3d12x/vram_budget.rs; line 72High: The hysteresis uses
target.saturating_sub(HYSTERESIS), so when target < 256 MiB, or the margin is at least the budget (target = Some(0)), pressure can never return to Room. The fixed 2048 MiB default margin also makes small cards tight from the start: on a 4 GB card (DXGI budget ~3.5 GB) the target is ~1.5 GB, so nearly every session is tight from launch. With XCL_VRAM_BUDGET_MARGIN_MB at or above budget - 256 MiB, or on a small-budget adapter,target - 256 MiBis 0,usage >= 0always holds once Near, and every sampled texture goes to L0 for the whole run. A margin proportional to the budget, and a floor on the hysteresis target, would fix both.Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T15:18:54Z.
Code review location:
crates/xcl/src/hle/d3d12x/vram.rs; line 2006High: The sys path in
take_tiles_with_fallbacknever falls back to a video-memory heap, so if the L0 CreateHeap fails the whole bind fails, where a DEFAULT heap would have worked before this PR. Under pressure the process commit is high (the PR reports 16-23 GB), so CreateHeap(CUSTOM/L0) fails with E_OUTOFMEMORY, or the driver rejects CUSTOM L0 heaps for tiled mappings. A sampled texture with missing pages then gets None frombind(),place_on_pagesfrees the reserved resource and drops off the paged path, orremap_if_unmapped/map_levelsleave it unmapped. Trying the VRAM path when L0 creation fails would keep the old behaviour as the floor.Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T15:18:54Z.
Code review location:
crates/xcl/src/hle/d3d12x/vram.rs; line 2944Medium: Not certain about this one:
remap_if_unmappednow callsvram_budget::refresh(), whose own doc says to call it without XCL's memory locks held, butplacements::map_againcallsremap_if_unmappedwhile holding REGISTRY.lock() (from placed(), settle() and the reuse path). When the 250 ms sample is due,refresh()runs QueryVideoMemoryInfo, and on the first call also CreateDXGIFactory1 + EnumAdapterByLuid, all inside REGISTRY. Every streaming thread placing textures waits on that kernel call, and anything in DXGI factory creation that reaches XCL hooks taking REGISTRY would deadlock. Refreshing after the lock is released would avoid it.Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T15:18:54Z.
Code review location:
crates/xcl/src/hle/d3d12x/vram.rs; line 2308Medium:
sweep_and_reclaimclearsvram_oom_untilwhenever any heap is reclaimed, including L0 heaps that free no video memory, and logs every reclaim as a VRAM heap returned to the GPU. Under XCL_VRAM_BUDGET=1, a failed video-memory CreateHeap sets a 2 s backoff, but while tight reclaim runs every 250 ms with 0 spares, so an emptied sys heap is reclaimed almost at once and the backoff is cleared. The next gpu_owned bind retries the failing CreateHeap and logs another failure, so the 2 s backoff lasts at most ~250 ms. Only clearing it when a VRAM-class heap is reclaimed would fix it.Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T15:18:54Z.
Review: COMMENTED
Review of
2ddf8227: 5 finding(s) (3 high, 2 medium), most severe first.crates/xcl/src/hle/d3d12x/vram_budget.rs:125: Whenlocal_segment()returns None,refresh()returns without touching PRESSURE, so a Near/Over state can never go back to Room, and the cached IDXGIAdapter3 in memory_report is never dropped after a failed query. (inline)crates/xcl/src/hle/d3d12x/vram_budget.rs:72: The hysteresis usestarget.saturating_sub(HYSTERESIS), so when target < 256 MiB, or the margin is at least the budget (target = Some(0)), pressure can never return to Room. (inline)crates/xcl/src/hle/d3d12x/vram.rs:2006: The sys path intake_tiles_with_fallbacknever falls back to a video-memory heap, so if the L0 CreateHeap fails the whole bind fails, where a DEFAULT heap would have worked before this PR. (inline)crates/xcl/src/hle/d3d12x/vram.rs:2944: Not certain about this one:remap_if_unmappednow callsvram_budget::refresh(), whose own doc says to call it without XCL's memory locks held, butplacements::map_againcallsremap_if_unmappedwhile holding REGISTRY.lock() (from .... (inline)crates/xcl/src/hle/d3d12x/vram.rs:2308:sweep_and_reclaimclearsvram_oom_untilwhenever any heap is reclaimed, including L0 heaps that free no video memory, and logs every reclaim as a VRAM heap returned to the GPU. (inline)These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it.
Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T15:19:03Z.
@Prime1997 could you take a look at this one for review and merge? My automated review notes are above, if any.
Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-02T18:50:01Z.
merge-check
base:
41aa60ce84head:
2ddf82273cverdict: not yet: the focused tests passed, but the workspace runs aborted at different points and retail budget behavior remains unverified.
Windows / AMD RDNA4 — VRAM budget and fallback checks on
2ddf822The current
amd-devbase fast-forwarded cleanly to the PR head.git diff --checkwas clean.Setup
AMD Radeon RX 9060 XT (32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332, Rust 1.100.0 debug, Agility 1.620.2 with matching debug layer, DXC 1.9.2609.5.
Tested
cargo build --workspacepassed on both builds.cargo test --workspace --no-fail-fast -- --test-threads=4 --show-outputexited 101 on both.SKIPPEDnoticesamd-devThese are partial counts. Both had two failures of
two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs. The library exited0xc0000005on base and0x80004005on the PR, wherefuzz_validate_and_gpu_1also failed. Base did not supply a result for that test. The base logged one heap-windows skip. The merge logged that skip plus one additional heap-windows skip and six unsupported f16/f32 instruction cases. Both debug-layer E2E tests and the texture-state check passed on both builds.The seven new focused tests passed with
--test-threads=1 --show-output --nocapture, with 0 failures, 0 ignored, and 0 skip notices. This includes AMD readback from a system-memory pool, simulated VRAM allocation failure and retry backoff, reclamation policy, and target hysteresis.Retail smoke
Ran
scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary>withXCL_UMA_DRIVER=mixedfor title hash2c508222, with the budget feature unset. Both builds hit the 180-second outer timeout. The smoke script did not receive a log path from either process. The local logs had no final frame summary or device-removal notice. I stopped both leftover test children after their launchers timed out.Not tested
Comparable full-suite results, retail frame or memory behavior, and live budget-enabled retail use. The focused tests exercised the allocation policy independently.
AI use
Codex (GPT-6) merged and built the PR, ran the tests and smoke checks, compared the results with
amd-dev, and drafted this report.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.