diff --git a/crates/metal2vulkan-runtime/src/command_buffer/hang.rs b/crates/metal2vulkan-runtime/src/command_buffer/hang.rs index aacbabd78..471ce068c 100644 --- a/crates/metal2vulkan-runtime/src/command_buffer/hang.rs +++ b/crates/metal2vulkan-runtime/src/command_buffer/hang.rs @@ -1,5 +1,7 @@ //! A command buffer whose render encoder drew primitive type 9 directly, of 3 vertices or more, -//! at which Metal's GPU hangs (`DrawPrimitiveType::Nine`, `CommandBufferError::GpuHang`). +//! at which Metal's GPU hangs (`DrawPrimitiveType::Nine`, `CommandBufferError::GpuHang`), or +//! whose render pass of no draw call over a mutable rasterization-rate map it hangs at +//! (`rate_mapped_pass.rs`), held alike. //! Measured on the M3 Max (macOS 27.0.1, 33 hangs, queues warmed and not): it read `Scheduled` //! 0.68 to 13.2 ms after its commit (about 1 ms, or 4.6 ms and more: its submission's own time), //! and Metal failed it 28.3 to 46.2 ms after its commit, 27.5 to 28.9 ms after it read diff --git a/crates/metal2vulkan-runtime/src/command_buffer/mod.rs b/crates/metal2vulkan-runtime/src/command_buffer/mod.rs index 913e701a3..1c8ba455b 100644 --- a/crates/metal2vulkan-runtime/src/command_buffer/mod.rs +++ b/crates/metal2vulkan-runtime/src/command_buffer/mod.rs @@ -501,6 +501,9 @@ pub(super) struct State { /// (`render/queued_commits.rs`), which has not run: to the program, the command buffer is /// committed. queued_commit: bool, + /// A render pass of it has a draw call over a `Mutable` rasterization-rate map: its commit + /// lets a later pass of no draw call over such a map run (`rate_mapped_pass.rs`). + pub(super) called_over_mutable_map: bool, /// `commit` is recording the encoders' segments (`encoder.rs`), outside this lock: nothing /// else may encode or commit meanwhile. committing: bool, @@ -1718,6 +1721,7 @@ impl CommandBuffer { #[cfg(all(test, any(m2v_gpu, m2v_cpu_icd)))] failures_injected: 0, queued_commit: false, + called_over_mutable_map: false, committing: false, pool: None, replays: None, @@ -2444,6 +2448,11 @@ impl CommandBuffer { if let Some(problem) = failure.as_ref().and_then(|failure| failure.problem(ended)) { return Err(invalid(call, problem)); } + // A pass with a draw call over a mutable map lets later passes of none run on Metal's + // GPU (`rate_mapped_pass.rs`). + if state.called_over_mutable_map { + (device.shared().mutable_rate_map_called).store(true, Ordering::Release); + } // Metal's GPU fails a command buffer an encoder of which was made under protection // options as a failure given to `commit_failed` fails it, with no signal firing // (`protection.rs`); one given such a failure besides is not measured. diff --git a/crates/metal2vulkan-runtime/src/device/mod.rs b/crates/metal2vulkan-runtime/src/device/mod.rs index 91132d715..804535f42 100644 --- a/crates/metal2vulkan-runtime/src/device/mod.rs +++ b/crates/metal2vulkan-runtime/src/device/mod.rs @@ -347,6 +347,10 @@ pub(super) struct DeviceShared { /// Whether a rasterization-rate map of one or more layers was released (`rate_map.rs`): a /// map of no layers made after it is one Metal may draw from the released map's memory. pub(super) layered_rate_map_released: AtomicBool, + /// Whether a command buffer holding a render pass with a draw call over a `Mutable` + /// rasterization-rate map was committed (`rate_mapped_pass.rs`): before one, Metal's GPU hangs + /// at a pass of no draw call over such a map. + pub(super) mutable_rate_map_called: AtomicBool, /// Whether the runtime made a sparse image on the device: the driver's first sparse resource /// may wait for every queue's work (`DriverFact::FirstSparseResourceWaitsForQueues`). pub(super) sparse_image_made: AtomicBool, @@ -1692,6 +1696,7 @@ impl Device { limits.viewport_bounds_range, ), layered_rate_map_released: AtomicBool::new(false), + mutable_rate_map_called: AtomicBool::new(false), sparse_image_made: AtomicBool::new(false), owned_kernels: Mutex::new(OwnedKernels::default()), mipmap_scratch: Mutex::default(), diff --git a/crates/metal2vulkan-runtime/src/encoder.rs b/crates/metal2vulkan-runtime/src/encoder.rs index a293e198a..a8e788ffe 100644 --- a/crates/metal2vulkan-runtime/src/encoder.rs +++ b/crates/metal2vulkan-runtime/src/encoder.rs @@ -1892,7 +1892,8 @@ impl EncoderCore { self.fails_command_buffer = Some(error); } - /// Metal's GPU hangs at this encoder (a direct draw of primitive type 9), as the command + /// Metal's GPU hangs at this encoder (a direct draw of primitive type 9, or a pass of no draw + /// call over a mutable rasterization-rate map, `rate_mapped_pass.rs`), as the command /// buffer commits: it fails from the encoder on with `CommandBufferError::GpuHang`, unless /// the encoder fails it otherwise first, and holds what follows (`State::hang_from`). pub(super) fn hang(&mut self) { diff --git a/crates/metal2vulkan-runtime/src/error.rs b/crates/metal2vulkan-runtime/src/error.rs index 2e6fbafe7..9f626fbfd 100644 --- a/crates/metal2vulkan-runtime/src/error.rs +++ b/crates/metal2vulkan-runtime/src/error.rs @@ -1707,6 +1707,13 @@ pub enum CommandBufferError { /// before the draw ran, and runs nothing of its queue's others: the outcome of Metal's /// slower submission (`command_buffer/hang.rs`). It counts against its queue as a /// [`PageFault`](Self::PageFault) does. + /// + /// Metal's GPU also hangs at a render pass of no draw call over a `Mutable` + /// rasterization-rate map where no command buffer with a draw call (one of nothing too) over + /// such a map was committed on the device before its own (the M3 Max under macOS 27.0.1, our + /// probe `rs`: maps of layers and of none, reset or not; a pass with only a pipeline state + /// set; one after a drawn pass in the same command buffer), failing it with the same error. + /// The runtime fails it from that pass on as at the draw. GpuHang, /// Metal failed the command buffer as a victim of its GPU's recovery, at an indirect draw of /// primitive type 9, indexed or not, whatever its arguments diff --git a/crates/metal2vulkan-runtime/src/rate_mapped_pass.rs b/crates/metal2vulkan-runtime/src/rate_mapped_pass.rs index e0a6b3d79..7678c4ff9 100644 --- a/crates/metal2vulkan-runtime/src/rate_mapped_pass.rs +++ b/crates/metal2vulkan-runtime/src/rate_mapped_pass.rs @@ -86,6 +86,20 @@ //! step), or whose encoding again is refused (the pass //! checked against the map as reset), draws by the map as it took it, announced //! (`rate-map-reset-unencoded`). +//! - **A reset to another screen** (our probe `rs`, the M3 Max under macOS 27.0.1: 101 passes +//! over a mutable map of the identity of a square screen reset to the identity of another, each +//! case in a process of its own, repeats alike). A pass whose map was reset after its encoder +//! took it, whether after the encoder opened, after it ended or after the commit of a waiting +//! command buffer, keeps the screen it took: its default viewport, scissor and attachment-less +//! size are that screen's, and it shades the physical pixels to [`reset_bound`] on each axis: +//! to the 32-pixel tiles of the new screen where the new screen spans one tile fewer than the +//! screen taken (64 pixels reset to 32 or to 24 shades 32, 128 reset to 80 shades 96), else to +//! the screen taken (16 reset to 8 shades 16, 128 reset to 8, to 64 or to 100 shades 128, 8 +//! reset to 16 shades 8), within the attachments. A reset before the encoder opened is the new +//! map's alone. The runtime's encoding again keeps the screen the pass took +//! (`RenderLog::screen`) and draws so over a map reset to the identity; over a map reset to +//! another, which no probe measured, it draws by the map as reset within the screen taken, +//! inside the near-equivalent the map's compile announces (`rasterization-rate-map`). //! - **A mutable map's pass past the screen** (the M3 Max under macOS 27.0.1, a quad far past the //! clip volume): Metal rasterizes a pass over a `Mutable` map past the screen's edge along the //! last tiles' lines, to a bound not found (a 64-pixel screen at half quality shaded 49 physical @@ -93,6 +107,17 @@ //! mutability stops at the physical size. An identity map's pass stopped at its physical size //! in every case measured, mutable or not. The runtime's pass stops at the physical size, inside //! the near-equivalent the map's compile announces (`rasterization-rate-map`). +//! - **A pass of no draw call over a mutable map** (the M3 Max under macOS 27.0.1, our probe +//! `rs`, each case in a process of its own): Metal's GPU hangs at it, failing its command +//! buffer with `GpuHang`, over a `Mutable` map of layers or of none, reset or never, with only a +//! pipeline state set; and runs it, its clear stored, over a map of any other mutability, and +//! over a mutable one once a command buffer with a draw call over a mutable map (that map or +//! another; a draw of no vertices too) was committed and ran before. A drawn pass earlier in +//! its own command buffer does not keep it from hanging, nor does one over an immutable map or +//! none. The runtime fails the command buffer from such a pass on as Metal's GPU hang at a draw +//! of primitive type 9 (`command_buffer/hang.rs`), where no command buffer of the device with a +//! draw call over a mutable map was committed before (`DeviceShared::mutable_rate_map_called`, +//! raised at that commit). //! - **What the plan refuses** is `NotImplemented(RuntimeGap::RateMapRegions)`, naming the //! compile layer's reason ([`RegionRefusal`]): a viewport of no extent or a flipped one, a //! scissor as above, a plan past its bound or past the device's viewport limits, a pipeline whose @@ -108,6 +133,7 @@ use super::render_values::{ScissorRect, Viewport}; use super::Device; use ash::vk; use metal2vulkan::bind::{RegionError, RegionLimits}; +use metal2vulkan::metal::Mutability; use metal2vulkan::pipeline::GraphicsState; use std::sync::Arc; @@ -146,6 +172,9 @@ pub(super) struct RateMappedPass { map: RasterizationRateMap, /// The map as the encoder took it, which its draws are planned by. state: Arc, + /// The map's screen size as the pass first took it, which an encoding again for a reset + /// keeps (the module docs). + screen: [u32; 2], area: [u32; 2], /// Every layer of the map is the first's: each slice is rasterized alike. alike: bool, @@ -183,17 +212,20 @@ pub(super) fn check_descriptor( impl RateMappedPass { /// The map of `descriptor`, whose pass renders as `layout`, checked against its render target - /// size where it has no attachments (the module docs); `None` for a pass without one. + /// size where it has no attachments (the module docs), its screen `screen` where the pass + /// took the map before (an encoding again for a reset keeps it), else the map's; `None` for a + /// pass without one. pub(super) fn of( call: &'static str, descriptor: &RenderPassDescriptor, layout: &PassLayout, + screen: Option<[u32; 2]>, ) -> Result, Error> { let Some(map) = &descriptor.rasterization_rate_map else { return Ok(None); }; let state = map.state(); - let screen = state.screen_size(); + let screen = screen.unwrap_or_else(|| state.screen_size()); let attached = layout.colors.iter().flatten().next().is_some() || layout.depth_stencil.is_some(); let area = if !attached { @@ -217,6 +249,7 @@ impl RateMappedPass { map: map.clone(), alike: state.layers_alike(), state, + screen, area, })) } @@ -232,6 +265,12 @@ impl RateMappedPass { self.alike } + /// Whether the map is `Mutable`, over which Metal's GPU hangs at a pass of no draw call until + /// a command buffer with a draw call over such a map was committed (the module docs). + pub(super) fn mutable(&self) -> bool { + self.map.mutability() == Mutability::Mutable + } + /// The pass's screen area: the extent its encoder's viewports and scissor rectangles are read /// in and default to. pub(super) fn area(&self) -> [u32; 2] { @@ -330,52 +369,96 @@ impl RateMappedPass { .map(|()| plan) }) .map_err(refusal)?; - let area = extent.map(f64::from); + // Over the identity reset to another screen, Metal's pass keeps the screen it took and + // shades physical pixels to `reset_bound`, along the identity (the module docs); the + // plan's refusals hold alike. + let now = compiled.screen_size(); + if self.screen != now && compiled.is_identity() { + let bound = [0, 1].map(|a| reset_bound(self.screen[a], now[a])); + let [x0, y0, x1, y1] = match clip { + Some([x, y, w, h]) => [x, y, x.saturating_add(w), y.saturating_add(h)], + None => [0, 0, u32::MAX, u32::MAX], + }; + let (sx, ex) = (x0.min(bound[0]), x1.min(bound[0])); + let (sy, ey) = (y0.min(bound[1]), y1.min(bound[1])); + let region = ( + guest.map(|v| v as f32), + [sx, sy], + [ex.saturating_sub(sx), ey.saturating_sub(sy)], + ); + return Ok(vec![on_device(region, viewport, extent)]); + } Ok(plan .regions() .iter() .map(|region| { - let [x, y, width, height] = region.viewport(); - let [sx, sy] = region.scissor_offset(); - let [sw, sh] = region.scissor_extent(); - // The pixels whose centres lie in `[origin, origin + length)`: from - // `ceil(origin - 0.5)` up to `ceil(origin + length - 0.5)`. - let cut = |from: u32, size: u32, origin: f32, length: f32, limit: f64| { - let centre = |edge: f64| (edge - 0.5).ceil().clamp(0.0, limit) as u32; - let lo = centre(f64::from(origin)); - let hi = centre(f64::from(origin) + f64::from(length)); - let first = from.max(lo); - let end = (from + size).min(hi).max(first); - (first, end - first) - }; - let (ox, ex) = cut(sx, sw, x, width, area[0]); - let (oy, ey) = cut(sy, sh, y, height, area[1]); - ( - vk::Viewport { - x, - y: y + height, - width, - height: -height, - min_depth: viewport.znear as f32, - max_depth: viewport.zfar as f32, - }, - vk::Rect2D { - // Inside the render area: each fits an `i32`. - offset: vk::Offset2D { - x: ox as i32, - y: oy as i32, - }, - extent: vk::Extent2D { - width: ex, - height: ey, - }, - }, - ) + let r = ( + region.viewport(), + region.scissor_offset(), + region.scissor_extent(), + ); + on_device(r, viewport, extent) }) .collect()) } } +/// The device's viewport and scissor of a region of a rate-mapped pass, `([x, y, width, height], +/// scissor offset, scissor extent)` in physical pixels, its viewport y down: the scissor cut to the +/// pixels whose centres lie inside the viewport and to the render area `extent` (the module docs), +/// the depth range the guest's `viewport`'s. +fn on_device( + ([x, y, width, height], [sx, sy], [sw, sh]): ([f32; 4], [u32; 2], [u32; 2]), + viewport: &Viewport, + extent: [u32; 2], +) -> (vk::Viewport, vk::Rect2D) { + let area = extent.map(f64::from); + // The pixels whose centres lie in `[origin, origin + length)`: from `ceil(origin - 0.5)` up + // to `ceil(origin + length - 0.5)`. + let cut = |from: u32, size: u32, origin: f32, length: f32, limit: f64| { + let centre = |edge: f64| (edge - 0.5).ceil().clamp(0.0, limit) as u32; + let lo = centre(f64::from(origin)); + let hi = centre(f64::from(origin) + f64::from(length)); + let first = from.max(lo); + let end = from.saturating_add(size).min(hi).max(first); + (first, end - first) + }; + let (ox, ex) = cut(sx, sw, x, width, area[0]); + let (oy, ey) = cut(sy, sh, y, height, area[1]); + ( + vk::Viewport { + x, + y: y + height, + width, + height: -height, + min_depth: viewport.znear as f32, + max_depth: viewport.zfar as f32, + }, + vk::Rect2D { + // Inside the render area: each fits an `i32`. + offset: vk::Offset2D { + x: ox as i32, + y: oy as i32, + }, + extent: vk::Extent2D { + width: ex, + height: ey, + }, + }, + ) +} + +/// How far along one axis a pass over the identity shades, its map reset after the pass took it +/// from a screen of `taken` pixels to one of `now` (the module docs, our probe `rs`): to the +/// 32-pixel tiles of `now` where it spans one tile fewer than `taken`, else to `taken`. +pub(super) fn reset_bound(taken: u32, now: u32) -> u32 { + let tiles = |side: u32| side.div_ceil(32); + match tiles(taken).checked_sub(tiles(now)) { + Some(1) => (tiles(now) * 32).min(taken), + _ => taken, + } +} + /// The runtime's refusal of the compile layer's `error` (the module docs). fn refusal(error: RegionError) -> Error { let kind = match error { diff --git a/crates/metal2vulkan-runtime/src/render.rs b/crates/metal2vulkan-runtime/src/render.rs index 6e9835288..6656bc544 100644 --- a/crates/metal2vulkan-runtime/src/render.rs +++ b/crates/metal2vulkan-runtime/src/render.rs @@ -1656,7 +1656,7 @@ impl CommandBuffer { self.settle_end(); // Metal's process ends here under some protection options (`command_buffer/protection.rs`). self.refuse_protected_encoder("render_command_encoder")?; - self.open_render(descriptor, None) + self.open_render(descriptor, None, None) .map(RenderCommandEncoder::new) } @@ -1664,15 +1664,21 @@ impl CommandBuffer { /// residency an ended encoder of the committed command buffer started with, that encoder /// opened again (`render/replay.rs`): over a new `VkCommandBuffer` with no refusal of a /// committed command buffer, starting with that residency, logging nothing but where its pass - /// takes several color groups (`render/color_groups.rs`). Its layout is the first color - /// group's where the device draws the pass's colors in groups. + /// takes several color groups (`render/color_groups.rs`), and keeping `screen`, the screen + /// size of the pass's rasterization-rate map as the ended encoder took it, through a reset of + /// the map (`rate_mapped_pass.rs`). Its layout is the first color group's where the device + /// draws the pass's colors in groups. fn open_render( &self, given: &RenderPassDescriptor, again: Option, + screen: Option<[u32; 2]>, ) -> Result, Error> { const CALL: &str = "render_command_encoder"; let device = self.device(); + let screen = screen.or_else(|| { + (given.rasterization_rate_map.as_ref()).map(|map| map.state().screen_size()) + }); rate_mapped_pass::check_descriptor(CALL, device, given)?; let taken = render_pass::surface_stencil_loads(given); let descriptor = &*taken; @@ -1688,10 +1694,10 @@ impl CommandBuffer { // whatever the device's rebinds, as does a pass over a rasterization-rate map, which a // reset of the map before its submission encodes again (`rate_mapped_pass.rs`). let log = match (&again, groups > 1) { - (_, true) => Some(device.shared().scheduler.spare_logs().render(given)), + (_, true) => Some(device.shared().scheduler.spare_logs().render(given, screen)), (None, false) => (device.shared().rebinds.any() || given.rasterization_rate_map.is_some()) - .then(|| device.shared().scheduler.spare_logs().render(given)), + .then(|| device.shared().scheduler.spare_logs().render(given, screen)), (Some(_), false) => None, }; let projected; @@ -1702,7 +1708,7 @@ impl CommandBuffer { } None => (full, None, descriptor), }; - let rate_map = RateMappedPass::of(CALL, descriptor, &layout)?; + let rate_map = RateMappedPass::of(CALL, descriptor, &layout, screen)?; let shape = PassShape::of(&layout)?; let compatible = render_target::shared_compatible_pass(device, &shape)?; if again.is_none() { @@ -3843,13 +3849,15 @@ impl RenderLowering { } /// An encoder of `command_buffer`'s, ended and committed, opened again over `descriptor` - /// with the `residency` it started with (`render/replay.rs`). + /// with the `residency` it started with, its rasterization-rate map's `screen` as it took it + /// (`render/replay.rs`). pub(super) fn replaying( command_buffer: &CommandBuffer, descriptor: &RenderPassDescriptor, residency: Residency, + screen: Option<[u32; 2]>, ) -> Result, Error> { - command_buffer.open_render(descriptor, Some(residency)) + command_buffer.open_render(descriptor, Some(residency), screen) } /// Refuse `call` as its lowering refused it, after it returned, for `error` @@ -3869,6 +3877,19 @@ impl RenderLowering { /// (`render/color_groups.rs`). fn end_pass(mut self: Box) -> Result { const CALL: &str = "end_encoding"; + // Over a mutable rasterization-rate map: Metal's GPU hangs at a pass of no draw call until + // a command buffer with a draw call over such a map was committed (`rate_mapped_pass.rs`). + if self.rate_map.as_ref().is_some_and(RateMappedPass::mutable) { + match self.called { + true => self.core.command_buffer().state().called_over_mutable_map = true, + false => { + let called = &self.core.device().shared().mutable_rate_map_called; + if !called.load(std::sync::atomic::Ordering::Acquire) { + self.core.hang(); + } + } + } + } // What its tables bind is held until the command buffer completes, as Metal holds what an // encoder was handed (`ArgumentTable::let_go_all`). for table in [ diff --git a/crates/metal2vulkan-runtime/src/render/color_groups.rs b/crates/metal2vulkan-runtime/src/render/color_groups.rs index 2c35c079a..ba2d23590 100644 --- a/crates/metal2vulkan-runtime/src/render/color_groups.rs +++ b/crates/metal2vulkan-runtime/src/render/color_groups.rs @@ -478,7 +478,7 @@ impl RenderLowering { layout.depth_stencil.clone_from(&later.twin); let descriptor = project_descriptor(log.descriptor(), &grouping); let device = core.device().clone(); - let rate_map = RateMappedPass::of(CALL, &descriptor, &layout)?; + let rate_map = RateMappedPass::of(CALL, &descriptor, &layout, log.screen())?; let shape = PassShape::of(&layout)?; let compatible = render_target::shared_compatible_pass(&device, &shape)?; let draws = core.command_buffer().begin_draws(&compatible)?; diff --git a/crates/metal2vulkan-runtime/src/render/replay.rs b/crates/metal2vulkan-runtime/src/render/replay.rs index e7f4adf49..667d0daf1 100644 --- a/crates/metal2vulkan-runtime/src/render/replay.rs +++ b/crates/metal2vulkan-runtime/src/render/replay.rs @@ -47,9 +47,13 @@ use metal2vulkan::metal::{ use std::ops::Range; use std::sync::{Arc, Mutex}; -/// A render encoder's log: the descriptor its pass was opened with, and its calls. +/// A render encoder's log: the descriptor its pass was opened with, the screen of the +/// rasterization-rate map its pass took, and its calls. pub(crate) struct RenderLog { descriptor: Box, + /// The screen size of the pass's rasterization-rate map as the pass took it, which its + /// encoding again keeps through a reset of the map (`rate_mapped_pass.rs`). + screen: Option<[u32; 2]>, calls: CallLog, /// The arguments of its `draw_indexed_primitives` calls, in order /// (`RenderCall::DrawIndexedPrimitives`): in one list, not a box each. @@ -63,14 +67,20 @@ pub(crate) struct RenderRoom { } impl RenderLog { - /// The log of a pass `descriptor` opens, before any call: in `room` where one is kept. - pub(crate) fn new(descriptor: &RenderPassDescriptor, room: Option) -> RenderLog { + /// The log of a pass `descriptor` opens, before any call, over a rasterization-rate map of + /// `screen` pixels where it has one: in `room` where one is kept. + pub(crate) fn new( + descriptor: &RenderPassDescriptor, + screen: Option<[u32; 2]>, + room: Option, + ) -> RenderLog { let (calls, indexed) = match room { Some(RenderRoom { calls, indexed }) => (calls, indexed), None => (CallLog::new(), Vec::new()), }; RenderLog { descriptor: Box::new(descriptor.clone()), + screen, calls, indexed, } @@ -83,6 +93,7 @@ impl RenderLog { descriptor, calls, mut indexed, + .. } = *self; drop(descriptor); if indexed.capacity() * std::mem::size_of::() > SPARE_LOG_BYTES { @@ -107,6 +118,11 @@ impl RenderLog { &self.descriptor } + /// The screen size of its pass's rasterization-rate map as the pass took it. + pub(crate) fn screen(&self) -> Option<[u32; 2]> { + self.screen + } + /// Run its calls again on `encoder`, a later color group's of its pass /// (`render/color_groups.rs`). A call refused there was refused in the first group's /// encoder, whose answer the program had, or is a divergence the later group's encoder notes @@ -123,7 +139,8 @@ impl RenderLog { command_buffer: &CommandBuffer, residency: Residency, ) -> Result<(Replayed, Option), Error> { - let mut encoder = RenderLowering::replaying(command_buffer, &self.descriptor, residency)?; + let mut encoder = + RenderLowering::replaying(command_buffer, &self.descriptor, residency, self.screen)?; for (at, call) in self.calls.calls.iter().enumerate() { let ran = render(&mut encoder, (&self.calls, &self.indexed), call); self.calls.again(at, ran)?; diff --git a/crates/metal2vulkan-runtime/src/replay.rs b/crates/metal2vulkan-runtime/src/replay.rs index 6bd88c339..1cfa52f64 100644 --- a/crates/metal2vulkan-runtime/src/replay.rs +++ b/crates/metal2vulkan-runtime/src/replay.rs @@ -546,9 +546,14 @@ impl SpareLogs { self.blit.take().unwrap_or_else(CallLog::new) } - /// The log of a pass `descriptor` opens: in a kept one's room, or a new one. - pub(super) fn render(&self, descriptor: &RenderPassDescriptor) -> RenderLog { - RenderLog::new(descriptor, self.render.take()) + /// The log of a pass `descriptor` opens, over a rasterization-rate map of `screen` pixels + /// where it has one: in a kept one's room, or a new one. + pub(super) fn render( + &self, + descriptor: &RenderPassDescriptor, + screen: Option<[u32; 2]>, + ) -> RenderLog { + RenderLog::new(descriptor, screen, self.render.take()) } /// Clear `replay` and keep it for a next encoder, where its room is small enough diff --git a/crates/metal2vulkan-runtime/src/tests/rate_map.rs b/crates/metal2vulkan-runtime/src/tests/rate_map.rs index e4c0c457f..2a1a24a3b 100644 --- a/crates/metal2vulkan-runtime/src/tests/rate_map.rs +++ b/crates/metal2vulkan-runtime/src/tests/rate_map.rs @@ -1,8 +1,10 @@ //! The rasterization-rate map's creation rules and answers that need no device -//! (`rate_map::compile`, `rate_map::physical_size`, `rate_map::MapState`). +//! (`rate_map::compile`, `rate_map::physical_size`, `rate_map::MapState`), and how far a pass over +//! the identity shades after a reset to another screen (`rate_mapped_pass::reset_bound`). use super::super::error::{Error, Invalid, Problem}; use super::super::rate_map::{compile, physical_size, MapState, RateMapProblem}; +use super::super::rate_mapped_pass::reset_bound; use super::super::values::Size; use metal2vulkan::bind::{ RasterizationRateMap, RateMapDescriptor, RateMapLayerDescriptor, UnpinnedCompile, @@ -231,3 +233,77 @@ fn a_reset_keeps_the_widths_past_its_layers() { assert!(MapState::made(&none, true).unwrap().made_after_release()); assert_eq!(fresh.physical_size(0), Size::new(0, 16, 1)); } + +/// A pass over the identity, its map reset after its encoder took it from a square screen of +/// `taken` pixels to one of `now`, shades as far as Metal's did on each axis: every case of our +/// probe `rs` (the M3 Max under macOS 27.0.1, the reset made after the encoder, after its end and +/// after the commit of a waiting command buffer alike), `(taken, now, shaded)`. +#[test] +fn a_reset_to_another_screen_shades_as_far_as_metal_s_pass() { + const MEASURED: &[(u32, u32, u32)] = &[ + (8, 16, 8), + (8, 40, 8), + (16, 8, 16), + (24, 48, 24), + (32, 64, 32), + (33, 8, 32), + (33, 32, 32), + (40, 8, 32), + (48, 24, 32), + (50, 100, 50), + (64, 32, 32), + (64, 40, 64), + (64, 63, 64), + (65, 40, 64), + (65, 64, 64), + (96, 16, 96), + (96, 33, 64), + (96, 60, 64), + (96, 64, 64), + (100, 50, 100), + (100, 80, 96), + (128, 8, 128), + (128, 16, 128), + (128, 24, 128), + (128, 31, 128), + (128, 32, 128), + (128, 33, 128), + (128, 40, 128), + (128, 48, 128), + (128, 50, 128), + (128, 56, 128), + (128, 63, 128), + (128, 64, 128), + (128, 65, 96), + (128, 80, 96), + (128, 96, 96), + (128, 100, 128), + (128, 127, 128), + (160, 70, 160), + (160, 100, 128), + (160, 130, 160), + (200, 8, 200), + (200, 32, 200), + (200, 33, 200), + (200, 50, 200), + (200, 64, 200), + (200, 65, 200), + (200, 100, 200), + (200, 128, 200), + (200, 129, 200), + (200, 150, 200), + (200, 160, 200), + (200, 161, 192), + (200, 170, 192), + (200, 192, 192), + (256, 100, 256), + (256, 200, 224), + ]; + for &(taken, now, shaded) in MEASURED { + assert_eq!(reset_bound(taken, now), shaded, "{taken} reset to {now}"); + } + // A reset to the screen taken changes nothing. + for side in [1, 31, 32, 33, 64, 16384] { + assert_eq!(reset_bound(side, side), side); + } +} diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index 783002941..9890095a2 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -e080a54e1c6492b78615bb7ffb870c333c6df4abd13269fedb98e783ce1bc425 +2a12330e60b124ccbb27529490a7271b113a3724f35240dbb4bb429499e4e4dd diff --git a/crates/metal2vulkan-validation/src/runtime_lane/rate_mapped_passes.rs b/crates/metal2vulkan-validation/src/runtime_lane/rate_mapped_passes.rs index 6d0098e02..8c2ec5a1f 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/rate_mapped_passes.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/rate_mapped_passes.rs @@ -36,10 +36,11 @@ use crate::store::CorpusStore; use metal2vulkan::metal::Mutability; use metal2vulkan::metal::{PixelFormat, PrimitiveType, TextureType, TextureUsage}; use metal2vulkan_runtime::{ - Buffer, ClearColor, CommandBufferStatus, Degradation, Device, Error, EventRef, Invalid, - LoadAction, Problem, RasterizationRateMap, Region, RegionRefusal, RenderCommandEncoder, - RenderPassDescriptor, RenderPassProblem, RenderPipelineState, ResourceOptions, RuntimeGap, - ScissorRect, StoreAction, Texture, TextureDescriptor, Viewport, + Buffer, ClearColor, CommandBuffer, CommandBufferError, CommandBufferStatus, CommandQueue, + Degradation, Device, Error, EventRef, Invalid, LoadAction, Problem, RasterizationRateMap, + Region, RegionRefusal, RenderCommandEncoder, RenderPassDescriptor, RenderPassProblem, + RenderPipelineState, ResourceOptions, RuntimeGap, ScissorRect, StoreAction, Texture, + TextureDescriptor, Viewport, }; use std::collections::BTreeSet; use std::path::Path; @@ -685,6 +686,189 @@ fn a_reset_shows_in_every_pass_not_yet_submitted() { }); } +/// Our probe `rs`'s resets to another screen (the M3 Max under macOS 27.0.1, each case in a +/// process of its own, repeated alike): a pass over the identity of a mutable map of `taken` +/// pixels a side, reset to the identity of `now` pixels after its encoder opened, after +/// `end_encoding` or after `commit` while the command buffer waits, keeps the screen it took and +/// shades its physical pixels to the 32-pixel tiles of `now` where `now` spans one tile fewer than +/// `taken`, else to `taken` (`(taken, now, target, shaded)`); reset before the encoder opened, the +/// pass is the new map's, shading `now`. Each pixel at its centre, and without a notice. +#[test] +fn a_reset_to_another_screen_keeps_the_screen_the_pass_took() { + const AFTER: [(u32, u32, u64, u64); 10] = [ + (16, 8, 64, 16), + (8, 16, 64, 8), + (64, 32, 64, 32), + (48, 24, 64, 32), + (40, 8, 64, 32), + (100, 50, 128, 100), + (128, 80, 128, 96), + (128, 40, 128, 128), + (200, 161, 256, 192), + (256, 200, 256, 224), + ]; + const BEFORE: [(u32, u32, u64, u64); 3] = [(16, 8, 64, 8), (8, 16, 16, 16), (100, 50, 128, 50)]; + let shades = |side: u64| { + let edge = side as f32 - 0.5; + ( + (side * side) as usize, + [0, 0, side - 1, side - 1], + [[0.5, 0.5], [edge, edge]], + ) + }; + fresh(|fixture, messages| { + let device = &fixture.device; + let identity = |side: u32| descriptor(side, side, &[(1.0, 1.0)]); + let map_of = |side: u32| { + let mut made = identity(side); + made.mutability = Mutability::Mutable; + let map = device.new_rasterization_rate_map(&made).unwrap(); + map.reset_using_descriptor(&identity(side)).unwrap(); + map + }; + for (taken, now, side, shaded_to) in AFTER { + for at in [ResetAt::Opened, ResetAt::Ended, ResetAt::Held] { + let map = map_of(taken); + let target = fixture.target(side); + reset_in_pass(fixture, &map, &target, &identity(now), at); + let case = format!("{taken} reset to {now} at {at:?}, target {side}"); + assert_eq!(shaded(&target), shades(shaded_to), "{case}"); + } + } + for (taken, now, side, shaded_to) in BEFORE { + let map = map_of(taken); + map.reset_using_descriptor(&identity(now)).unwrap(); + let target = fixture.target(side); + fixture.draw(&map, &target, |_| {}).unwrap(); + let case = format!("{taken} reset to {now} before the pass, target {side}"); + assert_eq!(shaded(&target), shades(shaded_to), "{case}"); + } + // Beyond the fixture's making and buffer, nothing: every map is the identity. + let kinds = counts(&messages.take_notices()); + assert!( + kinds.keys().all(|kind| fixture.made.contains(kind)), + "{kinds:?}" + ); + }); +} + +/// A command buffer of `queue` with a pass over `map` into a target of its own for each of +/// `draws` (a draw of a triangle where true, no draw call where false), committed and completed. +fn passes( + fixture: &Fixture, + queue: &CommandQueue, + map: &RasterizationRateMap, + draws: &[bool], +) -> CommandBuffer { + let command_buffer = queue.command_buffer().unwrap(); + for &drawn in draws { + let target = fixture.target(64); + let mut encoder = command_buffer + .render_command_encoder(&pass(map, &target)) + .unwrap(); + if drawn { + encoder.set_render_pipeline_state(&fixture.state).unwrap(); + encoder + .set_fragment_buffer(Some(&fixture.screen), 0, 0) + .unwrap(); + encoder + .draw_primitives(PrimitiveType::Triangle, 0, 3, 1, 0) + .unwrap(); + } + encoder.end_encoding().unwrap(); + } + command_buffer.commit().unwrap(); + command_buffer.wait_until_completed_for(WAIT).unwrap(); + command_buffer +} + +/// Our probe `rs`'s drawless cases (the M3 Max under macOS 27.0.1, each in a process of its own): +/// Metal's GPU hangs at a pass of no draw call over a `Mutable` map, of layers or of none, failing +/// its command buffer with `GpuHang`, until a command buffer with a draw call over a mutable map +/// was committed on the device: a drawn pass before it in its own command buffer does not keep +/// it from hanging, nor does a drawn pass over an immutable map; a pass over an immutable map +/// runs. The runtime answers so, each hang on a queue of its own (a queue's second revokes it). +#[test] +fn a_pass_of_no_draw_call_over_a_mutable_map_hangs_until_one_drew() { + fresh(|fixture, _| { + let device = &fixture.device; + let hangs = |command_buffer: &CommandBuffer, case: &str| { + assert_eq!( + command_buffer.status(), + CommandBufferStatus::Error, + "{case}" + ); + assert_eq!( + command_buffer.error(), + Some(CommandBufferError::GpuHang), + "{case}" + ); + }; + let runs = |command_buffer: &CommandBuffer, case: &str| { + assert_eq!( + command_buffer.status(), + CommandBufferStatus::Completed, + "{case}" + ); + }; + let queue = device.new_command_queue().unwrap(); + let immutable = reset_map(fixture, 0.5, false); + runs( + &passes(fixture, &queue, &immutable, &[true]), + "immutable, drawn", + ); + runs(&passes(fixture, &queue, &immutable, &[false]), "immutable"); + let mutable = reset_map(fixture, 0.5, true); + hangs( + &passes( + fixture, + &device.new_command_queue().unwrap(), + &mutable, + &[false], + ), + "mutable, before any drew", + ); + let mut none = descriptor(SCREEN, SCREEN, &[]); + none.mutability = Mutability::Mutable; + let made_none = device.new_rasterization_rate_map(&none).unwrap(); + hangs( + &passes( + fixture, + &device.new_command_queue().unwrap(), + &made_none, + &[false], + ), + "mutable of no layers, before any drew", + ); + hangs( + &passes( + fixture, + &device.new_command_queue().unwrap(), + &mutable, + &[true, false], + ), + "mutable, after a drawn pass of its own command buffer", + ); + // That command buffer was committed: now none hangs. + let queue = device.new_command_queue().unwrap(); + runs( + &passes(fixture, &queue, &mutable, &[false]), + "mutable, after one drew", + ); + mutable + .reset_using_descriptor(&descriptor(SCREEN, SCREEN, &[])) + .unwrap(); + runs( + &passes(fixture, &queue, &mutable, &[false]), + "reset to no layers, after one drew", + ); + runs( + &passes(fixture, &queue, &made_none, &[false]), + "of no layers, after one drew", + ); + }); +} + /// Our probe `rm`'s `unset_pass`, `none_pass` and `none_mut_pass` (the M3 Max under macOS /// 27.0.1): a pass over a mutable map not yet reset, and over a map of no layers made while no map /// of layers was released, mutable or not, runs its clear and store and each draw's vertex diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 247aff6e0..b0a6702f5 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 446; /// changes no behaviour, and then updates that hash alone with the commit saying why, or changes /// behaviour and also bumps this version. The commit that bumps it says what changed; this comment /// keeps no history. -pub const RUNTIME_VERSION: u32 = 1516; +pub const RUNTIME_VERSION: u32 = 1517; /// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex, /// of the manifest, the build script, and exactly the files the crate roots' module tree compiles diff --git a/docs/API.md b/docs/API.md index a98031397..3ac8088ab 100644 --- a/docs/API.md +++ b/docs/API.md @@ -3284,5 +3284,12 @@ each item named states the rule in full. - **A mutable map's pass stops at the physical size**, where Metal rasterizes past the screen edge (an M3 Max: a 64-pixel half-rate map's pass to 49 by 49 pixels); announced with `rasterization-rate-map`. -- **A pass of no draws over a mutable map stores its clear**, where Metal's GPU hangs. +- **A pass whose map is reset to another screen after it took the map keeps the screen it took**, + as Metal's does (an M3 Max: over a reset to the identity, it shades to the new screen's 32-pixel + tiles where the new screen spans one tile fewer, else the whole screen taken); over a map reset + to one that is not the identity, which no probe measured, it draws by the map as reset within + the screen taken, announced with `rasterization-rate-map`. +- **A rate-mapped pass's clear covers its attachments**, where Metal's covers the physical size + rounded up to 32-pixel tiles and leaves the attachments' other pixels as they were (an M3 Max: a + 16-pixel identity map's pass into a 64-pixel attachment cleared 32 by 32 pixels). - **A rate-mapped pass draws region by region, and refuses a cutting scissor.** diff --git a/docs/REFUSALS.md b/docs/REFUSALS.md index 3ccb9991e..30765f413 100644 --- a/docs/REFUSALS.md +++ b/docs/REFUSALS.md @@ -14,7 +14,7 @@ Columns: - `none`: no public API path: malformed or non-Metal input, Apple-private calls, or a cap no valid program of ordinary size meets; - `?`: not assessed yet. -Generated at `60c9c74d7`. +Generated at `a12245c88`. ## Totals @@ -84,7 +84,7 @@ Generated at `60c9c74d7`. | `PixelSamplerCompare` | A constexpr sampler with pixel coordinates and a compare function, which Apple's compiler rejects ("invalid values combination in sampler... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:115` | `none`: Apple's compiler rejects it | | `TexelBuffer` | Texture buffers beyond the device's texel-buffer limits | devices without a format's usage; every device (no Vulkan mechanism) | 3: `crates/metal2vulkan/src/bind/instantiate.rs:882`, `crates/metal2vulkan/src/bind/instantiate.rs:888` (+1) | `app`: texture buffers past a device's texel-buffer limits | | `RasterOrderGroups` | Raster order groups without fragment shader interlock | devices without VkFeature::FragmentShaderPixelInterlock; devices without VkFeature::FragmentShaderSampleInterlock; devices without a capability the site computes (`alternatives`); every device (not implemented) | 4: `crates/metal2vulkan/src/device/metal.rs:242`, `crates/metal2vulkan/src/lower/fragment/rog.rs:151` (+2) | `rare`: raster order groups | -| `FramebufferFetch` | Framebuffer fetch without an ordered form on the device (rasterization-order attachment access, or the pixel interlock's storage form where the... | devices short of a Vulkan property the site names; devices without VkFeature::FragmentShaderPixelInterlock; devices without VkFeature::RasterizationOrderColorAttachmentAccess; devices without VkFeature::SampleRateShading; devices without a capability the site computes; devices without a capability the site computes (`alternatives`); devices without a capability the site computes (`c`); devices without a capability the site computes (`capability`); devices without a capability the site computes (`missing`); devices without a format's usage; drivers with a defect; every device (not implemented) | 24: `crates/metal2vulkan-runtime/src/families/features.rs:1018`, `crates/metal2vulkan-runtime/src/render.rs:5931` (+22) | `system`: programmable blending (framebuffer fetch); macOS 26.6.2's login reaches it (two WindowServer and RenderBox pipelines fetch RGB10A8_2P_XR10 attachments, the consumer's boots) | +| `FramebufferFetch` | Framebuffer fetch without an ordered form on the device (rasterization-order attachment access, or the pixel interlock's storage form where the... | devices short of a Vulkan property the site names; devices without VkFeature::FragmentShaderPixelInterlock; devices without VkFeature::RasterizationOrderColorAttachmentAccess; devices without VkFeature::SampleRateShading; devices without a capability the site computes; devices without a capability the site computes (`alternatives`); devices without a capability the site computes (`c`); devices without a capability the site computes (`capability`); devices without a capability the site computes (`missing`); devices without a format's usage; drivers with a defect; every device (not implemented) | 24: `crates/metal2vulkan-runtime/src/families/features.rs:1018`, `crates/metal2vulkan-runtime/src/render.rs:5952` (+22) | `system`: programmable blending (framebuffer fetch); macOS 26.6.2's login reaches it (two WindowServer and RenderBox pipelines fetch RGB10A8_2P_XR10 attachments, the consumer's boots) | | `PrimitiveId` | `[[primitive_id]]` in a fragment function | devices without a capability the site computes; every device (not implemented) | 3: `crates/metal2vulkan-runtime/src/families/features.rs:1127`, `crates/metal2vulkan/src/lower/stage_io/plan.rs:3211` (+1) | `rare`: primitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function | | `PrivatePrimitives` | One of Metal's private primitive types (a line loop, a triangle fan, quads, a quad strip) drawn in the pulled list form... | - | via a helper: 1: `crates/metal2vulkan/src/lower/stage_io/plan.rs:2601` | `rare`: a private primitive type drawn in the pulled list form (a vertex function that writes memory or the primitive_id varying, a vertex start past 2^31) on a device without device addresses | | `VertexAmplification` | Vertex amplification | devices without VkFeature::Multiview; devices without VkFeature::MultiviewTessellationShader; devices without VkLimit::MaxMultiviewInstanceIndex; devices without a capability the site computes (`needs`); every device (not implemented) | 5: `crates/metal2vulkan/src/bind/graphics.rs:4180`, `crates/metal2vulkan/src/lower/stage_io/plan.rs:1312` (+3) | `rare`: vertex amplification | @@ -122,7 +122,7 @@ Generated at `60c9c74d7`. | `SamplerBicubicFilter` | A use of Metal's bicubic filter that no Metal reading establishes | every device (not implemented) | 5: `crates/metal2vulkan/src/bind/heap.rs:997`, `crates/metal2vulkan/src/bind/plan/resources.rs:1876` (+3) | `system`: bicubic filtering forms Metal does not establish; macOS 26.6.2 makes a runtime sampler with MTLSamplerMinMagFilterCubic (the consumer's boots), whose mip-filtered form is refused | | `GroupCount` | A dispatch whose threadgroup count on `axis` exceeds `maxComputeWorkGroupCount` by more than the binder splits into regions (`None` | every device (no Vulkan mechanism) | 5: `crates/metal2vulkan/src/bind/dispatch.rs:379`, `crates/metal2vulkan/src/bind/dispatch.rs:455` (+3) | `rare`: more threadgroups than a device dispatches, past the binder's split | | `IntersectionFunctionTable` | A ray intersection through intersection functions | every device (no Vulkan mechanism); every device (not implemented) | 9: `crates/metal2vulkan/src/bind/acceleration.rs:177`, `crates/metal2vulkan/src/bind/acceleration.rs:183` (+7) | `rare`: ray tracing (out of scope by ruling) | -| `IndependentBlending` | Color attachments whose write masks or blend states differ, as Metal sets them per attachment, on a device without `independentBlend`, where no... | devices without VkFeature::IndependentBlend | 2: `crates/metal2vulkan-runtime/src/render.rs:2193`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:1005` | `rare`: per-attachment blending on a device without independentBlend | +| `IndependentBlending` | Color attachments whose write masks or blend states differ, as Metal sets them per attachment, on a device without `independentBlend`, where no... | devices without VkFeature::IndependentBlend | 2: `crates/metal2vulkan-runtime/src/render.rs:2199`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:1005` | `rare`: per-attachment blending on a device without independentBlend | | `RasterSampleCount` | A `rasterSampleCount` outside the device's framebuffer sample counts for the pipeline's attachments (`framebuffer*SampleCounts`), and, for a color... | devices short of a Vulkan property the site names; devices without a capability the site computes | 2: `crates/metal2vulkan-runtime/src/families/limits.rs:1063`, `crates/metal2vulkan/src/pipeline/graphics.rs:563` | `app`: a sample count a device lacks for the attachments | | `TriangleFillLines` | The render encoder's `MTLTriangleFillModeLines` (`polygonMode` `LINE`) on a device without `fillModeNonSolid` | - | via a helper: 1: `crates/metal2vulkan/src/metal/state.rs:347` | `app`: wireframe on a device without fillModeNonSolid | | `DepthClipClamp` | The render encoder's `MTLDepthClipModeClamp` (`depthClampEnable`) on a device without `depthClamp` | - | via a helper: 1: `crates/metal2vulkan/src/metal/state.rs:363` | `app`: depth clamp on a device without depthClamp | @@ -135,7 +135,7 @@ Generated at `60c9c74d7`. | `TextureSwizzle` | A texture swizzle whose Metal behavior is not measured | devices short of a Vulkan feature the site names; every device (not implemented) | 7: `crates/metal2vulkan-runtime/src/binding_view.rs:167`, `crates/metal2vulkan-runtime/src/texture.rs:999` (+5) | `app`: texture swizzles whose Metal behaviour is unmeasured | | `MipmapGeneration` | `generateMipmapsForTexture:` where the device's filter is not shown to give Metal's answer | devices without VkFeature::ShaderInt64; devices without a format's usage; every device (not implemented) | 7: `crates/metal2vulkan-runtime/src/blit_texture.rs:1890`, `crates/metal2vulkan-runtime/src/mipmap_pick.rs:37` (+5) | `app`: generateMipmapsForTexture: where the device's filter is not Metal's | | `HostMemory` | A buffer over the caller's host memory without a copy (`newBufferWithBytesNoCopy:`) | devices without VkExtension::ExtExternalMemoryHost; every device (no Vulkan mechanism); every device (not implemented) | 5: `crates/metal2vulkan-runtime/src/host_memory.rs:430`, `crates/metal2vulkan-runtime/src/host_memory.rs:470` (+3) | `system`: newBufferWithBytesNoCopy: where the device cannot import the memory | -| `GpuTimes` | A command buffer's GPU times (`GPUStartTime`, `GPUEndTime`) on a device whose queue family writes no timestamps (`timestampValidBits` 0) | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2921` | `rare`: GPU times on a queue without timestamps | +| `GpuTimes` | A command buffer's GPU times (`GPUStartTime`, `GPUEndTime`) on a device whose queue family writes no timestamps (`timestampValidBits` 0) | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2930` | `rare`: GPU times on a queue without timestamps | | `CountingVisibility` | A `Counting` visibility result (`MTLVisibilityResultModeCounting`) on a device without `occlusionQueryPrecise` | devices without VkFeature::OcclusionQueryPrecise | 1: `crates/metal2vulkan-runtime/src/visibility.rs:452` | `rare`: counting occlusion queries on a device without precise queries | | `ViewFormatReinterpretation` | A texture view whose format has other components, or components of other widths, than its texture's (`RGBA8Unorm` as `R32Uint`), on a device whose... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/view_plan.rs:573` | `app`: a view of another component layout on a portability subset (MoltenVK) | | `SeparateMultisampledDepthStencil` | A render pass whose depth and stencil attachments are separate multisampled textures that it loads or may store, on a device without maintenance8,... | - | via a helper: 7: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:188`, `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:294` (+5) | `rare`: separate multisampled depth and stencil textures | @@ -186,12 +186,12 @@ Generated at `60c9c74d7`. | `ViewportDepthRange` | A viewport depth range past `[0, 1]`, which Metal takes, on a device without the features to take it natively or by the vertex stage's... | every device (runtime piece not built) | 7: `crates/metal2vulkan-runtime/src/render/draw_shape.rs:341`, `crates/metal2vulkan-runtime/src/render_state.rs:1053` (+5) | `rare`: viewport depth outside [0, 1] without the device features | | `NonFiniteDepthBias` | NaN or infinite depth bias factors whose effect differs between flat and sloped triangles, or a draw whose bias adds a clamp that moves a... | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/render_state.rs:1617`, `crates/metal2vulkan-runtime/src/render_state.rs:1620` (+3) | `rare`: NaN or infinite depth bias | | `DepthNeverWithoutAttachment` | A draw under a depth compare of `Never` in a pass without a depth attachment, which fails every fragment, whose fragment function writes color... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/depth_stencil.rs:147` | `rare`: depth compare Never with no depth attachment | -| `HiddenDepthStencil` | A draw whose depth/stencil state uses depth or the stencil that the pass lacks, which plain Metal tests against a hidden `float` depth of 1.0 and... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:564`, `crates/metal2vulkan-runtime/src/render.rs:6654` | `app`: a depth-stencil state using depth or stencil the pass lacks | -| `IndirectDrawArguments` | An indirect draw whose arguments the binding plan asks to read on the CPU (`DrawCommands::indirect_needs_arguments`) | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/index_bounds.rs:102`, `crates/metal2vulkan-runtime/src/render.rs:3322` (+3) | `rare`: indirect draws whose arguments the CPU must read | +| `HiddenDepthStencil` | A draw whose depth/stencil state uses depth or the stencil that the pass lacks, which plain Metal tests against a hidden `float` depth of 1.0 and... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:564`, `crates/metal2vulkan-runtime/src/render.rs:6675` | `app`: a depth-stencil state using depth or stencil the pass lacks | +| `IndirectDrawArguments` | An indirect draw whose arguments the binding plan asks to read on the CPU (`DrawCommands::indirect_needs_arguments`) | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/index_bounds.rs:102`, `crates/metal2vulkan-runtime/src/render.rs:3328` (+3) | `rare`: indirect draws whose arguments the CPU must read | | `DepthStencilResolve` | A depth/stencil resolve no Vulkan resolve mode of the device states | every device (runtime piece not built) | 7: `crates/metal2vulkan-runtime/src/depth_stencil_resolve.rs:441`, `crates/metal2vulkan-runtime/src/resolve.rs:1392` (+5) | `rare`: depth/stencil resolve modes a device lacks | | `TileAtSampleCount` | The tile memory of a render pass of a sample count Apple's GPUs lack (theirs are 1, 2 and 4), which a Vulkan device may have | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/render_pass.rs:1614`, `crates/metal2vulkan-runtime/src/render_pass.rs:937` | `none`: tile memory at a sample count Apple's GPUs lack | -| `ImageblockMasters` | A draw or tile dispatch whose imageblock is of another size than the pass's, or a draw whose fragment function's layouts are of another alignment... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/render.rs:7425`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:929` | `rare`: imageblocks of mixed sizes in one pass | -| `TileAndFragmentImageblocks` | A render pass that reaches its imageblock storage, from a draw whose fragment function declares an explicit imageblock or a tile dispatch whose... | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/render.rs:7417`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:796` (+1) | `rare`: explicit imageblocks shared by tile and fragment functions | +| `ImageblockMasters` | A draw or tile dispatch whose imageblock is of another size than the pass's, or a draw whose fragment function's layouts are of another alignment... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/render.rs:7446`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:929` | `rare`: imageblocks of mixed sizes in one pass | +| `TileAndFragmentImageblocks` | A render pass that reaches its imageblock storage, from a draw whose fragment function declares an explicit imageblock or a tile dispatch whose... | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/render.rs:7438`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:796` (+1) | `rare`: explicit imageblocks shared by tile and fragment functions | | `Metal4Api` | Metal 4's API (`MTL4CommandQueue`, `MTL4CommandBuffer`, `MTL4ArgumentTable`, `MTL4Compiler` and the rest), with the features only its programming... (not scheduled) | every device (runtime piece not built) | family audit only: 3: `crates/metal2vulkan-runtime/src/families/features.rs:1487`, `crates/metal2vulkan-runtime/src/families/limits.rs:1026` (+1) | `app`: Metal 4 (the API is missing: METAL-COVERAGE.md) | | `CounterSampleBuffers` | Counter sample buffers (`MTLCounterSampleBuffer`) and the commands that sample into them (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/limits.rs:1017` | `app`: GPU counters and timestamps by sample buffer (missing API) | | `ResidencySets` | Residency sets (`MTLResidencySet`) (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1469`, `crates/metal2vulkan-runtime/src/families/limits.rs:1019` | `app`: residency sets (missing API) | @@ -203,7 +203,7 @@ Generated at `60c9c74d7`. | `ShaderValidation` | Per-pipeline shader validation (`MTLShaderValidation`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1467` | `rare`: per-pipeline shader validation | | `ShaderLogging` | Shader logging (`MTLLogState`, a shader's `os_log`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1468` | `rare`: shader os_log | | `DeviceNotifications` | Device notifications (`MTLCopyAllDevicesWithObserver`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1472` | `rare`: device hotplug notifications (deprecated) | -| `RateMapRegions` | A draw in a rate-mapped pass that the region path does not draw, for the compile layer's reason (`rate_mapped_pass.rs`) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs:396` | `rare`: draws in rate-mapped passes the region path does not draw | +| `RateMapRegions` | A draw in a rate-mapped pass that the region path does not draw, for the compile layer's reason (`rate_mapped_pass.rs`) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs:479` | `rare`: draws in rate-mapped passes the region path does not draw | | `LayeredPass` | A layered render pass (`renderTargetArrayLength` 2 or more) that needs a step of one layer | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/color_resolve.rs:928` | `rare`: layered passes needing a per-layer color resolve | | `FunctionOptions` | A function descriptor's options beyond `CompileToBinary` and `StoreFunctionInMetalPipelinesScript` (`Library::new_function_with_descriptor`) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/library.rs:215` | `rare`: function descriptor options beyond CompileToBinary | | `OverlappingTextureCopies` | A blit copy between overlapping regions of one texture's texels (`copyFromTexture:...` with the source's region meeting the destination's, through... (not scheduled) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/blit_texture.rs:1340` | `rare`: overlapping texture copies (Metal races) | @@ -215,9 +215,9 @@ Generated at `60c9c74d7`. | `MappedTextureSampling` | A command that would sample a texture of an address-mode map (`TextureDescriptor::address_mode_map`) where the runtime cannot map it at bind... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/address_map.rs:158` | `none`: a runtime extension's texture (address_mode_map) sampled where the runtime cannot map it; no Metal API path | | `LibrarySource` | A library compiled from Metal Shading Language source | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/library.rs:107` | `app`: a library compiled from Metal source (newLibraryWithSource:); the runtime takes metallibs and AIR | | `RestartedStrip` | An indexed strip after `set_primitive_restart_enabled` with an index Vulkan does not restart at, which the runtime draws as a list an index... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/render/restart.rs:71` | `none`: a strip after the Apple-private setPrimitiveRestartEnabled:index: whose rewrite pass cannot run as Metal draws | -| `PrivatePrimitives` | A draw of one of Metal's private primitive types (`DrawPrimitiveType` | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/render.rs:8150`, `crates/metal2vulkan-runtime/src/render/restart.rs:72` | `none`: a draw of an Apple-private primitive type (OpenGL on Metal's quads and kin) whose list cannot draw as Metal draws: a list past a u32 or one storage range, indices or arguments an unordered earlier draw wrote | +| `PrivatePrimitives` | A draw of one of Metal's private primitive types (`DrawPrimitiveType` | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/render.rs:8171`, `crates/metal2vulkan-runtime/src/render/restart.rs:72` | `none`: a draw of an Apple-private primitive type (OpenGL on Metal's quads and kin) whose list cannot draw as Metal draws: a list past a u32 or one storage range, indices or arguments an unordered earlier draw wrote | | `ProvokingVertex` | A draw under Apple's last provoking vertex (`setProvokingVertexMode:` 1) on a device without `VK_EXT_provoking_vertex`'s last vertex, which the... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/render/restart.rs:73` | `none`: a draw after the Apple-private setProvokingVertexMode: 1, on a device without the last provoking vertex, whose rotated list cannot draw as Metal draws | -| `PrimitiveIdIndices` | An indexed draw (`drawIndexedPrimitives:`) of a pipeline whose fragment function reads `[[primitive_id]]` on a device whose fragment stage cannot... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/render.rs:8161` | `rare`: an indexed draw of a primitive_id pipeline, on a device without geometry or tessellation shaders, whose indices the encoder wrote since its last barrier | +| `PrimitiveIdIndices` | An indexed draw (`drawIndexedPrimitives:`) of a pipeline whose fragment function reads `[[primitive_id]]` on a device whose fragment stage cannot... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/render.rs:8182` | `rare`: an indexed draw of a primitive_id pipeline, on a device without geometry or tessellation shaders, whose indices the encoder wrote since its last barrier | | `RotatedTexture` | A rotated texture (`TextureDescriptor::rotation`) where the runtime does not build what Metal does | every device (runtime piece not built) | 9: `crates/metal2vulkan-runtime/src/blit_texture.rs:1669`, `crates/metal2vulkan-runtime/src/buffer_texture.rs:727` (+7) | `rare`: a rotated drawable's views, blits with images over overlapping rows, rows past its buffer | | `DetachTextures` | A texture over a no-copy buffer's or heap's bytes (a heap's texture, or a texture over the buffer or over one of the heap's buffers) that no... | every device (runtime piece not built) | 8: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:641`, `crates/metal2vulkan-runtime/src/buffer_texture.rs:634` (+6) | `none`: a runtime extension's detach with a texture no stand-in presents exactly | | `TextureBufferLevels` | A texture buffer of more than one level (`TextureDescriptor::mipmap_level_count`, up to its width's full chain) from the device's, a heap's or the... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:540` | `rare`: a texture buffer of more than one level (public, unusual) | @@ -232,7 +232,7 @@ Generated at `60c9c74d7`. | Variant | What it blocks | Where | Sites | Reach | |---|---|---|---|---| -| `ProtectedContent` | Protection options whose answer on Metal is not measured (`command_buffer/protection.rs`) | every device (Apple-private, Metal's answer not measured) | 3: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2452`, `crates/metal2vulkan-runtime/src/command_buffer/protection.rs:126` (+1) | `none`: Apple-private (no public header) | +| `ProtectedContent` | Protection options whose answer on Metal is not measured (`command_buffer/protection.rs`) | every device (Apple-private, Metal's answer not measured) | 3: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2461`, `crates/metal2vulkan-runtime/src/command_buffer/protection.rs:126` (+1) | `none`: Apple-private (no public header) | | `LineWidth` | A line width other than 1 (`setLineWidth:`) | every device (Apple-private, Metal's answer not measured) | 1: `crates/metal2vulkan-runtime/src/apple_only.rs:190` | `none`: Apple-private (no public header) | | `ViewportTransformDisabled` | The viewport transform turned off (`setViewportTransformEnabled:NO`) | every device (Apple-private, Metal's answer not measured) | 1: `crates/metal2vulkan-runtime/src/apple_only.rs:192` | `none`: Apple-private (no public header) | | `VertexAmplificationMode` | `setVertexAmplificationMode:value:` of a count (the value's set bits in mode 1, else the value) of 0, whose copies change from run to run on... | every device (Apple-private, Metal's answer not measured) | 2: `crates/metal2vulkan-runtime/src/apple_only.rs:196`, `crates/metal2vulkan-runtime/src/apple_only.rs:321` | `none`: Apple-private (no public header) | @@ -327,7 +327,7 @@ Each refusal's sites, with the function that builds it. - `feature::BufferRange`: `crates/metal2vulkan-runtime/src/function_table.rs:569 (past_storage_buffer_range)`; `crates/metal2vulkan/src/bind/graphics.rs:3839 (patch_binding)`; `crates/metal2vulkan/src/bind/graphics.rs:3883 (patch_binding)`; `crates/metal2vulkan/src/bind/graphics.rs:3921 (patch_binding)`; `crates/metal2vulkan/src/bind/instantiate.rs:661 (bind_buffers)`; `crates/metal2vulkan/src/lower/access/function_table.rs:226 (select)`; `crates/metal2vulkan/src/lower/access/mod.rs:1184 (place_slots)` - `feature::Int64Arithmetic`: `crates/metal2vulkan/src/lower/arith/legal.rs:582 (check_scalar)`; `crates/metal2vulkan/src/lower/select.rs:1133 (selector_form)` - `feature::Float64Arithmetic`: `crates/metal2vulkan/src/device/metal.rs:230 (unsupported_features)`; `crates/metal2vulkan/src/lower/arith/legal.rs:587 (check_scalar)` -- `feature::Format`: `crates/metal2vulkan-runtime/src/binding_view.rs:146 (binding_view)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:523 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:530 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:545 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:602 (pair_unit)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:694 (plan_levels_copy)`; `crates/metal2vulkan-runtime/src/blit_texture.rs:2206 (through_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:520 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:594 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:626 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:863 (texture_buffer_texel)`; `crates/metal2vulkan-runtime/src/color_resolve.rs:172 (of_attachment)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:270 (colour_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:298 (copy_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:344 (copy_unit)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:346 (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:526 (usable_twin)`; `crates/metal2vulkan-runtime/src/families/features.rs:1625 (read_write_tier)`; `crates/metal2vulkan-runtime/src/families/formats.rs:1630 (sparse_missing)`; `crates/metal2vulkan-runtime/src/families/formats.rs:228 (none)`; `crates/metal2vulkan-runtime/src/families/formats.rs:272 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:292 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:307 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:354 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:393 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:476 (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs:510 (lacking)`; `crates/metal2vulkan-runtime/src/families/formats.rs:524 (unsupported)`; `crates/metal2vulkan-runtime/src/image_plan.rs:544 (check_own_memory)`; `crates/metal2vulkan-runtime/src/image_plan.rs:670 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:787 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:907 (plan_held)`; `crates/metal2vulkan-runtime/src/render.rs:2312 (viewing)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1031 (check_target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1372 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1712 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1805 (attachment_format)`; `crates/metal2vulkan-runtime/src/resolve.rs:418 (unmodelled_resolve)`; `crates/metal2vulkan-runtime/src/resolve.rs:620 (color)`; `crates/metal2vulkan-runtime/src/sample_copy.rs:176 (checked_twin)`; `crates/metal2vulkan-runtime/src/sample_copy.rs:204 (plan)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs:303 (interleave_merge)`; `crates/metal2vulkan-runtime/src/shadow.rs:673 (unmerged)`; `crates/metal2vulkan-runtime/src/shadow.rs:680 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:2084 (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs:3633 (two_planes_refused)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs:498 (astc_texels)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs:534 (etc_texels)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1951 (planned_heap_texture)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:80 (refused)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:190 (converted_storage)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:456 (ycbcr_write_shadow)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:565 (new_render_shadow)`; `crates/metal2vulkan-runtime/src/two_planes.rs:150 (unmeasured)`; `crates/metal2vulkan-runtime/src/view_plan.rs:381 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:394 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:401 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:413 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:423 (check_format)`; `crates/metal2vulkan-runtime/src/ycbcr.rs:309 (refused)`; `crates/metal2vulkan/src/bind/extended_shadow.rs:184 (extended_shadow_module)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1134 (plain_texture)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1814 (extended_sampler)`; `crates/metal2vulkan/src/bind/plan/resources.rs:193 (require_filter_features)`; `crates/metal2vulkan/src/bind/plan/resources.rs:959 (plain_texture)`; `crates/metal2vulkan/src/bind/sample_interleave.rs:304 (finish)`; `crates/metal2vulkan/src/bind/sample_interleave.rs:328 (interleave_split_module)`; `crates/metal2vulkan/src/bind/shadow_copy_in.rs:259 (shadow_copy_in_module)`; `crates/metal2vulkan/src/bind/unused_bits.rs:687 (unused_bits_module)`; `crates/metal2vulkan/src/lower/access/tile.rs:1029 (storage_format)`; `crates/metal2vulkan/src/lower/fragment/color.rs:160 (select_param)`; `crates/metal2vulkan/src/lower/fragment/color.rs:166 (select_param)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1263 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1284 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1290 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1296 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1321 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1498 (plan)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1971 (select_read)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:2078 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:2105 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:2124 (select_output)`; `crates/metal2vulkan/src/lower/sampler/select.rs:1093 (select_extended)`; `crates/metal2vulkan/src/lower/sampler/select.rs:691 (texel_in)`; `crates/metal2vulkan/src/lower/stage_io/extended_color.rs:77 (plan)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:2355 (entry)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:896 (zeroed_output)`; `crates/metal2vulkan/src/lower/stage_io/word_color.rs:83 (plan)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2366 (select)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3008 (cross_class)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3180 (select_image)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3350 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3387 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3720 (select_write)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1035 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1048 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1054 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:739 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:742 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:753 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:771 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:791 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:815 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:826 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:873 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:908 (atomic_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:917 (atomic_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1697 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1699 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1829 (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs:2798 (storage_choice_viewed)`; `crates/metal2vulkan/src/metal/format/mod.rs:2816 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2824 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2921 (held_storage_choice)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:1088 (extended_write_mask)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:462 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:534 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:957 (reads_alpha_to_coverage)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:978 (reads_alpha_to_coverage)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:449 (rotated_blend)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:593 (alpha_in_red_blend)` +- `feature::Format`: `crates/metal2vulkan-runtime/src/binding_view.rs:146 (binding_view)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:523 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:530 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:545 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:602 (pair_unit)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:694 (plan_levels_copy)`; `crates/metal2vulkan-runtime/src/blit_texture.rs:2206 (through_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:520 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:594 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:626 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:863 (texture_buffer_texel)`; `crates/metal2vulkan-runtime/src/color_resolve.rs:172 (of_attachment)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:270 (colour_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:298 (copy_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:344 (copy_unit)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:346 (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:526 (usable_twin)`; `crates/metal2vulkan-runtime/src/families/features.rs:1625 (read_write_tier)`; `crates/metal2vulkan-runtime/src/families/formats.rs:1630 (sparse_missing)`; `crates/metal2vulkan-runtime/src/families/formats.rs:228 (none)`; `crates/metal2vulkan-runtime/src/families/formats.rs:272 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:292 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:307 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:354 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:393 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:476 (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs:510 (lacking)`; `crates/metal2vulkan-runtime/src/families/formats.rs:524 (unsupported)`; `crates/metal2vulkan-runtime/src/image_plan.rs:544 (check_own_memory)`; `crates/metal2vulkan-runtime/src/image_plan.rs:670 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:787 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:907 (plan_held)`; `crates/metal2vulkan-runtime/src/render.rs:2318 (viewing)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1031 (check_target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1372 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1712 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1805 (attachment_format)`; `crates/metal2vulkan-runtime/src/resolve.rs:418 (unmodelled_resolve)`; `crates/metal2vulkan-runtime/src/resolve.rs:620 (color)`; `crates/metal2vulkan-runtime/src/sample_copy.rs:176 (checked_twin)`; `crates/metal2vulkan-runtime/src/sample_copy.rs:204 (plan)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs:303 (interleave_merge)`; `crates/metal2vulkan-runtime/src/shadow.rs:673 (unmerged)`; `crates/metal2vulkan-runtime/src/shadow.rs:680 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:2084 (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs:3633 (two_planes_refused)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs:498 (astc_texels)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs:534 (etc_texels)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1951 (planned_heap_texture)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:80 (refused)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:190 (converted_storage)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:456 (ycbcr_write_shadow)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:565 (new_render_shadow)`; `crates/metal2vulkan-runtime/src/two_planes.rs:150 (unmeasured)`; `crates/metal2vulkan-runtime/src/view_plan.rs:381 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:394 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:401 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:413 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:423 (check_format)`; `crates/metal2vulkan-runtime/src/ycbcr.rs:309 (refused)`; `crates/metal2vulkan/src/bind/extended_shadow.rs:184 (extended_shadow_module)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1134 (plain_texture)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1814 (extended_sampler)`; `crates/metal2vulkan/src/bind/plan/resources.rs:193 (require_filter_features)`; `crates/metal2vulkan/src/bind/plan/resources.rs:959 (plain_texture)`; `crates/metal2vulkan/src/bind/sample_interleave.rs:304 (finish)`; `crates/metal2vulkan/src/bind/sample_interleave.rs:328 (interleave_split_module)`; `crates/metal2vulkan/src/bind/shadow_copy_in.rs:259 (shadow_copy_in_module)`; `crates/metal2vulkan/src/bind/unused_bits.rs:687 (unused_bits_module)`; `crates/metal2vulkan/src/lower/access/tile.rs:1029 (storage_format)`; `crates/metal2vulkan/src/lower/fragment/color.rs:160 (select_param)`; `crates/metal2vulkan/src/lower/fragment/color.rs:166 (select_param)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1263 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1284 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1290 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1296 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1321 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1498 (plan)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1971 (select_read)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:2078 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:2105 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:2124 (select_output)`; `crates/metal2vulkan/src/lower/sampler/select.rs:1093 (select_extended)`; `crates/metal2vulkan/src/lower/sampler/select.rs:691 (texel_in)`; `crates/metal2vulkan/src/lower/stage_io/extended_color.rs:77 (plan)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:2355 (entry)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:896 (zeroed_output)`; `crates/metal2vulkan/src/lower/stage_io/word_color.rs:83 (plan)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2366 (select)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3008 (cross_class)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3180 (select_image)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3350 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3387 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3720 (select_write)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1035 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1048 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1054 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:739 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:742 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:753 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:771 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:791 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:815 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:826 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:873 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:908 (atomic_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:917 (atomic_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1697 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1699 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1829 (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs:2798 (storage_choice_viewed)`; `crates/metal2vulkan/src/metal/format/mod.rs:2816 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2824 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2921 (held_storage_choice)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:1088 (extended_write_mask)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:462 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:534 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:957 (reads_alpha_to_coverage)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:978 (reads_alpha_to_coverage)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:449 (rotated_blend)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:593 (alpha_in_red_blend)` - `feature::DivergentImplicitLod`: `crates/metal2vulkan/src/lower/sampler/select.rs:352 (select_sampling)` - `feature::ImplicitLodOutsideFragment`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:136 (query_min_level)`; `crates/metal2vulkan/src/lower/sampler/select.rs:229 (query_level_measured)`; `crates/metal2vulkan/src/lower/sampler/select.rs:255 (query_min_level)` - `feature::MinLodClamp`: `crates/metal2vulkan/src/lower/sampler/select.rs:1572 (select_one)`; `crates/metal2vulkan/src/lower/sampler/select.rs:973 (min_lod)` @@ -343,7 +343,7 @@ Each refusal's sites, with the function that builds it. - `feature::PixelSamplerCompare`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:115 (lowered)` - `feature::TexelBuffer`: `crates/metal2vulkan/src/bind/instantiate.rs:882 (texel_ranges)`; `crates/metal2vulkan/src/bind/instantiate.rs:888 (texel_ranges)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1147 (plain_texture)` - `feature::RasterOrderGroups`: `crates/metal2vulkan/src/device/metal.rs:242 (unsupported_features)`; `crates/metal2vulkan/src/lower/fragment/rog.rs:151 (mode)`; `crates/metal2vulkan/src/lower/fragment/rog.rs:172 (mode)`; `crates/metal2vulkan/src/lower/fragment/snapshot.rs:158 (finish)` -- `feature::FramebufferFetch`: `crates/metal2vulkan-runtime/src/families/features.rs:1018 (state)`; `crates/metal2vulkan-runtime/src/render.rs:5931 (next_instance)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:120 (lacks)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:147 (new)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:518 (planes_merge)`; `crates/metal2vulkan/src/bind/extended_shadow.rs:190 (extended_shadow_module)`; `crates/metal2vulkan/src/bind/sample_planes.rs:477 (finish)`; `crates/metal2vulkan/src/device/metal.rs:252 (unsupported_features)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1218 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1236 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1250 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1281 (srgb8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1330 (packed16)`; `crates/metal2vulkan/src/lower/fragment/color.rs:215 (select_param)`; `crates/metal2vulkan/src/lower/fragment/color.rs:279 (unordered)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:195 (not_implemented)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:272 (depth_test_form)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:318 (stencil_test_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1148 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1239 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1276 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1925 (plan_sample)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:836 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/fetch.rs:164 (storage_attachments)` +- `feature::FramebufferFetch`: `crates/metal2vulkan-runtime/src/families/features.rs:1018 (state)`; `crates/metal2vulkan-runtime/src/render.rs:5952 (next_instance)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:120 (lacks)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:147 (new)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:518 (planes_merge)`; `crates/metal2vulkan/src/bind/extended_shadow.rs:190 (extended_shadow_module)`; `crates/metal2vulkan/src/bind/sample_planes.rs:477 (finish)`; `crates/metal2vulkan/src/device/metal.rs:252 (unsupported_features)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1218 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1236 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1250 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1281 (srgb8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1330 (packed16)`; `crates/metal2vulkan/src/lower/fragment/color.rs:215 (select_param)`; `crates/metal2vulkan/src/lower/fragment/color.rs:279 (unordered)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:195 (not_implemented)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:272 (depth_test_form)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:318 (stencil_test_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1148 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1239 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1276 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1925 (plan_sample)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:836 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/fetch.rs:164 (storage_attachments)` - `feature::PrimitiveId`: `crates/metal2vulkan-runtime/src/families/features.rs:1127 (state)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:3211 (finish)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:240 (check_primitive_id)` - `feature::PrivatePrimitives`: `crates/metal2vulkan/src/lower/stage_io/plan.rs:2601 (indices_feature)` - `feature::VertexAmplification`: `crates/metal2vulkan/src/bind/graphics.rs:4180 (multiview_instances)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1312 (own_index_store)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:718 (select_param)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:258 (vertex_amplification)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:228 (control_plan)` @@ -381,7 +381,7 @@ Each refusal's sites, with the function that builds it. - `feature::SamplerBicubicFilter`: `crates/metal2vulkan/src/bind/heap.rs:997 (new)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1876 (bicubic_texels)`; `crates/metal2vulkan/src/bind/plan/slots.rs:503 (cubic_variant)`; `crates/metal2vulkan/src/lower/sampler/bicubic.rs:120 (refuse)`; `crates/metal2vulkan/src/lower/sampler/select.rs:35 (bicubic_refused)` - `feature::GroupCount`: `crates/metal2vulkan/src/bind/dispatch.rs:379 (product)`; `crates/metal2vulkan/src/bind/dispatch.rs:455`; `crates/metal2vulkan/src/bind/dispatch.rs:953 (instantiate)`; `crates/metal2vulkan/src/bind/graphics.rs:3426 (mesh_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:3483 (emulated_draw)` - `feature::IntersectionFunctionTable`: `crates/metal2vulkan/src/bind/acceleration.rs:177 (geometry_table_offset)`; `crates/metal2vulkan/src/bind/acceleration.rs:183 (geometry_table_offset)`; `crates/metal2vulkan/src/bind/acceleration.rs:188 (geometry_table_offset)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1222 (null_table)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1251 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1272 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:406 (table_of)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:422 (select_table)`; `crates/metal2vulkan/src/lower/select.rs:885 (route_air)` -- `feature::IndependentBlending`: `crates/metal2vulkan-runtime/src/render.rs:2193 (check_pipeline)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:1005 (uniform_blend)` +- `feature::IndependentBlending`: `crates/metal2vulkan-runtime/src/render.rs:2199 (check_pipeline)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:1005 (uniform_blend)` - `feature::RasterSampleCount`: `crates/metal2vulkan-runtime/src/families/limits.rs:1063 (sample_count)`; `crates/metal2vulkan/src/pipeline/graphics.rs:563 (sample_count_properties)` - `feature::TriangleFillLines`: `crates/metal2vulkan/src/metal/state.rs:347 (polygon_mode)` - `feature::DepthClipClamp`: `crates/metal2vulkan/src/metal/state.rs:363 (depth_clamp_enable)` @@ -394,7 +394,7 @@ Each refusal's sites, with the function that builds it. - `feature::TextureSwizzle`: `crates/metal2vulkan-runtime/src/binding_view.rs:167 (binding_view)`; `crates/metal2vulkan-runtime/src/texture.rs:999 (may_view)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1102 (plain_texture)`; `crates/metal2vulkan/src/lower/sampler/select.rs:2587 (select_one)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3415 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3762 (select_write)`; `crates/metal2vulkan/src/lower/texture/slice.rs:307 (select)` - `feature::MipmapGeneration`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1890 (mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_pick.rs:37 (pick_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:262 (plan_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:270 (plan_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:275 (plan_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:304 (plan_mipmaps)`; `crates/metal2vulkan/src/bind/mipmap_filter.rs:973 (mipmap_filter_module)` - `feature::HostMemory`: `crates/metal2vulkan-runtime/src/host_memory.rs:430 (not_importable)`; `crates/metal2vulkan-runtime/src/host_memory.rs:470 (refuse_unwritable)`; `crates/metal2vulkan-runtime/src/host_memory.rs:689 (new)`; `crates/metal2vulkan-runtime/src/host_memory.rs:694 (new)`; `crates/metal2vulkan-runtime/src/host_memory.rs:712 (new)` -- `feature::GpuTimes`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2921 (gpu_times)` +- `feature::GpuTimes`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2930 (gpu_times)` - `feature::CountingVisibility`: `crates/metal2vulkan-runtime/src/visibility.rs:452 (check_mode)` - `feature::ViewFormatReinterpretation`: `crates/metal2vulkan-runtime/src/view_plan.rs:573 (reinterpretation_refused)` - `feature::SeparateMultisampledDepthStencil`: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:188 (sampled_candidate)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:294 (by_draws)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:336 (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:376 (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:777 (plan)`; `crates/metal2vulkan-runtime/src/nan_clear.rs:658 (nan_write)`; `crates/metal2vulkan-runtime/src/texture/signed_depth.rs:191 (sample_strip)` @@ -425,14 +425,14 @@ Each refusal's sites, with the function that builds it. - `gap::HeapTextureMemory`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1512 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1519 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2061 (host_heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2293 (memory_shadow)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:556 (memory_refusal)` - `gap::FunctionTablePastMaxBufferLength`: `crates/metal2vulkan-runtime/src/function_table.rs:622 (past_limit)` - `gap::IndirectCommandBufferPastMaxBufferLength`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:523 (new_indirect_command_buffer)` -- `gap::IndirectRenderCommands`: `crates/metal2vulkan-runtime/src/compute.rs:1317 (execute_range)`; `crates/metal2vulkan-runtime/src/compute.rs:1402 (execute_indirect_range)`; `crates/metal2vulkan-runtime/src/depth_stencil.rs:85 (gpu_resource_id)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:4459 (render_state)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:518 (new_indirect_command_buffer)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1632 (compile_error)`; `crates/metal2vulkan-runtime/src/render.rs:7271 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7855 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:8313 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:8867 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/executions.rs:1127 (back_memoryless)`; `crates/metal2vulkan-runtime/src/render/executions.rs:2942 (record_forms)`; `crates/metal2vulkan-runtime/src/render/executions.rs:393 (execute_range)`; `crates/metal2vulkan-runtime/src/render/executions.rs:461 (execute_indirect_range)`; `crates/metal2vulkan-runtime/src/render/executions.rs:476 (execute_indirect_range)` +- `gap::IndirectRenderCommands`: `crates/metal2vulkan-runtime/src/compute.rs:1317 (execute_range)`; `crates/metal2vulkan-runtime/src/compute.rs:1402 (execute_indirect_range)`; `crates/metal2vulkan-runtime/src/depth_stencil.rs:85 (gpu_resource_id)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:4459 (render_state)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:518 (new_indirect_command_buffer)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1632 (compile_error)`; `crates/metal2vulkan-runtime/src/render.rs:7292 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7876 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:8334 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:8888 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/executions.rs:1127 (back_memoryless)`; `crates/metal2vulkan-runtime/src/render/executions.rs:2942 (record_forms)`; `crates/metal2vulkan-runtime/src/render/executions.rs:393 (execute_range)`; `crates/metal2vulkan-runtime/src/render/executions.rs:461 (execute_indirect_range)`; `crates/metal2vulkan-runtime/src/render/executions.rs:476 (execute_indirect_range)` - `gap::IndirectImageblockSize`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:3434 (set_imageblock_size)` - `gap::CommandReplay`: `crates/metal2vulkan-runtime/src/binding.rs:723 (bind_into)`; `crates/metal2vulkan-runtime/src/binding.rs:726 (bind_into)` - `gap::RenderAttachments`: `crates/metal2vulkan-runtime/src/binding.rs:1794 (unexpected)` - `gap::AccelerationStructures`: `crates/metal2vulkan-runtime/src/binding.rs:1797 (unexpected)` - `gap::FeatureEnable`: `crates/metal2vulkan-runtime/src/enables.rs:1166 (of)` - `gap::ExtensionEnable`: `crates/metal2vulkan-runtime/src/enables.rs:1157 (of)` -- `gap::Render`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:404 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:461 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:685 (check_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:808 (attachment_twin)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:283 (check_sizes)`; `crates/metal2vulkan-runtime/src/kept_bytes.rs:138 (settle)`; `crates/metal2vulkan-runtime/src/linear_attachment.rs:293 (settle)`; `crates/metal2vulkan-runtime/src/nan_clear.rs:204 (plan)`; `crates/metal2vulkan-runtime/src/pipeline/render.rs:1169 (imageblock_sample_length)`; `crates/metal2vulkan-runtime/src/render.rs:2243 (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs:5977 (next_instance)`; `crates/metal2vulkan-runtime/src/render.rs:7949 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:516 (scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1317 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1679 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1733 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1794 (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs:2027 (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs:1039 (attach)`; `crates/metal2vulkan-runtime/src/resolve.rs:1107 (color_copy)`; `crates/metal2vulkan-runtime/src/resolve.rs:1154 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1171 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1236 (destination)` +- `gap::Render`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:404 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:461 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:685 (check_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:808 (attachment_twin)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:283 (check_sizes)`; `crates/metal2vulkan-runtime/src/kept_bytes.rs:138 (settle)`; `crates/metal2vulkan-runtime/src/linear_attachment.rs:293 (settle)`; `crates/metal2vulkan-runtime/src/nan_clear.rs:204 (plan)`; `crates/metal2vulkan-runtime/src/pipeline/render.rs:1169 (imageblock_sample_length)`; `crates/metal2vulkan-runtime/src/render.rs:2249 (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs:5998 (next_instance)`; `crates/metal2vulkan-runtime/src/render.rs:7970 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:516 (scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1317 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1679 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1733 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1794 (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs:2027 (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs:1039 (attach)`; `crates/metal2vulkan-runtime/src/resolve.rs:1107 (color_copy)`; `crates/metal2vulkan-runtime/src/resolve.rs:1154 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1171 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1236 (destination)` - `gap::TexelsPastBufferLength`: `crates/metal2vulkan-runtime/src/buffer_texture.rs:261 (refusal_error)`; `crates/metal2vulkan-runtime/src/texture/surface_depth.rs:105 (surface_depth_twin)` - `gap::OverlappingSurfaceRows`: `crates/metal2vulkan-runtime/src/buffer_texture.rs:263 (refusal_error)` - `gap::SamplePositionsAtBegin`: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:145 (stencil_scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1864 (positioned_stand_in)`; `crates/metal2vulkan-runtime/src/sample_positions.rs:185 (grid)` @@ -440,12 +440,12 @@ Each refusal's sites, with the function that builds it. - `gap::ViewportDepthRange`: `crates/metal2vulkan-runtime/src/render/draw_shape.rs:341 (settings)`; `crates/metal2vulkan-runtime/src/render_state.rs:1053`; `crates/metal2vulkan-runtime/src/render_state.rs:1222 (depth_ranges_refused)`; `crates/metal2vulkan-runtime/src/render_state.rs:1589 (bias_holds)`; `crates/metal2vulkan-runtime/src/render_state.rs:1608 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:541 (depth_range)`; `crates/metal2vulkan-runtime/src/render_state.rs:769 (compensation)` - `gap::NonFiniteDepthBias`: `crates/metal2vulkan-runtime/src/render_state.rs:1617 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:1620 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:379 (set_depth_bias)`; `crates/metal2vulkan-runtime/src/render_state.rs:477 (draw_viewports)`; `crates/metal2vulkan-runtime/src/render_state.rs:619 (compensation)` - `gap::DepthNeverWithoutAttachment`: `crates/metal2vulkan-runtime/src/depth_stencil.rs:147 (failing_draw)` -- `gap::HiddenDepthStencil`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:564 (hidden)`; `crates/metal2vulkan-runtime/src/render.rs:6654 (hidden_depth_stencil)` -- `gap::IndirectDrawArguments`: `crates/metal2vulkan-runtime/src/index_bounds.rs:102 (new)`; `crates/metal2vulkan-runtime/src/render.rs:3322 (draw_indexed_primitives_indirect)`; `crates/metal2vulkan-runtime/src/render.rs:7600 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7737 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7768 (draw_resident)` +- `gap::HiddenDepthStencil`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:564 (hidden)`; `crates/metal2vulkan-runtime/src/render.rs:6675 (hidden_depth_stencil)` +- `gap::IndirectDrawArguments`: `crates/metal2vulkan-runtime/src/index_bounds.rs:102 (new)`; `crates/metal2vulkan-runtime/src/render.rs:3328 (draw_indexed_primitives_indirect)`; `crates/metal2vulkan-runtime/src/render.rs:7621 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7758 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7789 (draw_resident)` - `gap::DepthStencilResolve`: `crates/metal2vulkan-runtime/src/depth_stencil_resolve.rs:441 (draws_run)`; `crates/metal2vulkan-runtime/src/resolve.rs:1392 (plan)`; `crates/metal2vulkan-runtime/src/resolve.rs:791 (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs:889 (steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:909 (steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:950 (split_steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:962 (split_steps)` - `gap::TileAtSampleCount`: `crates/metal2vulkan-runtime/src/render_pass.rs:1614 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:937` -- `gap::ImageblockMasters`: `crates/metal2vulkan-runtime/src/render.rs:7425 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:929 (dispatch_tiles_resident)` -- `gap::TileAndFragmentImageblocks`: `crates/metal2vulkan-runtime/src/render.rs:7417 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:796 (dispatch_tiles_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:921 (dispatch_tiles_resident)` +- `gap::ImageblockMasters`: `crates/metal2vulkan-runtime/src/render.rs:7446 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:929 (dispatch_tiles_resident)` +- `gap::TileAndFragmentImageblocks`: `crates/metal2vulkan-runtime/src/render.rs:7438 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:796 (dispatch_tiles_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:921 (dispatch_tiles_resident)` - `gap::Metal4Api`: `crates/metal2vulkan-runtime/src/families/features.rs:1487 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1026 (state)`; `crates/metal2vulkan-runtime/src/families/mod.rs:362 (audit)` - `gap::CounterSampleBuffers`: `crates/metal2vulkan-runtime/src/families/limits.rs:1017 (state)` - `gap::ResidencySets`: `crates/metal2vulkan-runtime/src/families/features.rs:1469 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1019 (state)` @@ -457,7 +457,7 @@ Each refusal's sites, with the function that builds it. - `gap::ShaderValidation`: `crates/metal2vulkan-runtime/src/families/features.rs:1467 (state)` - `gap::ShaderLogging`: `crates/metal2vulkan-runtime/src/families/features.rs:1468 (state)` - `gap::DeviceNotifications`: `crates/metal2vulkan-runtime/src/families/features.rs:1472 (state)` -- `gap::RateMapRegions`: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs:396 (refusal)` +- `gap::RateMapRegions`: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs:479 (refusal)` - `gap::LayeredPass`: `crates/metal2vulkan-runtime/src/color_resolve.rs:928 (plan)` - `gap::FunctionOptions`: `crates/metal2vulkan-runtime/src/library.rs:215 (new_function_with_descriptor)` - `gap::OverlappingTextureCopies`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1340 (texture_copies_of_bytes)` @@ -469,9 +469,9 @@ Each refusal's sites, with the function that builds it. - `gap::MappedTextureSampling`: `crates/metal2vulkan-runtime/src/address_map.rs:158 (resolve)` - `gap::LibrarySource`: `crates/metal2vulkan-runtime/src/library.rs:107 (new_library_with_source)` - `gap::RestartedStrip`: `crates/metal2vulkan-runtime/src/render/restart.rs:71 (gap)` -- `gap::PrivatePrimitives`: `crates/metal2vulkan-runtime/src/render.rs:8150 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/restart.rs:72 (gap)` +- `gap::PrivatePrimitives`: `crates/metal2vulkan-runtime/src/render.rs:8171 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/restart.rs:72 (gap)` - `gap::ProvokingVertex`: `crates/metal2vulkan-runtime/src/render/restart.rs:73 (gap)` -- `gap::PrimitiveIdIndices`: `crates/metal2vulkan-runtime/src/render.rs:8161 (draw_resident)` +- `gap::PrimitiveIdIndices`: `crates/metal2vulkan-runtime/src/render.rs:8182 (draw_resident)` - `gap::RotatedTexture`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1669 (texel_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:727 (turned_plane)`; `crates/metal2vulkan-runtime/src/rotated.rs:185 (new)`; `crates/metal2vulkan-runtime/src/rotated.rs:201 (new)`; `crates/metal2vulkan-runtime/src/shadow.rs:667 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:5156 (view)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs:100 (check_rotated_reach)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs:322 (copied_image)`; `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs:238 (new_usage_shadow)` - `gap::DetachTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:641 (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:634 (make_texture_over)`; `crates/metal2vulkan-runtime/src/detach.rs:172 (detach_host_pages)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2952 (heap_texture_at)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:143 (new_stand_in)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:248 (stand_in_while_detached)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:298 (stand_ins)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:304 (stand_ins)` - `gap::TextureBufferLevels`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:540 (check_made)` @@ -481,7 +481,7 @@ Each refusal's sites, with the function that builds it. - `gap::MultisampledBufferCopy`: `crates/metal2vulkan-runtime/src/blit_texture.rs:536 (copy_from_buffer_to_texture)`; `crates/metal2vulkan-runtime/src/blit_texture.rs:693 (copy_from_texture_to_buffer)` - `gap::MultisampledBufferLayout`: `crates/metal2vulkan-runtime/src/sample_interleave.rs:1029 (plan)` - `gap::ColorAttachmentGroups`: `crates/metal2vulkan-runtime/src/render/color_groups.rs:106 (gap)` -- `apple::ProtectedContent`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2452 (commit_now)`; `crates/metal2vulkan-runtime/src/command_buffer/protection.rs:126 (refuse_protected_state_encoder)`; `crates/metal2vulkan-runtime/src/command_buffer/protection.rs:52 (set)` +- `apple::ProtectedContent`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:2461 (commit_now)`; `crates/metal2vulkan-runtime/src/command_buffer/protection.rs:126 (refuse_protected_state_encoder)`; `crates/metal2vulkan-runtime/src/command_buffer/protection.rs:52 (set)` - `apple::LineWidth`: `crates/metal2vulkan-runtime/src/apple_only.rs:190 (check)` - `apple::ViewportTransformDisabled`: `crates/metal2vulkan-runtime/src/apple_only.rs:192 (check)` - `apple::VertexAmplificationMode`: `crates/metal2vulkan-runtime/src/apple_only.rs:196 (check)`; `crates/metal2vulkan-runtime/src/apple_only.rs:321 (set_vertex_amplification_mode)`