Files
metal2vulkan/docs
Anees Iqbal acd25fd445 RUNTIME 2323: NVIDIA's RTX 3090 image uses miss a buffer's write in the same VkCommandBuffer: such a use goes in a new one
runtime_lane::heap_textures::a_buffer_write_shows_in_an_overlapping_texture,
a_heap_texture_metal_compresses_keeps_the_driver_s_compression_by_default and
an_adopted_device_stating_host_image_copy_aliases_its_heap_textures failed on the RTX 3090
(NVIDIA 620.70.06) at pins 93b and 94 (m3-max-30259, 30260, 30491, 30492): a Shared heap's
64x64 RGBA8Unorm texture, a linear image in the heap's memory, read all 4096 texels as they were
after a copy into a buffer over the same bytes. The encoder trail (each encoder its own
submission) passed at the same archive (30469), and so did the trail half of 30552 at
c6a823ff13, whose folded half failed.

A scratch probe (not landed) ran the copy and the read four ways on the 3090 (m3-max-30571):
in two blit encoders (folded into one VkCommandBuffer) and in one blit encoder, a global
TRANSFER_WRITE -> TRANSFER_READ barrier between them, 4096 of 4096 texels left alone three times
each; in two VkCommandBuffers of one submission (an MTLFence keeping the encoders apart) or two
command buffers, none. 1024x1024 and 16x16 (a Tiled shadow read through buffers) left none in any
form. Vulkan defines the answer (a buffer and a linear GENERAL image over the same memory are
host-accessible aliases, ordered by a memory dependency), so it is the driver's defect, shown by
blit folding (RUNTIME 2293) and present before it in one blit encoder. NVIDIA's 615.71.09 on the
RTX 5080 Laptop GPU answered every form right (b5080 batch m3-max-30599), so it is not listed.

Now:
- DriverFact::ImageUsesMissBufferWritesInOneCommandBuffer, one MEASURED row: NVIDIA on the
  RTX 3090, its measurement in the module docs, the reverse direction named unmeasured.
- On a device with it (DeviceShared::splits_at_aliases), an encoder notes the bytes its commands
  write into its current VkCommandBuffer (alias_split.rs, at most 32 keys apart, a key's
  writes joined), an encoder that joined a group starting from the group's FoldOrder byte
  writes. A command through command_observing whose uses name an image of a key whose noted
  bytes meet the image's place (UseRange::shares_memory) ends the VkCommandBuffer and goes on in
  a new one, its barrier first; a folded encoder so goes on in its own after the group's tail,
  which its part's submission orders after the group's first part, the measured fence form. A
  render encoder joins no group whose order wrote bytes there. Counted:
  WorkCounts::command_buffers_split_at_aliases. Elsewhere nothing is noted.
- heap_textures' alias round trip also copies and reads in one blit encoder, and the alias test
  asserts the split count is nonzero exactly where the fact holds.
- tests::alias_split (any host): the measured shape meets; a place apart, another key, a buffer
  read, a write through an image and a new VkCommandBuffer do not; a joining encoder meets the
  group's write; past 32 keys every image use meets; only the fact's devices split. And
  device::tests::driver_facts: the 3090 takes the row at every release, the 5080 Laptop and
  desktop do not.

No new Degradation kind or notice: the split is exact. RUNTIME 2323: on the 3090 an unchanged artifact's command buffer now splits where it did not.
Verification: the msi check job and one 3090 rerun, reported with the landing.
2026-11-14 17:36:04 -08:00
..