A texture over rows whose bytes between them only the device's ordered commands write
(Between::Kept) was a shadow when its buffer lay in a block of the runtime's buffers allocated
exportable as an opaque file descriptor and never exported (Holds::FdBuffers,
BoundMemory::Blocks). alias_unbound refused kept rows in any memory allocated exportable, because
an image there names the handle type and starts UNDEFINED. Now such a texture takes the device's
linear image made for the block's handle type, and its first move keeps the bytes it is bound to
by copies around the transition (GpuKeep), as the DRM_FORMAT_MOD_LINEAR image over such rows in a
plain block already did.
- The keep now follows the image's initial layout (UNDEFINED), not the pitched route alone.
- Kept rows in memory the runtime exported stay refused.
- blocks_linear_image takes kept rows whatever the FdBlocks verdicts, as pooled_pitched_image does.
Why: pin 88's regression. reims-vgpu's test made a texture over a plain Private buffer after one
over a padding-unobserved buffer. At pin 86 the plain buffer took the parked buffer of the
unobserved one, which lay in a plain block, so the texture kept its padding in place. Since
RUNTIME 2279 the unobserved buffer parks in a Holds::FdDmaBufs block, which a plain buffer never
takes. So the plain buffer got a fresh exportable block, and the texture became a shadow. A fresh
plain Private buffer on the 780M was already a shadow there before 2279. This removes the
dependence on that recycle.
Docs: alias_unbound, blocks_linear_image, alias_image, linear_plan's Between::Kept and holding,
first_move's GpuKeep, fd_blocks_cover's module docs, API.md's kept-padding paragraph, the
Tests (kept_padding.rs, ecd3e3dfd5): the consumer's order (a texture over a plain Private buffer
made after one over an unobserved one is kept) and the first use of each kind over Blocks.
Verified (expbuf; debug archives built on msi from per-sha source and target dirs):
- um870 780M RADV 1002:1900, A at ecd3e3dfd5 (tests only) m3-max-28998 (md5 9985c2be): 2 run,
2 FAILED (plain buffer in Blocks (0,1,0) vs expected (0,0,1); blit over Blocks a shadow).
- Fix at 3446d50cd7 m3-max-28999 (md5 574d7b59): 14/14 pass over kept_padding, ordered_renders,
exported_textures, shadow_causes_device; blit, clear and load over Blocks in place (kept 1,
shadowed 0), the bytes between rows unchanged; ordered_renders runs its in-place branch (1 kept
padding alias, 0 shadows); validation layer present, nothing reported.
- lavapipe m3-max-28971 at the fix: 7/7.
No Degradation kind added.