A texture over a buffer in host memory's import, on an integrated or CPU device, lies in place
where the device's external image query for host memory's handle answers a linear image of the
texture's format, usage and flags; otherwise it is the counted copy at each use. On the Apple M3
Max (KosmicKrisp, Mesa 26.3.1), the textures with render-target usage in a consumer's walk
were the copy. The known gap of memory blocks said why in one clause (the Mac driver makes no
linear colour attachment with or without a handle); it now names the query's answer and the
shapes it was asked for, and says the copy is chosen by that query alone. The ruling: the copy is
the device's form under rule 2 (a missing feature of the driver, not a bug), with no code change.
The answer, asked of KosmicKrisp with the runtime's own parameters for each of the four kinds of
texture with render-target usage the walk made over host memory (R8Unorm 1920 by 1080 and RG8Unorm
960 by 540, ShaderRead and RenderTarget; RGBA8Unorm at 18, 24, 36 and 48 pixels, ShaderRead,
ShaderWrite and RenderTarget; RGBA16Float at 16 to 1024 pixels, ShaderRead and RenderTarget):
vkGetPhysicalDeviceImageFormatProperties2 for linear tiling, usage transfer source and destination,
sampled and colour attachment (and storage for the written one), mutable format with the sRGB
sibling's format list where the format has one, and
VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT answers VK_ERROR_FORMAT_NOT_SUPPORTED for
each, and so it does without the handle and without the format list. Without colour-attachment
usage (transfer source and destination and sampled), it answers each format importable,
compatible (0x180), not dedicated-only, up to 16384 by 16384 and one layer; dropping sampled
instead leaves it refused.
The README's prose carries no lab job id (scripts/api-docs refuses one), so the job is cited here
alone. runtime-sources.sha256 does not move: the README is not among its inputs.
Verified:
- m3-max-85644, the Apple M3 Max (KosmicKrisp, Mesa 26.3.1, Vulkan 1.4.363, an integrated device
with VK_EXT_external_memory_host): a query program (no test) asked the answers above.
- On the CPU with no device, at this commit: scripts/api-docs's prose check (its job-id grep over
the runtime README, API.md, REPLAY-STREAM.md and VALIDATION.md) finds nothing; the runtime-sources
hash computed from the validation build's input list equals the pinned one; the README's readers
in the tests (its Floor section, its Enabled, not stated table, and its section of what the
consumer implements) read sections this change does not touch.