diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 0b44e1261..67b3ca3ec 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -271,7 +271,12 @@ after it, and 0 of 80 with the device dropped first of one image over the same bytes of one import of host pages, which share it), which over a no-copy buffer's or dma-buf host pages may be of `VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT` (`DRM_FORMAT_MOD_LINEAR`, its one memory plane at the texture's `bytes_per_row`): ask its layout - of memory plane 0. + of memory plane 0. An `A8Unorm` texture over a buffer that only reads (no render, shader write or + atomic usage; one level and one sample), on a device whose `A8_UNORM` image lacks a feature its + optimal one has in linear tiling or in `DRM_FORMAT_MOD_LINEAR` (the RTX 3090 lists that + modifier for no `A8_UNORM` image) and whose `R8_UNORM` image lacks none in either, has the image + an `R8Unorm` texture over the same bytes has, of `R8_UNORM`, which its bindings read through + `(0, 0, 0, R)` (`WorkCounts::alpha_textures_held_in_red`). - `CommandBuffer::encode_wait_for_vk_semaphore` and `encode_signal_vk_semaphore` order a command buffer against the consumer's own work. - An event's timeline semaphore, plain or shared, orders the consumer's submissions against diff --git a/docs/FAST-PATHS.md b/docs/FAST-PATHS.md index 4dc585377..2d2ee5b39 100644 --- a/docs/FAST-PATHS.md +++ b/docs/FAST-PATHS.md @@ -640,9 +640,21 @@ driver's. Each is open work. `minimumLinearTextureAlignmentForPixelFormat` answers 256. So an `RGBA16Float` 18x28 IOSurface plane at its 192-byte rows, and dma-buf planes at rows 384 or 1920 bytes apart, are shadows on the Radeon 780M (Mesa 26.2.6), where lavapipe lays its linear rows at those pitches and makes - each explicit plane. The surface or the dma-buf + each explicit plane. The RTX 3090 (620.70.06) is alike at multiples of 128 bytes: it lays an + `A8Unorm` row of 100 texels 128 bytes apart, makes an explicit plane asked at rows 192 bytes + apart with its rows reported 256 apart (which the runtime takes for none), and its + `minimumLinearTextureAlignmentForPixelFormat` answers 128; glyph-sized `A8Unorm` textures at + rows 16, 32, 64, 112, 208 or 448 bytes apart over a `Shared` buffer are shadows there. The + surface or the dma-buf sets the pitch, not the runtime: a consumer that lays out a surface of its own can lay its rows at the alignment `Device::minimum_linear_texture_alignment_for_pixel_format` answers. +- **On NVIDIA, a texture that renders over rows with bytes between them in memory only the + device's ordered commands write is a shadow** (`shadowed-texture`, `BytesBetweenRows`): a + `Private` buffer's, or a `Managed` one's own copy. Such a texture is in place where the + device's check of renders over its pooled memory passed (`Device::ordered_renders_kept`), and + on the RTX 3090 (620.70.06) that check makes no image of its own, its verdicts unchecked, so an + `RGBA8Unorm` 38x8 render target at rows 256 bytes apart over either is a shadow there, where + one that only reads is the driver's linear image in place. - **A copied host buffer costs O(its size) at every batch's completion that may have written it, and at every commit where its pages carry no log** (`copied.rs`, `copied-host-pages`), and again at the submission of each batch that waits for an event value its commit found not reached