Files
metal2vulkan/docs
Anees Iqbal b38a5219e5 RUNTIME 2279: padding-unobserved buffers lie in blocks of their own, exportable as dma-bufs, no image bound there
On RADV a block of plain device memory is a buffer object of the process's reservation, and its
making holds every submission of the process while the kernel fills its pages (FAST-PATHS: up to
228 ms under compaction). Buffers whose padding is unobserved (the DRM_FORMAT_MODIFIER_LINEAR
textures over them import the buffer's memory as a dma-buf) now lie in a pool of their own
(Holds::FdDmaBufs) of blocks exportable as dma-bufs, which are not of that reservation. No image
binds there (a texture over such a buffer imports it: exported_dma_buf_alias); images and other
buffers keep their blocks. The FdBlocks blocks of the in-place check are OPAQUE_FD-only, as before.
A two-plane YCbCr texture over such a buffer reads its planes through the texel buffer
(ycbcr_planes_images_kept_exportable_block). The pool keeps room only once it holds a block.

Trade (FAST-PATHS Private row, hold row and a per-import known gap, with the numbers): each live
dma-buf import is listed in every submission: ~0.49 us per import or block per submission.

Verified (expbuf, um870 Hawk Point 780M, RADV, one run each, untraced):
- contract m3-max-28666 (same diff pre-rebase): 29/29 under the validation layer, 0 reports of
  09860/02726/02728; 0 textures lost placing for both kinds; textures over such buffers took the
  dedicated dma-buf import with 0 shadows, refusals or notices and read back right.
- cost, held phases, base m3-max-28790 (own target dir, md5 dd89a7d7) vs arm 28667: 160 textures
  vkQueueSubmit 0.098 -> 0.186 ms, turnaround median 0.261 -> 0.363; 320: 0.097 -> 0.275 ms, median
  0.266 -> 0.420, p99 0.405 -> 0.579; 0 turnarounds >= 8 ms either side.
- stalls while the 160 buffers were made: base 19 and 10 turnarounds >= 8 ms (slowest 9.97 ms),
  arm 0 and 0 (slowest 1.04 ms); traced A/B 28407 vs 28435: 18 vs 0, 118.2 ms vs 0 waited on the
  reservation. The userptr notifier residual (up to 24.4 ms) is independent and stays.
- lint at ee310a3087 (code identical to the tip): clippy x3 0, rustdoc 0, private rustdoc 0.
Also: the reclaim bench's scroll arms (padding-unobserved buffers, with textures, held phases).
2026-11-14 03:26:27 -08:00
..