D3D12.X: recycle released reserved sampled textures by description and state #2436
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2436
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2436"
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?
@saintwolf on GitHub · 2026-11-25 18:40 UTC · original
saintwolf:vram/recycle-reserved-textures→main· +683 −34 · 4 files · 1 commits · openRecycles released reserved sampled textures in a bounded per-device pool keyed by exact
(D3D12_RESOURCE_DESC, uniform D3D12_RESOURCE_STATES)so streamed texture placements skipCreateReservedResourceandGetResourceTiling. Fixes #1268. Part of #1833.What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs:forget(res)returns the removed texture's last tracked uniformD3D12_RESOURCE_STATESwhen all subresources share a single state (states.len() == 1), orNonefor mixed-state / untracked textures.crates/xcl/src/hle/d3d12x/real.rs: hooksSetPrivateData,SetPrivateDataInterface, andSetNameonKind::Resourceto track resources with application private data or debug names; on finalRelease(n == 0) whilelate_releaseholds the last PC ref, parks eligible untaggedplace_pagessampled textures with their actual uniform D3D12 state (excluding any resource with private data so custom GUID payloads andSetPrivateDataInterfaceCOM references never leak across lifetimes); exposesnote_reservedso reused pointers re-register inRESERVED.crates/xcl/src/hle/d3d12x/late_release.rs: once every live GPU queue is past a batch's fence, hands parked textures tovram::recycle_readyinstead of destroying them; callsvram::drain_recycled()indrain_knownand keeps the worker started whilevram::pending_recycles()is non-empty.crates/xcl/src/hle/d3d12x/vram.rs: addsReservedKey, a per-devicepending_recyclesfence-gated staging FIFO (PendingRecycle), and a bounded per-deviceReservedPool(512idle entries/device, generation-tombstoned FIFO eviction with boundedordercompaction, evicted entries dropped outsidePAGES.lock(), opt-out viaXCL_RESERVED_POOL=0).recycle_readyunmaps any still-mapped tiles (pages.unmap) and stages the texture withpages.valueso it stays owned until the tile-mapping queue passes that fence mark beforedrain_recycled()promotes it intoReservedPool.place_on_pagespops matching pooled reserved textures viaQueryInterfaceand reuses their cached tile count, skippingCreateReservedResourceandGetResourceTiling. Adds unit tests (reuse hit, state isolation, FIFO eviction, cap=0, repeated take/repark tombstoning + cap-FIFO ordering, pending-mark retention) and GPU tests (fence-gated unmap/recycle/rebind, private-data exclusion).Tested
32.0.16.2140), AMD Ryzen 7 7800X3D,rustc 1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL1.8.2502.11..\scripts\test.ps1(cargo test --workspace -- --test-threads=4, debug) on exact head3d6e230c: 1428 passed, 0 failed, 46 ignored across 37 test binaries, including all 24hle::d3d12x::vram::tests(reserved_pool_reuses_matching_key_isolates_state_and_evicts_fifo,recycled_texture_stays_owned_until_its_mapping_mark_completes,reserved_pool_repark_tombstones_stale_order_and_preserves_fifo,reserved_resource_recycle_unmaps_reuses_and_remaps_on_gpu, andreserved_resource_with_private_data_is_excluded_from_recycle).SKIPPEDGPU tests on this adapter (27 total): 21no wave64, 3 per-lane form#1426refusals (V_CVT_F16_F32,V_MUL_F16,V_PK_MUL_F16), 1cannot disable the driver cache (Windows Developer Mode is required)(0x887A002D), 1no xgameruntime.dll, 1no heap windows.#1268microbenchmark on RTX 4070 SUPER (release,2,000iterations each):256x256 BC1 (9 mips):CreateReservedResource + GetResourceTiling + Release222.33 ms (111.17 µs/tex) → recycled pool 0.04 ms (0.019 µs/tex) (5,730× faster).1024x1024 BC7 (11 mips): 279.58 ms (139.79 µs/tex) → recycled pool 0.04 ms (0.019 µs/tex) (7,262× faster).XCL_DIRECT_DXIL=1,XCL_PSO_WAIT_MS=50,XCL_PRESS_A_AT=15,20,25,30,35,40,45, isolated caches):XCL_RESERVED_POOL=1cleanly recycled 32+ streamed reserved textures live before both arms hit the same pre-existingxboxbvhbuilder.dll40-bit VA exception (~112–116 s), with0device removals and-352 MBlower peak commit (28,903 MBvs29,255 MB).Regression run
Not tested
0.62–1.70 msper-textureCreateReservedResourcestall from #1268 was measured on AMD RDNA2 and should see the largest streaming speedup there).xboxbvhbuilder.dll40-bit VA exception).AI use
@emirduran707 on GitHub · 2026-11-25 19:00 UTC · original
Independent AMD RDNA4 (native wave64) test report on exact head
e2cf9357ba193507dfbc19d4e3b040b63ee957e7(clean detached checkout, no local changes).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1275 passed, 2 failed, 46 ignored; 8 SKIPPED (6 inlower_dxil::tests::{f16,f32}_programs_on_the_gpurefused by per-lane form;heap_window_out_of_memory_falls_back_to_the_switch_form;pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.hle::d3d12x::vram::tests::reserved_pool_reuses_matching_key_isolates_state_and_evicts_fifoandreserved_resource_recycle_unmaps_reuses_and_remaps_on_gpu.gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1seed 722 andfuzz_validate_and_gpu_3seed 1599) are pre-existing on unmodifiedmainon this GPU.Regression run (60 s retail-title smoke,
XCL_NETWORK=0, release)(Matched
main68a284abaseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)Not tested
AI use
@SlopTart on GitHub · 2026-11-25 19:46 UTC · original
gpu_suite (cold cache): 160 passed / 4 failed, no crashes. Three are the known baseline trio on this lane; the fourth isgpu_promoted_uav_clear_values_pass_create_committed_resource, newly red on main since #2280 (report), unrelated to this PR.Targeted run of
reserved_pool_reuses_matching_key_isolates_state_and_evicts_fifo: passed (the gpu-side recycle test ran inside the suite).@DavidM1911 on GitHub · 2026-11-25 20:04 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
@saintwolf on GitHub · 2026-11-25 20:28 UTC · original
@bmjask Good catch — fixed in
2f92cc8(also rebased ontomain6d12f58, picking up #2420 so the full workspace suite passes with 0 failures — cc @DavidM1911):ReservedPoolnow tracks a monotonicnext_gen: u64andlive_gen: HashMap<usize, u64>with generation-taggedorder/by_keyentries.take()removes the pointer fromlive_gen(immediately tombstoning any staleorderentry) and callscompact_order(), which prunes front tombstones and compactsorderwheneverorder.len() > max(2 * live, 16)so repeated take/repark cycles below cap cannot accumulate unbounded stale entries.push()skips tombstoned generations during cap eviction so a reparked pointer is ordered strictly by its current parking time.reserved_pool_repark_tombstones_stale_order_and_preserves_fifocovering 100× below-cap take/repark cycles behind an idle front entry, cap=2 repark FIFO ordering, and cap=3 non-front tombstone skipping.@oni-swr on GitHub · 2026-11-25 22:10 UTC · original
Independent AMD report for
2f92cc841ad65e2dc7e63fea17d227a71e44f16b.Tested
XCL_ADAPTER=radeon. Exact PR head (not a local merge ontomain); main at the time was6d12f58a.cargo test --workspace --no-fail-fast -j 4 -- --test-threads=4: 1425 passed, 1 failed, 46 ignored. The one failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722:res[30] = 0x1, CPU 0x7fffffff); it fails identically onmain6d12f58aon this adapter (cargo test -p xcl --lib fuzz_validate_and_gpu_1), so it is not caused by this PR.f16_programs_on_the_gpu/f32_programs_on_the_gpuper-lane cases refused forV_MUL_F16,V_PK_MUL_F16orV_CVT_F16_F32, andheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).vram::tests::reserved_pool_*andreserved_resource_recycle_unmaps_reuses_and_remaps_on_gpu(GPU) passed.Not tested
scripts/smoke.ps1/ a retail title (no regression run), other adapters, NVIDIA. No game data was used.AI use
Claude Code (Claude Sonnet 5.5) ran the tests and wrote this report. No game files, dumps or shader names are included.
@DavidM1911 on GitHub · 2026-11-26 02:12 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
@bmjask on GitHub · 2026-11-25 20:19 UTC · original · reviewed
P2: ReservedPool::take at vram.rs:196-204 removes an entry from by_key/live but does not remove or invalidate its matching VecDeque entry in order. Every reuse/repark adds another order entry (:225-227), so a pool below cap accumulates stale entries indefinitely. At cap, a stale entry can match a reparked pointer and evict it by its original rather than current parking time, violating the intended bounded FIFO behavior. The test takes entries only once and misses reuse->repark cycles. Please tombstone/remove by generation on take and add a repeated recycle/repark plus cap-FIFO test.
@luckyteagirl on GitHub · 2026-11-26 07:43 UTC · original · reviewed
vram.rs:1177–1185: this returns the same nativeID3D12Resourcefor a new texture without clearing itsID3D12Objectprivate data. If a title sets a custom GUID payload on eligible sampled texture A, releases/drains A into this pool, and creates matching texture B,GetPrivateDataon B can return A's payload.SetPrivateDataInterfacealso retains its attached COM reference until that native object is destroyed or the same GUID is overwritten (Microsoft's lifetime contract), so pooling can carry that ownership across apparent texture lifetimes. The pool key covers description/state, and I do not see setter tracking or a private-data reset on reuse.Could a resource with application private data be excluded from reuse, or its tracked GUIDs be cleared before it is handed to B? A focused test could tag A with a custom GUID and confirm B behaves like a fresh resource. This is source/API-contract review at exact head
2f92cc841ad65e2dc7e63fea17d227a71e44f16b; I have not run the native reuse fixture or observed a title using custom private data. AI-assisted review with Codex.2f92cc841atobab2f53750@saintwolf on GitHub · 2026-11-26 15:47 UTC · original
@luckyteagirl Good catch — fixed in
bab2f537:crates/xcl/src/hle/d3d12x/real.rsnow hooksSetPrivateData,SetPrivateDataInterface, andSetNameonKind::Resource, recording any tagged resource pointer inPRIVATE_DATA.Release(n == 0),res_releaseremoves the pointer fromPRIVATE_DATAand skipsvram::park_recyclableif it was tagged, solate_releasedestroys the nativeID3D12Resourcenormally — preservingSetPrivateDataInterfaceCOM reference lifetimes and preventing any custom GUID payload or debug name from leaking to a later texture.hle::d3d12x::vram::tests::reserved_resource_with_private_data_is_excluded_from_recyclecovering bothSetPrivateData(custom GUID payload) andSetPrivateDataInterface(attachedID3D12FenceCOM object), confirming fresh resources seeGetPrivateDatafail while untagged resources on the same path still recycle.@Prime1997 on GitHub · 2026-11-26 15:58 UTC · original
Please keep recycled textures alive through their tile-unmap fence.
At
bab2f53750e703f64af5b84f3a58ff4e06a67656,recycle_readyqueues an unmap after the earlier retirement fences have already completed. It immediately adds the texture to the ready pool. The eviction path and the failed reuseQueryInterfacepath can release the pool’s last reference before the new mapping fence completes. XCL has already seen in-flight release errors on this queue in #1747.Please retain pending textures behind their own unmap fence, then add them to the ready pool or release them after completion. A CPU test with a fake fence can assert that a pending texture stays retained when the pool is full or reuse fails. The current GPU fixture waits for the mapping fence before its final release and leaves this ordering untested.
Local result: I tested this head applied to main
8b957bec6f82495aec940944c6bf47faa02db590on Windows with an RTX 3060 Ti. All four targeted reserved-texture tests ran. 4 passed, 0 failed, 0 ignored, 0 explicit skips, with 1,348 filtered out per invocation. I rebuilt withcargo test --locked -p xcl --lib --no-runin an isolated worktree and ran each fixture separately with--test-threads=1 --nocapture. The fence finding comes from source review.AI use: Codex (GPT-6) inspected the release and mapping paths, ran the focused tests, and verified the recorded results. Optional temporary Discord for coordinating contributor work, testing, and comparing results.
github-bot referenced this pull request2026-11-26 16:04:32 +00:00
@thehollowedone on GitHub · 2026-11-26 16:26 UTC · original
Follow-up to Prime1997's tile-unmap lifetime review, tested against exact head
bab2f537. The review point holds: the old release batch can finish,recycle_readythen queues a newUpdateTileMappings(NULL)and publishes the resource toReservedPoolbefore that mapping queue's fence completes. A pool eviction or failed reuseQueryInterfacecan drop its last COM reference in that gap.I tested the attached uncommitted candidate. It keeps the owned resource in a per-device pending FIFO with the mapping queue's fence value, including when the resource was already unmapped by an earlier queued update. The existing late-release worker promotes completed entries to the ready pool; native releases of evicted entries happen outside
PAGES.lock(). It starts the worker even if the earlier release batch is empty, so promotion needs no later title submission. Pending work does not extend the release path's busy-spin. A failed mapping-queue signal leaves the resource held rather than publishing it prematurely.On Windows 11, RTX 3080 Ti / driver 621.35, Ryzen 7 9800X3D, rustc 1.99.1 MSVC:
cargo test --offline --locked -p xcl --lib recycled_texture_stays_owned_until_its_mapping_mark_completes -- --test-threads=1: 1 passed, 0 failed, 0 ignored, 0 skips. Capacity-one pool pressure cannot take or evict a pending resource; completion makes it reusable.cargo test --offline --locked -p xcl --lib reserved_resource -- --test-threads=1: 2 passed, 0 failed, 0 ignored, 0 skips. The native fixture holds the mapping queue behind a fence, checks no early reuse, then releases the gate and reuses the same resource. The existing private-data fixture still checks fresh-resource isolation and now waits for the unmap fence before expecting reuse.cargo build --offline --locked --workspace: passed.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4: 1,427 passed, 1 failed, 46 ignored, with 25 explicit GPU skips (21 no wave64, 3 refused per-lane forms, 1 no heap windows). The sole failure wasconsole_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk(DXIL not compiled yet). I did not run the full suite on this PR's base, so that failure is not attributed here.No paired clean-tree smoke run, retail title, AMD, or Intel test was done for this local candidate. The diff is a review suggestion for the existing PR, not a merge-readiness claim.
Candidate diff against
bab2f537AI use: Codex (GPT-6.2 Sol) inspected the ownership path, implemented and checked the local candidate, ran the tests, and drafted this comment.
@futurepro62 on GitHub · 2026-11-26 17:13 UTC · original
NVIDIA and AMD full-suite run, to go with the reports above by Prime1997, thehollowedone, since none of them covers AMD. Tested exact head
bab2f537(on its base6d12f58).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1415 passed, 0 failed, 44 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,dispatch_chain_native_wave64_builds_whole,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.reserved_pool_reuses_matching_key_isolates_state_and_evicts_fifo,reserved_pool_repark_tombstones_stale_order_and_preserves_fifo,reserved_resource_recycle_unmaps_reuses_and_remaps_on_gpu,reserved_resource_with_private_data_is_excluded_from_recycle.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1426 passed, 0 failed, 46 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on main8b957bectoo, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
bab2f53750to3d6e230c26@saintwolf on GitHub · 2026-11-26 17:48 UTC · original
@Prime1997 @thehollowedone Fixed in
3d6e230c— recycled textures now stay owned until their tile-mapping queue fence mark completes:crates/xcl/src/hle/d3d12x/vram.rs:recycle_readyqueuespages.unmap(if mapped) and stages the texture in a per-devicepending_recycles: VecDeque<PendingRecycle>withpages.valuerather than publishing immediately toReservedPool.drain_recycled()promotes completed entries (mark <= pages.fence.GetCompletedValue()) intoReservedPooland calls COMReleaseon any evicted entries outsidePAGES.lock().crates/xcl/src/hle/d3d12x/late_release.rs:drain_knowncallsvram::drain_recycled(), andholdkeeps thexcl-late-releaseworker started whenevervram::pending_recycles()is non-empty so promotion never depends on a later title submission.recycled_texture_stays_owned_until_its_mapping_mark_completes, updatedreserved_resource_recycle_unmaps_reuses_and_remaps_on_gpuwith a GPU fence gate on the tile-mapping queue, and updatedreserved_resource_with_private_data_is_excluded_from_recycleto wait on the mapping mark before asserting reuse..\scripts\test.ps1(0 failures) and a fresh 60 sscripts/smoke.ps1run at3d6e230c(updated in the PR description).@Decodere on GitHub · 2026-11-26 19:08 UTC · original
Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2436 updated head
3d6e230c26c508454f36a178b9fe3362920c2abf(exact parent & merge-base6d12f58a229bc73889878a448c64dc3af25eeba0). Measurements and targeted test results only; not a full source review.Setup
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2609.5, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs)title: 29640639viascripts/smoke.ps1 -Seconds 60(XCL_NETWORK=0, default flags, no input)Targeted RTX 4060 release unit & GPU tests (
3d6e230c)cargo test --release -p xcl --lib reserved_pool_reuses_matching_key_isolates_state_and_evicts_fifo -- --nocapture: 1 passed, 0 failed, 0 ignored (0.00 s,0SKIPPED).cargo test --release -p xcl --lib recycled_texture_stays_owned_until_its_mapping_mark_completes -- --nocapture: 1 passed, 0 failed, 0 ignored (0.00 s,0SKIPPED).cargo test --release -p xcl --lib reserved_pool_repark_tombstones_stale_order_and_preserves_fifo -- --nocapture: 1 passed, 0 failed, 0 ignored (0.00 s,0SKIPPED).cargo test --release -p xcl --lib hle::d3d12x::vram::(3 consecutive parallel passes): 24 passed, 0 failed, 1 ignored on all 3 passes (2.41 s/2.41 s/2.41 s,0SKIPPED).cargo test --release -p xcl --lib hle::d3d12x::title_textures::(3 consecutive parallel passes): 19 passed, 0 failed, 0 ignored on all 3 passes (0.73 s/0.69 s/0.69 s,0SKIPPED).cargo test --release -p xcl --lib hle::d3d12x::real::: 59 passed, 0 failed, 0 ignored (0.36 s,0SKIPPED).Paired 60 s RTX 4060 smoke (exact parent
6d12f58avs3d6e230c)Both runs completed cleanly at steady 60/2 s pacing with
0device removals and0crashes (3d6e230cvs6d12f58axcl.log:6,175/6,114 MBvs6,176/6,116 MBpeak/end local VRAM,4,683 MBend non-local VRAM on both,19,699vs19,600translated draws /1,024dispatches with0skipped).Exact parent (
6d12f58a):PR #2436 head (
3d6e230c):Limits of coverage
3d6e230c(only the 3 new tests individually, 3 parallel passes each ofvram::andtitle_textures::,real::, release build, and exact-parent paired 60 s smokes).recycled_texture_stays_owned_until_its_mapping_mark_completes).RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.AI use
Ran the targeted release unit/GPU tests, release build, and exact-parent paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from
cargo test,xcl.log, andscripts/smoke.ps1outputs.@oni-swr on GitHub · 2026-11-26 19:49 UTC · original
Independent AMD report for
3d6e230c26c508454f36a178b9fe3362920c2abf.Tested
XCL_ADAPTERunset), Ryzen 7 5700X3D, 64 GB, Windows 11 build 26200, rustc 1.100.0, debug profile for tests / release forxcl.exe, DXC from the Windows SDK. Exact PR head in a clean detached checkout (not merged ontomain), own target directory per checkout;mainwas8b957bec, merge-base below. Merge-base:6d12f58a229bc73889878a448c64dc3af25eeba0.cargo test --workspace --no-fail-fast -j 4 -- --test-threads=4 --nocapture: 1427 passed, 1 failed, 46 ignored. The one failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722:res[30] = 0x1, CPU 0x7fffffff); it fails identically onmain6d12f58aon this adapter (cargo test -p xcl --lib fuzz_validate_and_gpu_1), so it is not caused by this PR.e2efailures from my setup (the test title was not built next to the e2e binary); aftercargo build --workspacethee2etest passed (cargo test -p xcl --test e2e), counts below include that rerun.f16_programs_on_the_gpu/f32_programs_on_the_gpuper-lane cases refused forV_MUL_F16,V_PK_MUL_F16orV_CVT_F16_F32, andheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).vram::testspassed, includingrecycled_texture_stays_owned_until_its_mapping_mark_completesand the GPU testreserved_resource_recycle_unmaps_reuses_and_remaps_on_gpu.Regression run (
scripts/smoke.ps1 -Seconds 60 -Title retail-title, one 60 s run each, same retail title, built from the merge-base and from this head)No device removal, no crash; 1381 frames vs 1413 on the merge-base (97.7 %), peak commit 16622 MB vs 13754 MB (121 %, under the 125 % limit). The last-3 presents-per-2-s sample of the PR run was
57 14 54; I did not investigate that dip and a single run cannot say whether it repeats.Not tested
XCL_ADAPTERoverrides, any title other than the one retail title. No game data was committed or posted.AI use
Claude Code (Claude Sonnet 5.5) ran the tests and drafted this report. No game files, dumps, shader names or retail hashes are included; the title in the
xcl-smokeblocks is replaced withretail-title.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.