Files
metal2vulkan/docs
Anees Iqbal 23f84517cb RUNTIME 2295: kept padding in an exportable block asks the device for its pitched image
A texture over a Private buffer's rows with bytes between them, at a pitch
the device's linear image does not lay them at, was a shadow by fiat where
the buffer lay in a block of the runtime's buffers allocated exportable as
an opaque file descriptor; over a plain block the same texture is a
DRM_FORMAT_MOD_LINEAR image at Metal's pitch, in place.

texture.rs's alias_unbound now asks the device for that image made for the
block's handle type. Where the device makes one, the texture binds in place
and its first move is kept by copies (GpuKeep). Where it refuses, the
texture is a shadow naming the device's refusal (InPlaceRefusal::Image),
its reason text naming the exportable block, so a shadow log can count the
case.

On RADV it refuses: every image for external memory whose tiling is not
linear asks a dedicated allocation, which a block is not. The FAST-PATHS
known gap records the cause and the two in-place routes with their
measured costs (a dma-buf import per texture; plain blocks' making stalls),
for the owner to trade. fd_blocks_cover.rs's docs and FAST-PATHS's in-place
and Private rows no longer claim such blocks hold every image a plain block
does.

Verified: Radeon 780M (RADV PHOENIX), kept_padding, exported_textures,
ordered_renders and shadow_causes_device 15/15. Rows 768 bytes apart over an
exportable block answer Shadow(Refused(Image)) counted (0,1,0); over a
Private heap's buffer the texture is in place with its first move kept; every
byte of both buffers reads back. The heap assertion (second commit) was
printed on the 780M, asserted on lavapipe. msi: clippy -D warnings
(--cfg m2v_cpu_icd and m2v_gpu) 0, lavapipe kept_padding 7/7, rustdoc 0.
2026-11-14 06:34:32 -08:00
..