diff --git a/crates/metal2vulkan-conformance/known-gaps-rt.tsv b/crates/metal2vulkan-conformance/known-gaps-rt.tsv index f69c57405..0e0a7cb73 100644 --- a/crates/metal2vulkan-conformance/known-gaps-rt.tsv +++ b/crates/metal2vulkan-conformance/known-gaps-rt.tsv @@ -1823,3 +1823,8 @@ vertex-format-uint4 * refused case/MTLVertexFormatUInt Err(Error::Unsupported("a vertex-format-uint4 * refused case/MTLVertexFormatUInt2 Err(Error::Unsupported("a render pass with NoAttachment is not built")) Gap::RenderPass (NoAttachment): the rt README, Known gaps of render encoders, "Refused by `Gap::RenderPass`, naming its `RenderPassKind`: ... and a pass with no attachment". vertex-format-uint4 * refused case/MTLVertexFormatUInt3 Err(Error::Unsupported("a render pass with NoAttachment is not built")) Gap::RenderPass (NoAttachment): the rt README, Known gaps of render encoders, "Refused by `Gap::RenderPass`, naming its `RenderPassKind`: ... and a pass with no attachment". vertex-format-uint4 * refused case/MTLVertexFormatUInt4 Err(Error::Unsupported("a render pass with NoAttachment is not built")) Gap::RenderPass (NoAttachment): the rt README, Known gaps of render encoders, "Refused by `Gap::RenderPass`, naming its `RenderPassKind`: ... and a pass with no attachment". +# +# Metal's private read-only no-copy option (MTLResourceOptions bit 24), which the no-copy imports +# have no form of, refused alike on every venue run. +host-page-writes-kernel-store-read-only * refused case/host-buffer Err(Unavailable({call: "newBufferWithBytesNoCopy:length:options:deallocator: with MTLResourceOptions bit 24"})) No read-only no-copy import (MTLResourceOptions bit 24): the rt README, Imported blocks, "The no-copy imports have no read-only form: ... over pages a consumer imports, a GPU write reaches them, where Metal drops it." +host-page-writes-visibility-read-only * refused case/host-buffer Err(Unavailable({call: "newBufferWithBytesNoCopy:length:options:deallocator: with MTLResourceOptions bit 24"})) No read-only no-copy import (MTLResourceOptions bit 24): the rt README, Imported blocks, "The no-copy imports have no read-only form: ... over pages a consumer imports, a GPU write reaches them, where Metal drops it." diff --git a/crates/metal2vulkan-rt/README.md b/crates/metal2vulkan-rt/README.md index 97ac66c46..f5e0223a8 100644 --- a/crates/metal2vulkan-rt/README.md +++ b/crates/metal2vulkan-rt/README.md @@ -364,6 +364,11 @@ first, and what to do where both refuse, is the consumer's. Each call returns the block and the index of the memory type it imported into, and refuses before any allocation is attempted. +The no-copy imports have no read-only form: `import_host_memory` takes pages mapped readable and +writable, and Vulkan defines no read-only import. Metal's private read-only option (bit 24 of +`MTLResourceOptions`, not in the public header) so has no counterpart here: over pages a consumer +imports, a GPU write reaches them, where Metal drops it. + The two rules differ because a failed dma-buf import is not harmless: on NVIDIA's Linux driver (620.70.06, an RTX 3090) one failed dma-buf import into a later type the query offered broke every later allocation of that type, the Shared type among them, so the dma-buf rule attempts nothing it