Files
metal2vulkan/docs
Anees Iqbal feec58e2f5 rt: a texture over a buffer in an imported block is the counted copy, on every device
replay's census C: the window server (b3) makes 425 textures over its no-copy buffers, and every
no-copy buffer is now an import, so refusing them (Gap::TextureOverBuffer in d335594515) would
refuse the window server's textures. They take rt's existing copy form instead: an image of its
own, which the device copies the buffer's bytes into before the submissions that use it and back
after a command writes it, counted in Metrics::over_copies. The buffer stays the import itself.

The runtime makes no image in imported memory. Such an image would be made for the import's
handle (VUID-vkBindImageMemory-memory-02728), so in the undefined layout
(VUID-VkImageCreateInfo-pNext-01443). An acquire from VK_QUEUE_FAMILY_FOREIGN_EXT is not used: it
needs a matching release (7.7.6), which host writes do not make (host memory imported by its
address is shared with the host as host access), and it leaves an aliasing resource's contents
undefined (7.7.6). Whether an in-place form exists stays open with the planner until the copy's
cost is measured.

- check_over answers the copy for a buffer in an imported block; Gap::TextureOverBuffer's doc
  goes back to its old cases; new_texture's doc and the README say how such a texture is made,
  and the README records it as a known gap.
- Tests: the import device tests run on every platform (host memory from std::alloc; the
  shared-file mapping test unix-only), so the Windows UHD leg runs them. A texture over imported
  host memory is copied on every device, reads the host's own bytes, its writes reach the host,
  and both copies count in over_copies.
- REFUSALS regenerated for the import limits (the rebase took development's at d335594515).

Verified: nothing yet; the check job and the device legs follow.
2026-11-18 23:38:06 -08:00
..