Repository navigation
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
…cl-dev#851, xcl-dev#864, xcl-dev#875-xcl-dev#876 and Wine raw fences Integrate clean upstream PRs on top of upstream/main (1ec4c98): - xcl-dev#849: direct move_away for remapped physical pages (avoids 4x sparse tile-mapping round-trips) - xcl-dev#838: FillMemoryWith*BitValueX uses list upload arena instead of leaked pattern buffers - xcl-dev#840: merge released ranges of the shared descriptor heap - xcl-dev#839: map queue-specific D3D12_BARRIER_LAYOUT values to legacy resource states - xcl-dev#841: preserve due frame-clock events when schedule changes at deadline - xcl-dev#851: split wrapped command lists before Wait64 GE after ordinary GPU work - xcl-dev#864: export XMemIsToolsMemAvailable returning 0 on retail - xcl-dev#875: tbuffer_load_format_* uses identity DST_SEL instead of V# DST_SEL - xcl-dev#876: implement IDXGIDevice2::EnqueueSetEvent Also add real::create_raw_fence for internal fences (late_release and EnqueueSetEvent) so Wine/vkd3d-proton never receives a FenceProxy on unadopted internal queues or SetEventOnMultipleFenceCompletion, and wrap list_x test exec with UnadoptGuard. Assisted-by: Antigravity (Google DeepMind)
release_global() pushed each released range onto the free list as it was, and take_range() splits them first fit, so neighbouring ranges never joined again and the unused end never moved back. Heaps made and released over a session left the shared heap in pieces too small for a page: with 2048 descriptors all free again but in 8 pieces, three of four 512- descriptor pages fit and the fourth found the heap full. Released ranges are now kept in order, merged with their neighbours and given back to the unused end when they reach it. Assisted-by: Claude Code (Claude Opus 5.5)
20795af to
feacb14
Compare
…cl-dev#864, xcl-dev#875-xcl-dev#876 Re-apply the 8 non-merged upstream PRs from our previous fork main onto upstream/main (930e8b4): xcl-dev#838 (upload-arena fills), xcl-dev#839 (queue-specific barrier layouts), xcl-dev#840 (coalesced shared descriptor heap), xcl-dev#841 (frame clock deadline reschedule), xcl-dev#851 (split before Wait64 GE after ordinary work), xcl-dev#864 (XMemIsToolsMemAvailable), xcl-dev#875 (tbuffer_load_format identity DST_SEL), and xcl-dev#876 (IDXGIDevice2::EnqueueSetEvent with create_raw_fence). Assisted-by: Antigravity (Google DeepMind)
|
Regression run on a retail title for Tested
main: this PR: Not tested
AI use
|
Empirical test report (feacb14)Verified xcl-dev/xcl PR #840 at commit Hardware / environment Windows x64 build 26200.0 on an AMD Family 23 Model 113 CPU with 12 logical processors available to the process. Rust was Commands and results
Observed behavior The allocator fixture recovered all four 512-descriptor pages in a 2,048-descriptor simulated heap after out-of-order page releases and intervening eight-descriptor allocations. It also verified that returning an interior range joins the free ranges on both sides and that freeing through the allocation frontier resets it to zero and empties the free list. Not tested The full GPU workspace suite and game smoke runs were omitted. This fixture exercised the allocator helpers in memory. Live D3D12 heap creation and descriptor reuse through the runtime were outside the test's coverage. AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
Keeps
GLOBAL.freeinconsole_heap.rssorted, coalesces adjacent released ranges ingive_back(), and reclaims trailing free ranges back intonext(switchingtake_range()fromswap_removetoremoveto preserve order).release_global()pushed released ranges ontofreewithout coalescing or shrinkingnext, so creating and destroying descriptor heaps over a session fragmented the shared heap until larger contiguous page allocations failed even when enough total descriptors were free.released_shared_ranges_mergeverifying full reclamation, out-of-order releases interleaved with small allocations, and bridging two adjacent free ranges.Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstalled20795afd9f6c9ed7ca01cb4b9f4b23b829b99fc1cargo build --workspace: clean (only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 714 passed, 0 failed, 41 ignored (new testhle::d3d12x::console_heap::tests::released_shared_ranges_mergepassed)SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Not tested
scripts/smoke.ps1) not yet run (no retail title available in this clean-room environment); opened as Draft pending a smoke run.AI use