On gate/stack27b the HostRam copies (copy_from_host_ram,
copy_to_host_ram) and the run imports compose: a copy reads and writes
a chunk's pages through the chunk's import, and an object over a chunk
not imported yet is bound in an import of its own run, two imports of
the same pages ordered only by their host bytes (host_aliases.rs).
New device test
a_run_bound_buffer_and_a_copy_of_its_pages_order_by_their_host_bytes:
four pages over a chunk not imported are bound in their run's import,
and then, both ways:
- a fill through the buffer before a gather of its second page;
- a scatter into that page before a copy out of the buffer.
Each way runs in one blit encoder (a barrier recorded between them),
in two encoders of one command buffer, and across two queues in commit
order (the writer behind 2 GiB of private fills). The six copies import
nothing, and the run's import stays live. On a device with
RuntimeDriverDefect::AliasedImportBlitsUnordered (MoltenVK) the test
asserts the fallback: no run import, the buffer imports the chunk and
lies in the copies' import.
Docs: copy.rs's module docs and HOWTO said a copy takes a chunk "as an
object does", importing it or waiting for its import; objects no longer
wait, so both now say that a copy makes no run import of its own and
waits. host_ram.rs and HOWTO add the copies to what a run-bound
object's uses order against, and the test module's docs add the
composition.
Verification is pending in this commit: M3 and RTX 5080 device runs.
(cherry picked from commit be6d43fbf2c0a5921a2468038740ef3604a2da9f)