Files
metal2vulkan/docs
Anees Iqbal 605a99f639 A texture over a Private buffer at a pitch the driver takes only explicitly is in place: the GPU keeps its bytes
A Between::Kept texture (bytes only the runtime's ordered commands write; no render target) whose
pitch the device's linear image does not lay on its own now takes route 2, the DRM explicit-pitch
image (VK_EXT_image_drm_format_modifier, DRM_FORMAT_MOD_LINEAR), over the buffer's own memory,
where the driver's reported rowPitch equals the buffer's pitch at offset 0 and the image fits.
Checked per texture. Such an image starts UNDEFINED (VUID-VkImageCreateInfo-initialLayout-12478:
PREINITIALIZED only with TILING_LINEAR; 01443 for external memory), and 7.1.1 lets the move out of
UNDEFINED discard its range, so the first move keeps the bytes on the GPU: one span copied out to
a scratch buffer, the move UNDEFINED -> GENERAL, the span copied back, in one ordered sequence.
The submission taking a keep waits on every other queue's last submitted work, so the keep follows
every earlier access to the span; later work waits through the first move's owners. Afterwards the
image and the buffer alias as a linear resource (glossary, DRM_FORMAT_MOD_LINEAR; 12.11).

Counted: WorkCounts::first_moves_kept, first_move_bytes_kept.
2026-11-12 04:26:42 -08:00
..