What: a copy of word runs between a guest RAM and a buffer recorded one dispatch of the pages
copy per import its runs touch (and per window of the buffer), each binding that one import.
Where a RAM's chunks are 64 MiB pointer imports (NVIDIA, lavapipe: no listed plan), a surface
whose guest pages lie across an 8 GiB RAM touched ~35 chunks, so ~35 dispatches a copy (the
consumer's walk: 55,778 dispatches for 1,574 copies on an RTX 3090, ~35 on an RTX 2080, 1.2 on
RADV, whose copies go through run lists of their own pages).
How: `bind::pages_copy_module`'s scattered binding is now a descriptor array of
`PagesCopyModule::imports(device)` storage buffers, and each table entry (now four words) names
its run's element. The element is read once per workgroup from the workgroup's entry, so it is
dynamically uniform within the invocation group (Vulkan: for shaders with workgroups the
workgroup is the invocation group), which `shaderStorageBufferArrayDynamicIndexing` allows; the
module declares StorageBufferArrayDynamicIndexing and requires that feature where the array holds
more than one, and needs no NonUniform. `imports` is 1 where the device does not enable the
feature (the array indexed by the constant 0), else the room the device's
maxPerStageDescriptorStorageBuffers, maxDescriptorSetStorageBuffers, maxPerStageResources and,
with push descriptors, maxPushDescriptors leave beside the two other bindings, at most 30 (so a
push set holds at most 32 descriptors, maxPushDescriptors' minimum). The runtime's owned kernels
take a first storage-buffer binding of several descriptors (layout count, pool needs, pushed and
allocated writes by binding and element); `plan` groups the runs by `slot / array` and window;
each dispatch binds its group's imports, the elements past them its first import again, so every
descriptor is valid without partiallyBound.
Expected: n chunks touched -> ceil(n / 30) dispatches on every device here (maxPushDescriptors
is 32 on NVIDIA, RADV and lavapipe), ~35 -> 2.
Tests: the device tests' counts over two chunks are now `dispatches_over(device, 2)` (1 where the
array holds more than one; they said 2 before); `plan` unit tests for arrays of one, two and an
import past an array; the pages copy module's interpreter test of one dispatch over three
elements both ways, and its validity on every committed profile at the profile's array length
and at one, the dynamic-indexing feature required exactly where the array holds more than one.
Verified (lane hostcopy, msi, at a9a2aba8de; the two later commits only rename one device
test): lavapipe host_ram + owned_pushes suites (--cfg m2v_cpu_icd) 92/92 (m3-max-30625),
the 3 count tests expecting 1 dispatch over 2 imports among them; hand negative control
steelbrain/hostcopy-control (m3-max-30626) fails exactly those 3 on the count (2 vs 1);
clippy -D warnings plain (m3-max-30622) 0; translator bind::pages_copy tests 6/6;
api-signatures --check 0. The 3090 release bench follows on development.
RUNTIME 2322: what a host-RAM copy records changes (one dispatch for up to K imports).
Public API: bind::pages_copy entry() takes the import index and returns [u8; 16],
ENTRY_WORDS 3 -> 4, new PagesCopyModule::imports(&Device). No Degradation kind or WorkCounts field.