xmem, d3d12: cache placement backing runs across clean section-backed textures #495
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/495"
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 brcly/TuxBox. Originally posted by DrArroway on 2026-11-29T16:48:14Z.
Summary
TuxBoxPhysicalMappingState(MappingMutationGuardseqlock around physical page mapping, unmap, free, copy-mappings, arena allocation, deferred-unmap flush, and secondary-alias promotion mutations).RunMaps lock-free on clean XMem-monitored and non-XMem placed textures usingcached_xmem/cached_not_xmem+cached_not_xmem_stateseqlock validation, skipping redundantTuxBoxAcquirePhysicalBackingFFI calls when section-backed / clean textures undergo repeated in-place digest checks.UNMONITOREDwatch cells and cache contiguousown_region_span/empty_aperture_spanbounds inxmem::physical_pages::trackingto cutrearmsyscall/BTree overhead, skip emptyflush_deferred_unmapscalls, and throttletrace_backing_stats.mapped_first/checked_genresidency checks (Images::generation) and widenCheckPoolworker cap from 6 to 12 with 1024-texture chunks.Verification
GE-Proton11-14):tuxbox-xmem(physical_pages): 32 passed, 0 failed, 1 ignored (scan_cost).tuxbox-d3d12(device::placement): 99 passed, 0 failed, 7 ignored.tuxbox.py checkon RX 6900 XT (1002:73bf, Mesa RADV, GE-Proton11-14):lanes-benchmark:submit_us=116.7 roundtrip_us=155.5 copy64k_us=163.1 frame_us=268.8 frame_p99_us=522.4), all 22/22 D3D12 synthetic regression controls, and shader translator GPU checks passed.tuxbox.py checkon AMD Raphael iGPU (1002:164e, Mesa RADV, GE-Proton11-14):lanes-benchmark:submit_us=68.7 roundtrip_us=118.9 copy64k_us=95.7 frame_us=286.7 frame_p99_us=330.1), all 22/22 D3D12 synthetic regression controls, and shader translator GPU checks passed.#464mode,TUXBOX_SUBMIT_PROFILE=1):placementdropped from245.5 ms/batchto137.3 ms/batch(resolve = 5.08 ms/batch,read = 1.48 ms/batch, late world4.7–12 s/framevs12–23 s/framebaseline).