mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-03 12:57:27 +00:00
An address-based compute build bound its written V# elements in place in the host imports of the cached address space, and its BDA table sent the same addresses there, so every access went over PCIe. A written element inside one import region now becomes a region of its own, staged like any written element (copy-in, device-local shadow, copy-back), and AddressRanges cuts the import's table entry around it so pointers into the element reach the shadow as its descriptor does. resolveOverlays keeps a cluster only when it lies inside one direct import region, is stagingEligible and is crossed by no in-place range or own region. Dispatches under APS5_BDA_STAGING_MIN_THREADS (512) threads keep the imports; APS5_NO_BDA_STAGING=1 turns it off. Test: agc_bda_staging. The copy-back trade-off of staged elements is listed as technical debt. AI-assisted: yes