diff --git a/crates/metal2vulkan/src/lower/access/mod.rs b/crates/metal2vulkan/src/lower/access/mod.rs index 8bfd2df27..3fe490848 100644 --- a/crates/metal2vulkan/src/lower/access/mod.rs +++ b/crates/metal2vulkan/src/lower/access/mod.rs @@ -1405,13 +1405,14 @@ fn place_slots(cx: &mut SelectCx<'_>, m: &mut Meter) -> Result = Vec::new(); for &s in &sources { if shared_slot(s).is_some() { continue; } - if replay { + if replay || identity(p) { own.push((s, psb_lowering(Window::Whole)?)); continue; } diff --git a/crates/metal2vulkan/src/pipeline/link/vertex.rs b/crates/metal2vulkan/src/pipeline/link/vertex.rs index 697083521..c941464a7 100644 --- a/crates/metal2vulkan/src/pipeline/link/vertex.rs +++ b/crates/metal2vulkan/src/pipeline/link/vertex.rs @@ -64,10 +64,11 @@ //! would fetch at the stream position, where the function reads the vertex its index names. The //! layouts they pull are not a pulled-vertex-buffer variant's (`variant_pulled` keeps item 7's). //! -//! Under the identity domains (`Device::from_queries`' profile) items 2 to 6 pull nothing: the -//! pulled fetch reads through a descriptor, which those domains hold none of. Item 2's cases are -//! `metal::vertex::attribute_fetch`'s refusals, and an attribute items 3 to 6 would pull is refused -//! as `Feature::VertexInputLayout`, with the limit it passes where it passes one. +//! Under the identity domains (`Device::from_queries`' profile) items 2 to 6 pull nothing: item 2's +//! cases are `metal::vertex::attribute_fetch`'s refusals, and an attribute items 3 to 6 would pull +//! is refused as `Feature::VertexInputLayout`, with the limit it passes where it passes one. What +//! items 7 and 8 pull is read through the source buffer's device address, as every slot is read +//! there, at the layout's pushed stride (`PushField::VertexBufferStride`). //! //! A fixed-function entry keeps nothing of the format (`VertexFetch::FixedFunction`): no //! instruction of the module names it, so every format the device fetches in fixed function