Fail a faulted command buffer from its encoder on, at Metal's fault timing

The steps this packet landed as, in order:
- Run an executed command's mesh draw with the object threadgroup lengths it set
- Expect the untiled heap layout notice in the ID lanes where images lie in the driver's layout

Content: the tree of `development` at df4df1719c, unchanged.
This commit is contained in:
Anees Iqbal committed 2026-10-26 13:19:06 +02:00
1 parent 245f432e2e
commit 97d01927cb
22 files changed
+870 -267

No files matched your search

+2 -1
View File
@@ -241,7 +241,8 @@ Calls Metal does not have, for a consumer that emulates a Metal device:
`[[primitive_id]]` a quad, as Metal does, where the list draws two triangles. Its `Nine`, value
9, draws nothing and fails the command buffer as Metal's GPU does: a hang
(`CommandBufferError::GpuHang`), a page fault or a victim of the GPU's recovery
(`GpuRecoveryVictim`), by the draw's form (docs/API.md, "Accepted differences", for the timing);
(`GpuRecoveryVictim`), by the draw's form, running nothing from its encoder on (docs/API.md,
"Accepted differences", for the timing and the race over the encoders after a fault);
a queue's second hang or page fault revokes it, as Metal's does: its later command buffers fail
at their commit (`AccessRevoked`).
- `TextureDescriptor::address_mode_map` presents a texture as sampling by other address modes than
@@ -1327,9 +1327,12 @@ impl ArgumentTable {
sampler(index)
);
}
// A table read whole binds nothing else (`stage_table` starts from the empty table).
// A table read whole binds nothing else (`stage_table` starts from the empty table), but
// for the object stage's threadgroup lengths, the encoder's, which the draw writes into
// the kept table after the read (`RenderLowering::refresh_bind_state`).
let lengths = stage != Stage::Object && !kept.threadgroup_lengths.is_empty();
assert!(
kept.threadgroup_lengths.is_empty() && kept.acceleration_structures.is_empty(),
!lengths && kept.acceleration_structures.is_empty(),
"{DIFFERS}: {stage:?} keeps threadgroup lengths {:?} and acceleration structures {:?}, \
where the table read whole has none",
kept.threadgroup_lengths,
@@ -16,6 +16,25 @@
//! and nothing of the others run. One whose event wait was met only after the hang completed
//! ran, as did one of another queue and one committed after.
//!
//! A command buffer Metal's GPU faults at holds the same way, its timing and its queue's others
//! apart ([`Held::Fault`]): an indexed draw of type 9 (`CommandBufferError::PageFault`), an
//! indirect one (failed as a victim of the GPU's recovery, `GpuRecoveryVictim`), and a render
//! encoder's execution of indirect commands under a state that cannot inherit (`PageFault`), each
//! through `State::fault`. Measured on the M3 Max (macOS 27.0.1, 164 faulting command buffers on
//! fresh queues, 44 of them such executions): Metal completed it 6.86 to 10.3 ms after it read
//! `Scheduled`, which came as any command buffer's (0.5 to 1.5 ms after its commit, 6 to 12 ms
//! on a GPU idle before); the queue's command buffers committed meanwhile read `Scheduled` as
//! they were committed, ran, and completed after it. The encoders after the faulting one were
//! lost to the GPU's recovery where the GPU ran just before (127 of 142; every one of 34 right
//! after a hang), ran where it was idle before (the first fault after 3 s idle), and in some
//! shapes ran in part (an encoder after an event signal, a command buffer committed right
//! after); its event signals fired, 164 of 164.
//! The runtime answers the steady state: the faulting encoder and every one after it run nothing,
//! every event signal fires (`Failure::with_faults`); it reads `Scheduled` once its batch before
//! the hold is taken, and its wait goes [`FAULT_FROM_REACHED`] after that and the GPU reached the
//! encoder; the queue's command buffers committed meanwhile join its list, read `Scheduled`
//! early ([`holding`]), and run.
//!
//! - **The hold.** The hanging encoder's end signals an event of the hang's own to 1 after the
//! encoder, and adds the runtime's own wait ([`Batches::hold`]) for 2 after that, so what
//! follows it in the command buffer (its later event signals, its completion) waits; its commit
@@ -30,8 +49,9 @@
//! - **In flight** from its commit until its work signalled 3, the queue counting it
//! (`CommandQueue::hangs`): a thread of the hang's own makes it `Scheduled`, waits for 1 (the
//! GPU reached the hang), makes the queue's command buffers committed meanwhile `Scheduled`
//! (below) until it lets the wait go ([`FROM_COMMIT`] after the commit, and [`FROM_REACHED`]
//! after reaching it, the earliest Metal failed one), waits for 3, and only then stops counting
//! (below) until it lets the wait go ([`FROM_REACHED`] after it read `Scheduled` and the GPU
//! reached the hang, the later of the two: the earliest Metal failed one after it read
//! `Scheduled`), waits for 3, and only then stops counting
//! it, inside a trail (`trails.rs`): a waiter of the command buffer returns once the queue no
//! longer counts it. A command buffer that does not run its hang (its commit refused, a commit
//! failure that fails the encoder or drops its signals, or itself discarded at its commit) sets
@@ -73,14 +93,14 @@ use std::time::{Duration, Instant};
/// nothing of what it scheduled meanwhile (the module docs).
pub(super) const SCHEDULED: Duration = Duration::from_micros(5_060);
/// The earliest after its commit that Metal failed a command buffer its GPU hung at: 32.7 ms
/// (the module docs).
pub(super) const FROM_COMMIT: Duration = Duration::from_micros(32_700);
/// The earliest after it read `Scheduled` that Metal failed a command buffer its GPU hung at:
/// 27.5 ms (the module docs).
pub(super) const FROM_REACHED: Duration = Duration::from_micros(27_500);
/// The earliest after it read `Scheduled` that Metal completed a command buffer its GPU faulted
/// at, or failed as a victim of the GPU's recovery: 6.86 ms (the module docs).
pub(super) const FAULT_FROM_REACHED: Duration = Duration::from_micros(6_860);
/// How long the hang's thread waits for a signal of the GPU's (1 or 3) before it goes on as if it
/// came: a device that lost its work never signals.
const SIGNAL_BOUND: Duration = Duration::from_secs(10);
@@ -91,6 +111,9 @@ const SIGNAL_BOUND: Duration = Duration::from_secs(10);
#[derive(Default)]
pub(crate) struct QueueHangs {
in_flight: AtomicUsize,
/// Its faults' holds in flight (the module docs): the queue's command buffers committed
/// meanwhile read `Scheduled` early, and run.
holding: AtomicUsize,
behind: Mutex<Vec<Behind>>,
early: Mutex<Early>,
/// Signaled as a command buffer joins `early`.
@@ -142,6 +165,14 @@ impl Verdict {
}
impl QueueHangs {
/// The count of holds in flight of `held`'s kind.
fn counter(&self, held: Held) -> &AtomicUsize {
match held {
Held::Hang => &self.in_flight,
Held::Fault => &self.holding,
}
}
/// Until `until`, make the command buffers that joined [`Early`] under hang `hang`
/// `Scheduled`, in their order, each once its event waits are met (the module docs). One
/// whose waits are not met by then, and every one after it, read `Scheduled` with their last
@@ -198,17 +229,49 @@ impl QueueHangs {
}
}
/// A hanging command buffer's hold: the event of its signals and its wait.
/// What a command buffer's hold holds for (the module docs).
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub(super) enum Held {
/// Metal's GPU hangs at its encoder (`CommandBufferError::GpuHang`).
Hang,
/// Metal's GPU faults at its encoder, or fails it as a victim of its recovery
/// (`CommandBufferError::PageFault`, `GpuRecoveryVictim`).
Fault,
}
impl Held {
/// When after its commit the command buffer reads `Scheduled` at the earliest.
fn scheduled(self) -> Duration {
match self {
Held::Hang => SCHEDULED,
Held::Fault => Duration::ZERO,
}
}
/// How long after it read `Scheduled` and the GPU reached the encoder its wait goes.
fn from_reached(self) -> Duration {
match self {
Held::Hang => FROM_REACHED,
Held::Fault => FAULT_FROM_REACHED,
}
}
}
/// A hanging or faulting command buffer's hold: the event of its signals and its wait.
pub(super) struct Hang {
event: SharedEvent,
/// The batch its signal of [`Hang::REACHED`] ends: the last before its wait.
batch: usize,
/// The ended encoder it holds after, the one Metal's GPU hangs or faults at.
encoder: usize,
held: Held,
}
/// A command buffer's transition to `Scheduled` around a hang of its queue (the module docs).
pub(super) enum Scheduling {
/// The hang's own: its thread makes it [`SCHEDULED`] after the commit, once the batch before
/// its wait (`batch`, [`Hang::batch`]) was taken, submitted or held in a group (`group.rs`).
/// The hold's own: its thread makes it once the batch before its wait (`batch`,
/// [`Hang::batch`]) was taken, submitted or held in a group (`group.rs`), a hang's no sooner
/// than [`SCHEDULED`] after the commit.
Hang { batch: usize, taken: bool },
/// One committed while a hang of its queue was in flight: the hang's thread makes it early,
/// or its last batch does, whichever comes first.
@@ -223,15 +286,26 @@ impl Hang {
/// The value its signal after all its work sets.
pub(super) const DONE: u64 = 3;
/// A hold of `device`, its event at 0, whose signal of [`Hang::REACHED`] ends batch
/// `batch`.
pub(super) fn new(device: &Device, batch: usize) -> Result<Hang, Error> {
/// A hold of `device` for `held`, its event at 0, whose signal of [`Hang::REACHED`] ends
/// batch `batch`, after ended encoder `encoder`.
pub(super) fn new(
device: &Device,
(batch, encoder): (usize, usize),
held: Held,
) -> Result<Hang, Error> {
Ok(Hang {
event: device.new_shared_event()?,
batch,
encoder,
held,
})
}
/// The ended encoder it holds after.
pub(super) fn encoder(&self) -> usize {
self.encoder
}
/// The event of its signals and its wait.
pub(super) fn event(&self) -> &SharedEvent {
&self.event
@@ -242,15 +316,16 @@ impl Hang {
self.event.set_signaled_value(Hang::DONE);
}
/// The command buffer `buffer`, of state `state`, committed at `committed`, runs its hang:
/// its queue counts it until its work signalled [`Hang::DONE`]; it reads `Scheduled`
/// [`SCHEDULED`] after the commit, or later once the batch before its wait was taken
/// ([`Scheduling::Hang`]), and the queue's command buffers committed meanwhile follow
/// ([`QueueHangs::schedule_early`]); its wait goes [`FROM_COMMIT`] after the commit and
/// [`FROM_REACHED`] after the GPU reached the hang. One with a switch of storage forms riding
/// on its commit, which settles by its last batch's submission, reads `Scheduled` with that
/// batch, as do the queue's others. Where no thread can be made for that, the wait goes at
/// once, the queue not counting it.
/// The command buffer `buffer`, of state `state`, committed at `committed`, runs its hold:
/// its queue counts it until its work signalled [`Hang::DONE`] (a hang's among those that
/// discard the queue's others, a fault's among those that do not); it reads `Scheduled`
/// [`SCHEDULED`] after the commit (a hang's) or at once (a fault's), or later once the batch
/// before its wait was taken ([`Scheduling::Hang`]), and the queue's command buffers committed
/// meanwhile follow ([`QueueHangs::schedule_early`]); its wait goes [`FROM_REACHED`] (a
/// hang's) or [`FAULT_FROM_REACHED`] (a fault's) after it read `Scheduled` and the GPU reached
/// the encoder. One with a switch of storage forms riding on its commit, which settles by its
/// last batch's submission, reads `Scheduled` with that batch, as do the queue's others. Where
/// no thread can be made for that, the wait goes at once, the queue not counting it.
pub(super) fn start(
self,
buffer: &Arc<CommandBufferShared>,
@@ -260,7 +335,8 @@ impl Hang {
let queue = &buffer.queue;
let hangs = Arc::clone(queue.hangs());
let trails = Arc::clone(&queue.device().shared().trails);
hangs.in_flight.fetch_add(1, Ordering::SeqCst);
let held = self.held;
hangs.counter(held).fetch_add(1, Ordering::SeqCst);
let hang = {
let mut early = lock(&hangs.early);
early.hang += 1;
@@ -276,29 +352,33 @@ impl Hang {
let event = self.event.clone();
let builder = std::thread::Builder::new().name("metal2vulkan-hang".to_owned());
let ended = crate::exit_guard::spawn(builder, move || {
sleep_until(committed + SCHEDULED);
sleep_until(committed + held.scheduled());
let scheduled = hang_scheduled(weak);
event.wait_until_signaled_value(Hang::REACHED, SIGNAL_BOUND);
let release = (committed + FROM_COMMIT).max(Instant::now() + FROM_REACHED);
let release = Instant::now() + held.from_reached();
match scheduled {
true => hangs.schedule_early(hang, release),
false => sleep_until(release),
}
let trail = trails.open();
hangs.decide();
if held == Held::Hang {
hangs.decide();
}
event.set_signaled_value(Hang::RELEASED);
event.wait_until_signaled_value(Hang::DONE, SIGNAL_BOUND);
lock(&hangs.early).joined.clear();
hangs.in_flight.fetch_sub(1, Ordering::SeqCst);
hangs.counter(held).fetch_sub(1, Ordering::SeqCst);
drop(event);
drop(hangs);
drop(trail);
});
if ended.is_err() {
state.hang_scheduling = None;
queue.hangs().decide();
if held == Held::Hang {
queue.hangs().decide();
}
lock(&queue.hangs().early).joined.clear();
queue.hangs().in_flight.fetch_sub(1, Ordering::SeqCst);
queue.hangs().counter(held).fetch_sub(1, Ordering::SeqCst);
self.event.set_signaled_value(Hang::DONE);
}
}
@@ -315,7 +395,8 @@ fn sleep_until(until: Instant) {
/// read `Scheduled` ([`Scheduling::Hang`]): it does once the batch before its wait was taken, its
/// submission handlers first on this thread. Where that batch is not taken within
/// [`SIGNAL_BOUND`] (an event wait before the hang not met), its last batch makes it instead, and
/// none where the command buffer failed meanwhile. Whether it was made here.
/// none where a batch of it could not be submitted (`CommandBufferShared::failed`). Whether it was
/// made here.
fn hang_scheduled(buffer: Weak<CommandBufferShared>) -> bool {
let Some(buffer) = buffer.upgrade() else {
return false;
@@ -332,7 +413,7 @@ fn hang_scheduled(buffer: Weak<CommandBufferShared>) -> bool {
break Some(handlers);
}
Some(Scheduling::Hang { taken: false, .. })
if !left.is_zero() && !exit_guard::closed() && state.failure.is_none() => {}
if !left.is_zero() && !exit_guard::closed() => {}
Some(Scheduling::Hang { taken: false, .. }) => {
state.hang_scheduling = None;
break None;
@@ -458,6 +539,12 @@ pub(super) fn in_flight(queue: &CommandQueue) -> bool {
queue.hangs().in_flight.load(Ordering::SeqCst) > 0
}
/// Whether a fault's hold of `queue` is in flight (the module docs): a command buffer committed
/// on it now reads `Scheduled` early, and runs.
pub(super) fn holding(queue: &CommandQueue) -> bool {
queue.hangs().holding.load(Ordering::SeqCst) > 0
}
/// The verdict of a command buffer committed on `queue` with the event waits `waits` gives,
/// listed for the hang's decision where a hang of the queue is in flight; `None` where none is
/// (the module docs).
@@ -106,7 +106,7 @@ use checks::{Checks, SubmissionCheck};
use completion::Submitted;
use first_submission::{Listing, Live};
use gate::{Gate, Hold};
use hang::Hang;
use hang::{Hang, Held};
use metal2vulkan::bind::{
ExecutionStatus, IndexBoundsPass, ReplayFaults, ResidentRange, ResidentSet, RootTable,
StatusReport,
@@ -406,43 +406,35 @@ impl Failure {
}
/// `failure` (`Failure::of`'s) with the encoders Metal's GPU faults, `faulted`, each with
/// its error, of a command buffer of `ended` ended encoders: they run nothing too, and, where
/// nothing else fails it, the command buffer completes with the first faulted encoder's error
/// (`CommandBufferError::PageFault`, or `GpuRecoveryVictim`) and every event signal fires, as
/// Metal's does. Where something else fails it too, its error and its signals stand (Metal's
/// error there is not measured).
/// its error, of a command buffer of `ended` ended encoders: from the first faulted encoder on
/// they run nothing too, as Metal's GPU's recovery loses them on a GPU that ran just before
/// (`hang.rs`, the fault's hold), and, where nothing else fails it, the command buffer
/// completes with that encoder's error (`CommandBufferError::PageFault`, or
/// `GpuRecoveryVictim`) and every event signal fires, as Metal's does. Where something else
/// fails it too, its error and its signals stand (Metal's error there is not measured).
pub(super) fn with_faults(
failure: Option<Failure>,
faulted: &BTreeMap<usize, CommandBufferError>,
ended: usize,
) -> Option<Failure> {
let Some(&faulted_error) = faulted.values().next() else {
let Some((&first, &faulted_error)) = faulted.iter().next() else {
return failure;
};
let faulted: BTreeSet<usize> = faulted.keys().copied().collect();
Some(match failure {
None => Failure {
encoders: FailedEncoders::Set(faulted),
encoders: FailedEncoders::From(first),
signals: FailedSignals::Every,
error: Some(faulted_error),
},
Some(failure) => Failure {
// Under a failure of no error, a faulted encoder it lets run faults it.
error: failure.error.or_else(|| {
faulted
.iter()
.any(|&encoder| !failure.encoders.fails(encoder))
.then_some(faulted_error)
}),
error: failure
.error
.or_else(|| (!failure.encoders.fails(first)).then_some(faulted_error)),
encoders: match failure.encoders {
FailedEncoders::From(first) if faulted.iter().all(|&e| e >= first) => {
FailedEncoders::From(first)
}
FailedEncoders::From(first) => {
FailedEncoders::Set(faulted.iter().copied().chain(first..ended).collect())
}
FailedEncoders::From(from) => FailedEncoders::From(from.min(first)),
FailedEncoders::Set(mut set) => {
set.extend(faulted);
set.extend(first..ended);
FailedEncoders::Set(set)
}
},
@@ -1220,28 +1212,50 @@ impl State {
again
}
/// Metal's GPU faults ended encoder `encoder`, failing the command buffer with `error`
/// (`faulted`).
pub(super) fn fault(&mut self, encoder: usize, error: CommandBufferError) {
/// Metal's GPU faults ended encoder `encoder`, failing the command buffer with `error` from
/// it on (`faulted`, `Failure::with_faults`); where nothing failed it from an earlier encoder
/// and no earlier encoder faulted, the work before the encoder signals the fault's hold and
/// what follows waits for it (`hang.rs`), so the command buffer completes when Metal's does.
pub(super) fn fault(
&mut self,
encoder: usize,
error: CommandBufferError,
device: &Device,
) -> Result<(), Error> {
if self.fails_from.is_none() && self.hang.is_none() {
self.hold(device, encoder, Held::Fault)?;
}
self.faulted.entry(encoder).or_insert(error);
Ok(())
}
/// Ended encoder `encoder` drew primitive type 9 directly, at which Metal's GPU hangs
/// (`hang.rs`): the command buffer fails from it on with `CommandBufferError::GpuHang`, and,
/// where nothing failed it from an earlier encoder, the work before the encoder signals the
/// hang's event and what follows waits for the hang's hold.
/// hang's event and what follows waits for the hang's hold. Where an earlier encoder faulted,
/// the GPU never reaches it: it fails from the fault (`State::fault`).
pub(super) fn hang_from(&mut self, encoder: usize, device: &Device) -> Result<(), Error> {
if !self.faulted.is_empty() {
return Ok(());
}
if self.fails_from.is_none() && self.hang.is_none() {
let hang = Hang::new(device, self.batches.all().len() - 1)?;
let event = || Arc::clone(EventRef::Shared(hang.event()).shared());
self.batches.hold_signal(event(), Hang::REACHED);
self.batches.hold(event(), Hang::RELEASED);
self.hang = Some(hang);
self.hold(device, encoder, Held::Hang)?;
}
self.fail_from(encoder, CommandBufferError::GpuHang);
Ok(())
}
/// Hold what follows ended encoder `encoder`, the last, of the hold `held`: its batch signals
/// the hold's event, and the next batch waits for its release (`hang.rs`).
fn hold(&mut self, device: &Device, encoder: usize, held: Held) -> Result<(), Error> {
let hang = Hang::new(device, (self.batches.all().len() - 1, encoder), held)?;
let event = || Arc::clone(EventRef::Shared(hang.event()).shared());
self.batches.hold_signal(event(), Hang::REACHED);
self.batches.hold(event(), Hang::RELEASED);
self.hang = Some(hang);
Ok(())
}
/// The holds of what its commands took that batch `index`'s work lets go as it completes
/// (`State::submitted_holds`), for its submission to carry (`completion::Submitted`).
pub(super) fn holds_until(&mut self, index: usize) -> Vec<SubmittedHolds> {
@@ -2401,13 +2415,30 @@ impl CommandBuffer {
true => hang::behind(&self.0.queue, &waits),
false => None,
};
if joins || state.behind_hang.is_some() {
// One committed while a fault's hold of the queue is in flight runs, and reads
// `Scheduled` early, from the fault's on, once its waits are met.
let joins_hold = !joins
&& !behind
&& run != CommitRun::Refused
&& !revoked
&& hang::holding(&self.0.queue);
let waits = match joins_hold {
true => (state.batches.all().iter())
.flat_map(|batch| batch.waits.iter().cloned())
.collect(),
false => waits,
};
if joins || joins_hold || state.behind_hang.is_some() {
hang::join(&self.0, &mut state, waits);
}
// Its hold runs where its encoder runs and its signals fire under what it was
// committed as.
let hangs = run != CommitRun::Refused
&& !revoked
&& matches!(state.fails_from, Some((at, CommandBufferError::GpuHang))
if failure.as_ref().is_none_or(|f| f.signals && !f.encoders.fails(at)));
&& state.hang.as_ref().is_some_and(|hang| {
(failure.as_ref())
.is_none_or(|f| f.signals && !f.encoders.fails(hang.encoder()))
});
if let (true, Some(hang)) = (hangs, &state.hang) {
let event = Arc::clone(EventRef::Shared(hang.event()).shared());
state.batches.hold_signal(event, Hang::DONE);
@@ -3831,7 +3862,18 @@ impl CommandBufferShared {
/// it behind its GPU hang (`hang.rs`), which then fails from `Scheduled`.
pub(crate) fn failed(self: &Arc<Self>, error: CommandBufferError, values: &[u64]) {
let vk_queue = self.queue.vk_queue();
lock(&self.state).failure = Some(error);
{
let mut state = lock(&self.state);
state.failure = Some(error);
// Its hold's batch before the wait, not taken yet, never is (`hang.rs`).
if matches!(
state.hang_scheduling,
Some(hang::Scheduling::Hang { taken: false, .. })
) {
state.hang_scheduling = None;
self.changed.notify_all();
}
}
let fence = fences::ends_at_fence(&self.device, vk_queue)
.then(|| self.fence_after_submitted(vk_queue))
.flatten();
+1 -1
View File
@@ -1831,7 +1831,7 @@ impl EncoderCore {
None => {}
}
if let Some(error) = faults {
state.fault(encoder, error);
state.fault(encoder, error, open.command_buffer.device())?;
}
let base = state.executions.len();
// One part, its executions these: a log not kept comes back, to go without the lock.
+20 -16
View File
@@ -1668,19 +1668,22 @@ pub enum CommandBufferError {
/// store actions: a render encoder's execution of an indirect command buffer that inherits
/// its pipeline state, under the encoder's state made without
/// `supportIndirectCommandBuffers` (a range of commands that runs, or any range read from a
/// buffer, `{0, 0}` included). Metal completes the command buffer with
/// `MTLCommandBufferErrorPageFault` ("Caused GPU Address Fault Error
/// (0000000b:kIOGPUCommandBufferCallbackErrorPageFault)" on an M4), the encoder's state
/// `Faulted`; the encoders before it run, every event signal fires, and the queue runs on
/// (two such passes both fault). The encoders after it ran in 6 of 7 runs of one such pass, and
/// Metal named the next one `Affected` and ran none of it in the 7th and in both runs of two
/// passes: the runtime runs them.
///
/// Also an indexed draw of primitive type 9
/// buffer, `{0, 0}` included), or an indexed draw of primitive type 9
/// ([`DrawPrimitiveType::Nine`](crate::DrawPrimitiveType::Nine)), of any index count, of no
/// index or instance too, on the M3 Max (macOS 27.0.1): its render encoder runs nothing, the
/// encoders after it run, every event signal fires, and the queue runs on; Metal completed it
/// 16.8 to 19.5 ms after its commit, the runtime as its work completes.
/// index or instance too. Metal completes the command buffer with
/// `MTLCommandBufferErrorPageFault` ("Caused GPU Address Fault Error
/// (0000000b:kIOGPUCommandBufferCallbackErrorPageFault)" on an M4); the encoders before the
/// faulted one run, every event signal fires, and the queue runs on. On the M3 Max (macOS
/// 27.0.1; 120 command buffers of type-9 draws, this error's and
/// [`GpuRecoveryVictim`](Self::GpuRecoveryVictim)'s, and 44 of such executions) it completed
/// 6.86 to 10.3 ms after it read `Scheduled`, and the encoders after the faulted one were
/// lost to the GPU's recovery where the GPU ran just before (127 of 142), ran where it was
/// idle before (the first fault after 3 s idle), and in some shapes ran in part (an encoder
/// after an event signal, a command buffer committed right after). The runtime answers the
/// steady state: the faulted encoder and every one after it run nothing, and the command
/// buffer completes no sooner than 6.86 ms after it read `Scheduled` and the work before the
/// encoder ran, its queue's command buffers committed meanwhile reading `Scheduled` as they
/// are committed, and running (`command_buffer/hang.rs`).
///
/// Such a fault, as the runtime makes it, counts against the command buffer's queue, as a
/// [`GpuHang`](Self::GpuHang) does: from the completion of the queue's second, its later
@@ -1704,8 +1707,8 @@ pub enum CommandBufferError {
/// read `Scheduled` within 2 ms, mostly not where later). One whose event wait was met only
/// after it completed, one of another queue and one committed later ran. The runtime's hang
/// reads `Scheduled` 5.06 ms after its commit (later where the work before the draw is
/// submitted later), completes no sooner than 32.7 ms after its commit and 27.5 ms after the
/// work before the draw ran, and runs nothing of its queue's others: the outcome of Metal's
/// submitted later), completes no sooner than 27.5 ms after it read `Scheduled` and the work
/// 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.
GpuHang,
@@ -1715,8 +1718,9 @@ pub enum CommandBufferError {
/// `MTLCommandBufferErrorInternal` (1, "Discarded (victim of GPU error/recovery)
/// (00000005:kIOGPUCommandBufferCallbackErrorInnocentVictim)", its `GPUStartTime` 0), 16.9 to
/// 30.0 ms after its commit (the M3 Max, macOS 27.0.1, 5 draws): its render encoder ran
/// nothing, the encoders after it ran, every event signal fired, and the queue ran on. The
/// runtime completes it as its work completes. It does not count against its queue.
/// nothing, every event signal fired, and the queue ran on. The encoders after it, its
/// completion and the runtime's answer are a [`PageFault`](Self::PageFault)'s. It does not
/// count against its queue.
GpuRecoveryVictim,
/// Metal ignored the command buffer, committed on a queue whose second command buffer with a
/// GPU error it caused ([`PageFault`](Self::PageFault), [`GpuHang`](Self::GpuHang); not a
@@ -4186,6 +4186,16 @@ impl IndirectRenderCommand {
control_point_index_buffer,
tessellation_factor_buffer,
)?;
// Its control-point index buffer takes the words of the object threadgroup lengths 0 and
// 1 (`set_object_threadgroup_memory_length`).
if matches!(action, Action::DrawIndexedPatches { .. })
&& self.descriptor().command_types.intersects(MESH_TYPES)
{
for index in 0..2 {
let field = RecordField::ThreadgroupMemoryLength { index, length: 0 };
self.edit(CALL, field, None)?;
}
}
self.edit(CALL, RecordField::Action(action), None)
}
@@ -4402,17 +4412,21 @@ impl IndirectRenderCommand {
Err(self.render_state("set_triangle_fill_mode"))
}
/// `setObjectThreadgroupMemoryLength:atIndex:`: taken at any index, as plain Metal takes one
/// at or past the descriptor's `max_object_threadgroup_memory_bind_count`, where its
/// validation stops it, and runs the command as before (an M4). The command
/// keeps none: an executed command whose mesh draw's object function has threadgroup memory
/// arguments is `NotImplemented(IndirectRenderCommands)`. Refused (`Invalid`): a command
/// of a buffer whose command types hold no mesh draw (`ObjectThreadgroupMemory`), where
/// Metal's process ends, and of a buffer of dispatches (`CommandKind`).
/// `setObjectThreadgroupMemoryLength:atIndex:`: the command's mesh draw runs its object
/// function with the lengths the command set, 0 where it set none, never the encoder's (the
/// M3 Max: an argument past a length of 16 reached the next argument, whatever the encoder
/// set). Taken at any index, as plain Metal takes one at or past the descriptor's
/// `max_object_threadgroup_memory_bind_count`, where its validation stops it (an M4); the
/// record holds indices below 31, which is every one a function binds, and one past them
/// changes nothing. Differs: the record's first two lengths are an indexed patch draw's
/// control-point index buffer, so such a draw on the command clears them, and a length set
/// there while the command holds one is dropped. Refused (`Invalid`): a command of a buffer
/// whose command types hold no mesh draw (`ObjectThreadgroupMemory`), where Metal's process
/// ends, and of a buffer of dispatches (`CommandKind`).
pub fn set_object_threadgroup_memory_length(
&self,
_length: u32,
_index: u32,
length: u32,
index: u32,
) -> Result<(), Error> {
const CALL: &str = "set_object_threadgroup_memory_length";
if self.of_compute() {
@@ -4424,7 +4438,19 @@ impl IndirectRenderCommand {
IndirectCommandBufferProblem::ObjectThreadgroupMemory,
));
}
Ok(())
if index >= THREADGROUP_BUFFER_ARGUMENT_COUNT {
return Ok(());
}
let patch =
|view: &RecordView<'_>| matches!(view.action(), Action::DrawIndexedPatches { .. });
if index < 2 && self.icb.read_record(self.index, patch)? {
return Ok(());
}
let field = RecordField::ThreadgroupMemoryLength {
index: index as usize,
length,
};
self.edit(CALL, field, None)
}
/// Refuse, for `call`, a getter of a command of a buffer of dispatches (`CommandKind`,
@@ -1733,6 +1733,15 @@ fn reads_vertex_stride(pipeline: &RenderPipelineState, index: u32) -> bool {
})
}
/// The object threadgroup memory lengths `record`'s mesh draw runs with: each it set, by index
/// (`IndirectRenderCommand::set_object_threadgroup_memory_length`); one it set none of is 0.
fn object_threadgroup_lengths(record: &CommandRecord) -> BTreeMap<u32, u32> {
(0u32..)
.zip(record.threadgroup_memory_lengths)
.filter(|&(_, length)| length != 0)
.collect()
}
/// What an execution's settle at commit made for its host step's draw of one primitive type: the
/// variant, and the draw's `VkPipeline` in the execution's instance where the settle could make
/// it. The command buffer holds them until it completes.
@@ -2051,11 +2060,12 @@ impl RenderExecution {
};
encoder.factors.scale = scale;
encoder.shape_inputs().check_pipeline(CALL, &pipeline)?;
// An object function's threadgroup memory arguments: which lengths a command's mesh
// draw takes, its own or the encoder's, is not measured.
if super::mesh::reads_object_threadgroup_memory(&pipeline) {
return Err(Error::NotImplemented(RuntimeGap::IndirectRenderCommands));
}
// A mesh draw's object function takes the command's threadgroup memory lengths, 0
// where it set none, never the encoder's (the M3 Max); a patch draw's take none.
encoder.object_threadgroup_lengths = match &draw {
Draw::Mesh(..) => object_threadgroup_lengths(&record),
Draw::Primitives(..) | Draw::Indexed(..) | Draw::Patches { .. } => BTreeMap::new(),
};
let control_points = pipeline_control_points(&pipeline);
encoder.pipeline = Some(pipeline);
if !inherited {
@@ -2301,7 +2311,7 @@ impl RenderExecution {
fragment: snapshot.fragment.clone(),
object: snapshot.object.clone(),
mesh: snapshot.mesh.clone(),
// No command's draw takes them: one whose object function reads them is refused.
// Each command's mesh draw takes its own (`object_threadgroup_lengths`).
object_threadgroup_lengths: BTreeMap::new(),
visibility,
tile: ArgumentTable::default(),
+2 -20
View File
@@ -102,24 +102,6 @@ use metal2vulkan::bind::{
};
use std::sync::Arc;
/// Whether `state`'s object function has threadgroup memory arguments, whose lengths a draw
/// specializes (`RuntimeFact::ObjectThreadgroupArena`).
pub(super) fn reads_object_threadgroup_memory(
state: &crate::pipeline::RenderPipelineState,
) -> bool {
match state.kind() {
super::RenderStateKind::Graphics(graphics) => {
graphics.base().dependencies.iter().any(|d| {
matches!(
d.fact,
metal2vulkan::pipeline::RuntimeFact::ObjectThreadgroupArena { .. }
)
})
}
super::RenderStateKind::Tile(_) => false,
}
}
/// Metal's most threads of an object or mesh threadgroup (`maxTotalThreadsPerObjectThreadgroup`,
/// `maxTotalThreadsPerMeshThreadgroup`, measured).
const METAL_THREADGROUP_THREADS: u64 = 1024;
@@ -675,8 +657,8 @@ impl RenderCommandEncoder {
/// table (`Invalid`). The object function's arena with these lengths must fit the device's
/// workgroup memory for the object stage, checked at the draw
/// (`Unsupported{ThreadgroupMemorySize}` naming the limit). An indirect command's mesh draw
/// takes none of these: one whose object function reads them is
/// `NotImplemented(IndirectRenderCommands)`.
/// takes none of these, as Metal's takes the command's own
/// (`IndirectRenderCommand::set_object_threadgroup_memory_length`).
pub fn set_object_threadgroup_memory_length(
&mut self,
length: u32,
@@ -351,13 +351,16 @@ pub enum DrawPrimitiveType {
/// indirect one, whatever its arguments, fails it as a victim of the GPU's recovery
/// ([`CommandBufferError::GpuRecoveryVictim`](crate::CommandBufferError::GpuRecoveryVictim));
/// a direct draw of 1 or 2 vertices draws nothing and fails nothing, as an empty draw does.
/// Its render encoder runs nothing, not even its pass's load, clear or store actions, and the
/// command buffer's event signals fire. A hang also runs nothing of the encoders after it,
/// and holds its command buffer until 32.7 ms after its commit and 27.5 ms after the work
/// before the draw ran (Metal failed it 32.7 to 42.7 ms after its commit); a command buffer
/// of its queue that reaches its submission meanwhile (committed during it, its event waits
/// met) runs nothing and completes with no error, after it. A fault or a victim fails that
/// encoder alone: the encoders after it run, and so do the queue's other command buffers.
/// Its render encoder runs nothing, not even its pass's load, clear or store actions, nor do
/// the encoders after it, and the command buffer's event signals fire. A hang holds its
/// command buffer until 27.5 ms after it read `Scheduled` and the work before the draw ran
/// (Metal failed it 27.5 to 28.9 ms after `Scheduled`, mostly); a command buffer of its
/// queue that reaches its submission meanwhile (committed during it, its event waits met)
/// runs nothing and completes with no error, after it. A fault or a victim holds its command
/// buffer until 6.86 ms after the same (Metal: 6.86 to 10.3 ms), and the queue's other
/// command buffers run. Metal's GPU ran the encoders after a fault or a victim where it was
/// idle before, and loses them where it ran just before, which the runtime answers
/// ([`CommandBufferError::PageFault`](crate::CommandBufferError::PageFault)).
/// A hang or a fault counts against its queue, a victim does not: from the completion of the
/// queue's second, its later command buffers fail at once
/// ([`CommandBufferError::AccessRevoked`](crate::CommandBufferError::AccessRevoked)).
@@ -130,9 +130,9 @@ fn metal_fails_a_command_buffer_from_an_encoder_on() {
/// Metal's submissions of encoders of the probe shapes' kinds with these event counts before
/// each (`checks::metal_submissions`): each render pass alone, runs of one kind of blits or
/// computes, split where an event wait or signal lies between two encoders.
/// Encoders Metal's GPU faults run nothing: alone, the command buffer completes with `PageFault`
/// and every signal fires; beside another failure, that failure's error and signals stand, and
/// the encoders either fails run nothing.
/// From the first encoder Metal's GPU faults on nothing runs: alone, the command buffer completes
/// with `PageFault` and every signal fires; beside another failure, that failure's error and
/// signals stand, and the encoders either fails run nothing.
#[test]
fn encoders_metal_s_gpu_faults_run_nothing() {
let page_fault = CommandBufferError::PageFault;
@@ -141,7 +141,7 @@ fn encoders_metal_s_gpu_faults_run_nothing() {
assert_eq!(
Failure::with_faults(None, &faulted, 4),
Some(Failure {
encoders: FailedEncoders::Set(BTreeSet::from([1, 3])),
encoders: FailedEncoders::From(1),
signals: FailedSignals::Every,
error: Some(CommandBufferError::PageFault),
})
@@ -153,7 +153,7 @@ fn encoders_metal_s_gpu_faults_run_nothing() {
4
),
Some(Failure {
encoders: FailedEncoders::Set(BTreeSet::from([1, 2, 3])),
encoders: FailedEncoders::From(1),
signals: FailedSignals::From(2),
error: Some(CommandBufferError::RenderTargetSize),
})
@@ -173,7 +173,7 @@ fn encoders_metal_s_gpu_faults_run_nothing() {
Failure::with_faults(Failure::of(Some(set), None, 4), &faulted, 4)
.map(|f| (f.encoders, f.error)),
Some((
FailedEncoders::Set(BTreeSet::from([0, 1, 3])),
FailedEncoders::Set(BTreeSet::from([0, 1, 2, 3])),
Some(CommandBufferError::Injected(16))
))
);
@@ -211,11 +211,7 @@ fn encoders_metal_s_gpu_faults_run_nothing() {
let mixed = BTreeMap::from([(1, victim), (2, page_fault)]);
assert_eq!(
Failure::with_faults(None, &mixed, 4).map(|f| (f.encoders, f.signals, f.error)),
Some((
FailedEncoders::Set(BTreeSet::from([1, 2])),
FailedSignals::Every,
Some(victim)
))
Some((FailedEncoders::From(1), FailedSignals::Every, Some(victim)))
);
// A hang fails from its encoder on, every signal firing.
assert_eq!(
@@ -132,6 +132,7 @@ fixture icb_imageblock_template: metal: Apple metal version 32023.921 (metalfe-3
fixture icb_merged_draws: metal: Apple metal version 32023.921 (metalfe-32023.921.6); macosx-sdk: 27.0 (26A425)
fixture icb_mesh_encode: metal: Apple metal version 32023.921 (metalfe-32023.921.6); macosx-sdk: 27.0 (26A425)
fixture icb_mesh_template: metal: Apple metal version 32023.921 (metalfe-32023.921.6); macosx-sdk: 27.0 (26A425)
fixture icb_object_threadgroup: metal: Apple metal version 32023.921 (metalfe-32023.921.6); macosx-sdk: 27.0 (26A425)
fixture icb_render_indexed_encode: metal: Apple metal version 32023.921 (metalfe-32023.921.6); macosx-sdk: 27.0 (26A425)
fixture icb_render_ipatch_encode: metal: Apple metal version 32023.921 (metalfe-32023.921.6); macosx-sdk: 27.0 (26A425)
fixture icb_render_patch_encode: metal: Apple metal version 32023.921 (metalfe-32023.921.6); macosx-sdk: 27.0 (26A425)
@@ -0,0 +1,127 @@
; Generated by scripts/regen-air-fixtures from icb_object_threadgroup.metal (typed pointers; xcrun metal-as reassembles it). Do not edit.
; ModuleID = '-'
source_filename = "-"
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024-n8:16:32"
target triple = "air64_v28-apple-macosx26.0.0"
%struct.Payload = type { i32 }
%struct._mesh_grid_properties_t = type opaque
%struct._mesh_t = type opaque
; Function Attrs: convergent mustprogress nounwind
define void @icb_object_threadgroup_object(%struct.Payload addrspace(6)* nocapture noundef readnone align 4 dereferenceable(4) %0, %struct._mesh_grid_properties_t addrspace(3)* %1, i32 addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %2, i32 addrspace(3)* nocapture noundef "air-buffer-no-alias" %3, i32 addrspace(3)* nocapture noundef "air-buffer-no-alias" %4, i32 noundef %5) local_unnamed_addr #0 {
%7 = icmp eq i32 %5, 0
br i1 %7, label %8, label %20
8: ; preds = %6
store i32 11, i32 addrspace(3)* %4, align 4, !tbaa !34, !alias.scope !38, !noalias !41
tail call void @air.wg.barrier(i32 2, i32 1) #5
br label %14
9: ; preds = %14
tail call void @air.wg.barrier(i32 2, i32 1) #5
%10 = load i32, i32 addrspace(3)* %4, align 4, !tbaa !34, !alias.scope !38, !noalias !41
store i32 %10, i32 addrspace(1)* %2, align 4, !tbaa !34, !alias.scope !44, !noalias !45
%11 = getelementptr inbounds i32, i32 addrspace(3)* %3, i64 63
%12 = load i32, i32 addrspace(3)* %11, align 4, !tbaa !34, !alias.scope !46, !noalias !47
%13 = getelementptr inbounds i32, i32 addrspace(1)* %2, i64 1
store i32 %12, i32 addrspace(1)* %13, align 4, !tbaa !34, !alias.scope !44, !noalias !45
br label %20
14: ; preds = %8, %14
%15 = phi i32 [ 0, %8 ], [ %18, %14 ]
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i32, i32 addrspace(3)* %3, i64 %16
store i32 10, i32 addrspace(3)* %17, align 4, !tbaa !34, !alias.scope !46, !noalias !47
%18 = add nuw nsw i32 %15, 1
%19 = icmp eq i32 %18, 64
br i1 %19, label %9, label %14, !llvm.loop !48
20: ; preds = %9, %6
tail call void @air.set_threadgroups_per_grid_mesh_properties(%struct._mesh_grid_properties_t addrspace(3)* nocapture %1, <3 x i32> zeroinitializer) #6
ret void
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind readnone willreturn
define void @icb_object_threadgroup_mesh(%struct._mesh_t addrspace(7)* nocapture %0) local_unnamed_addr #1 {
ret void
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind readnone willreturn
define <4 x i32> @icb_object_threadgroup_fragment() local_unnamed_addr #2 {
ret <4 x i32> <i32 1, i32 1, i32 1, i32 1>
}
; Function Attrs: convergent mustprogress nounwind willreturn
declare void @air.wg.barrier(i32, i32) local_unnamed_addr #3
; Function Attrs: argmemonly mustprogress nounwind willreturn
declare void @air.set_threadgroups_per_grid_mesh_properties(%struct._mesh_grid_properties_t addrspace(3)* nocapture, <3 x i32>) local_unnamed_addr #4
attributes #0 = { convergent mustprogress nounwind "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="96" "no-builtins" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" }
attributes #1 = { mustprogress nofree norecurse nosync nounwind readnone willreturn "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" }
attributes #2 = { mustprogress nofree norecurse nosync nounwind readnone willreturn "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" }
attributes #3 = { convergent mustprogress nounwind willreturn }
attributes #4 = { argmemonly mustprogress nounwind willreturn }
attributes #5 = { convergent nounwind willreturn }
attributes #6 = { argmemonly nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
!air.object = !{!9}
!air.mesh = !{!19}
!air.fragment = !{!25}
!air.compile_options = !{!28, !29, !30}
!llvm.ident = !{!31}
!air.version = !{!32}
!air.language_version = !{!33}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 27, i32 0]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 7, !"frame-pointer", i32 2}
!3 = !{i32 7, !"air.max_device_buffers", i32 31}
!4 = !{i32 7, !"air.max_constant_buffers", i32 31}
!5 = !{i32 7, !"air.max_threadgroup_buffers", i32 31}
!6 = !{i32 7, !"air.max_textures", i32 128}
!7 = !{i32 7, !"air.max_read_write_textures", i32 8}
!8 = !{i32 7, !"air.max_samplers", i32 16}
!9 = !{void (%struct.Payload addrspace(6)*, %struct._mesh_grid_properties_t addrspace(3)*, i32 addrspace(1)*, i32 addrspace(3)*, i32 addrspace(3)*, i32)* @icb_object_threadgroup_object, !10, !11}
!10 = !{}
!11 = !{!12, !14, !15, !16, !17, !18}
!12 = !{i32 0, !"air.payload", !"air.struct_type_info", !13, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"Payload", !"air.arg_name", !"payload", !"air.arg_unused"}
!13 = !{i32 0, i32 4, i32 0, !"uint", !"unused"}
!14 = !{i32 1, !"air.mesh_grid_properties", !"air.arg_type_name", !"mesh_grid_properties", !"air.arg_name", !"grid"}
!15 = !{i32 2, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.address_space", i32 1, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"out"}
!16 = !{i32 3, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.address_space", i32 3, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"a"}
!17 = !{i32 4, !"air.buffer", !"air.location_index", i32 1, i32 1, !"air.read_write", !"air.address_space", i32 3, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"b"}
!18 = !{i32 5, !"air.thread_index_in_threadgroup", !"air.arg_type_name", !"uint", !"air.arg_name", !"index"}
!19 = !{void (%struct._mesh_t addrspace(7)*)* @icb_object_threadgroup_mesh, !10, !20}
!20 = !{!21}
!21 = !{i32 0, !"air.mesh", !22, !"air.arg_type_name", !"mesh<ObjectTgVertex, void, 3, 1, triangle>", !"air.arg_name", !"output", !"air.arg_unused"}
!22 = !{!"air.mesh_type_info", !23, !10, i32 3, i32 1, !"air.triangle"}
!23 = !{!24}
!24 = !{!"air.position", !"air.arg_type_name", !"float4", !"air.arg_name", !"position"}
!25 = !{<4 x i32> ()* @icb_object_threadgroup_fragment, !26, !10}
!26 = !{!27}
!27 = !{!"air.render_target", i32 0, i32 0, !"air.arg_type_name", !"uint4"}
!28 = !{!"air.compile.denorms_disable"}
!29 = !{!"air.compile.fast_math_enable"}
!30 = !{!"air.compile.framebuffer_fetch_enable"}
!31 = !{!"Apple metal version 32023.921 (metalfe-32023.921.6)"}
!32 = !{i32 2, i32 8, i32 0}
!33 = !{!"Metal", i32 4, i32 0, i32 0}
!34 = !{!35, !35, i64 0}
!35 = !{!"int", !36, i64 0}
!36 = !{!"omnipotent char", !37, i64 0}
!37 = !{!"Simple C++ TBAA"}
!38 = !{!39}
!39 = distinct !{!39, !40, !"air-alias-scope-arg(4)"}
!40 = distinct !{!40, !"air-alias-scopes(icb_object_threadgroup_object)"}
!41 = !{!42, !43}
!42 = distinct !{!42, !40, !"air-alias-scope-arg(2)"}
!43 = distinct !{!43, !40, !"air-alias-scope-arg(3)"}
!44 = !{!42}
!45 = !{!43, !39}
!46 = !{!43}
!47 = !{!42, !39}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.mustprogress"}
@@ -0,0 +1,123 @@
; Generated by scripts/regen-air-fixtures from icb_object_threadgroup.metal (llvm-dis of icb_object_threadgroup.air). Do not edit.
; ModuleID = '<stdin>'
source_filename = "-"
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024-n8:16:32"
target triple = "air64_v28-apple-macosx26.0.0"
; Function Attrs: convergent mustprogress nounwind
define void @icb_object_threadgroup_object(ptr addrspace(6) noundef readnone align 4 captures(none) dereferenceable(4) %0, ptr addrspace(3) %1, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %2, ptr addrspace(3) noundef captures(none) "air-buffer-no-alias" %3, ptr addrspace(3) noundef captures(none) "air-buffer-no-alias" %4, i32 noundef %5) local_unnamed_addr #0 {
%7 = icmp eq i32 %5, 0
br i1 %7, label %8, label %20
8: ; preds = %6
store i32 11, ptr addrspace(3) %4, align 4, !tbaa !34, !alias.scope !38, !noalias !41
tail call void @air.wg.barrier(i32 2, i32 1) #5
br label %14
9: ; preds = %14
tail call void @air.wg.barrier(i32 2, i32 1) #5
%10 = load i32, ptr addrspace(3) %4, align 4, !tbaa !34, !alias.scope !38, !noalias !41
store i32 %10, ptr addrspace(1) %2, align 4, !tbaa !34, !alias.scope !44, !noalias !45
%11 = getelementptr inbounds i32, ptr addrspace(3) %3, i64 63
%12 = load i32, ptr addrspace(3) %11, align 4, !tbaa !34, !alias.scope !46, !noalias !47
%13 = getelementptr inbounds i32, ptr addrspace(1) %2, i64 1
store i32 %12, ptr addrspace(1) %13, align 4, !tbaa !34, !alias.scope !44, !noalias !45
br label %20
14: ; preds = %14, %8
%15 = phi i32 [ 0, %8 ], [ %18, %14 ]
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr addrspace(3) %3, i64 %16
store i32 10, ptr addrspace(3) %17, align 4, !tbaa !34, !alias.scope !46, !noalias !47
%18 = add nuw nsw i32 %15, 1
%19 = icmp eq i32 %18, 64
br i1 %19, label %9, label %14, !llvm.loop !48
20: ; preds = %9, %6
tail call void @air.set_threadgroups_per_grid_mesh_properties(ptr addrspace(3) captures(none) %1, <3 x i32> zeroinitializer) #6
ret void
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none)
define void @icb_object_threadgroup_mesh(ptr addrspace(7) captures(none) %0) local_unnamed_addr #1 {
ret void
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none)
define <4 x i32> @icb_object_threadgroup_fragment() local_unnamed_addr #2 {
ret <4 x i32> splat (i32 1)
}
; Function Attrs: convergent mustprogress nounwind willreturn
declare void @air.wg.barrier(i32, i32) local_unnamed_addr #3
; Function Attrs: mustprogress nounwind willreturn memory(argmem: readwrite)
declare void @air.set_threadgroups_per_grid_mesh_properties(ptr addrspace(3) captures(none), <3 x i32>) local_unnamed_addr #4
attributes #0 = { convergent mustprogress nounwind "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="96" "no-builtins" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" }
attributes #1 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" }
attributes #2 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" }
attributes #3 = { convergent mustprogress nounwind willreturn }
attributes #4 = { mustprogress nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { convergent nounwind willreturn }
attributes #6 = { nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
!air.object = !{!9}
!air.mesh = !{!19}
!air.fragment = !{!25}
!air.compile_options = !{!28, !29, !30}
!llvm.ident = !{!31}
!air.version = !{!32}
!air.language_version = !{!33}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 27, i32 0]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 7, !"frame-pointer", i32 2}
!3 = !{i32 7, !"air.max_device_buffers", i32 31}
!4 = !{i32 7, !"air.max_constant_buffers", i32 31}
!5 = !{i32 7, !"air.max_threadgroup_buffers", i32 31}
!6 = !{i32 7, !"air.max_textures", i32 128}
!7 = !{i32 7, !"air.max_read_write_textures", i32 8}
!8 = !{i32 7, !"air.max_samplers", i32 16}
!9 = !{ptr @icb_object_threadgroup_object, !10, !11}
!10 = !{}
!11 = !{!12, !14, !15, !16, !17, !18}
!12 = !{i32 0, !"air.payload", !"air.struct_type_info", !13, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"Payload", !"air.arg_name", !"payload", !"air.arg_unused"}
!13 = !{i32 0, i32 4, i32 0, !"uint", !"unused"}
!14 = !{i32 1, !"air.mesh_grid_properties", !"air.arg_type_name", !"mesh_grid_properties", !"air.arg_name", !"grid"}
!15 = !{i32 2, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.address_space", i32 1, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"out"}
!16 = !{i32 3, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.address_space", i32 3, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"a"}
!17 = !{i32 4, !"air.buffer", !"air.location_index", i32 1, i32 1, !"air.read_write", !"air.address_space", i32 3, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"b"}
!18 = !{i32 5, !"air.thread_index_in_threadgroup", !"air.arg_type_name", !"uint", !"air.arg_name", !"index"}
!19 = !{ptr @icb_object_threadgroup_mesh, !10, !20}
!20 = !{!21}
!21 = !{i32 0, !"air.mesh", !22, !"air.arg_type_name", !"mesh<ObjectTgVertex, void, 3, 1, triangle>", !"air.arg_name", !"output", !"air.arg_unused"}
!22 = !{!"air.mesh_type_info", !23, !10, i32 3, i32 1, !"air.triangle"}
!23 = !{!24}
!24 = !{!"air.position", !"air.arg_type_name", !"float4", !"air.arg_name", !"position"}
!25 = !{ptr @icb_object_threadgroup_fragment, !26, !10}
!26 = !{!27}
!27 = !{!"air.render_target", i32 0, i32 0, !"air.arg_type_name", !"uint4"}
!28 = !{!"air.compile.denorms_disable"}
!29 = !{!"air.compile.fast_math_enable"}
!30 = !{!"air.compile.framebuffer_fetch_enable"}
!31 = !{!"Apple metal version 32023.921 (metalfe-32023.921.6)"}
!32 = !{i32 2, i32 8, i32 0}
!33 = !{!"Metal", i32 4, i32 0, i32 0}
!34 = !{!35, !35, i64 0}
!35 = !{!"int", !36, i64 0}
!36 = !{!"omnipotent char", !37, i64 0}
!37 = !{!"Simple C++ TBAA"}
!38 = !{!39}
!39 = distinct !{!39, !40, !"air-alias-scope-arg(4)"}
!40 = distinct !{!40, !"air-alias-scopes(icb_object_threadgroup_object)"}
!41 = !{!42, !43}
!42 = distinct !{!42, !40, !"air-alias-scope-arg(2)"}
!43 = distinct !{!43, !40, !"air-alias-scope-arg(3)"}
!44 = !{!42}
!45 = !{!43, !39}
!46 = !{!43}
!47 = !{!42, !39}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.mustprogress"}
@@ -0,0 +1,43 @@
// Owned fixture: a mesh render pipeline whose object function has threadgroup memory arguments 0
// and 1, for the lengths an executed indirect command's mesh draw runs it with. Its thread 0
// writes 0xb into b[0], then 0xa into a[0] to a[63], then b[0] into word 0 of object buffer 0
// and a[63] into word 1: where argument 0 is shorter than 256 bytes, a's writes reach b, which
// follows it. It launches no mesh threadgroup.
#include <metal_stdlib>
using namespace metal;
struct Payload {
uint unused;
};
struct ObjectTgVertex {
float4 position [[position]];
};
using ObjectTgMesh = metal::mesh<ObjectTgVertex, void, 3, 1, topology::triangle>;
[[object]] void icb_object_threadgroup_object(object_data Payload &payload [[payload]],
mesh_grid_properties grid,
device uint *out [[buffer(0)]],
threadgroup uint *a [[threadgroup(0)]],
threadgroup uint *b [[threadgroup(1)]],
uint index [[thread_index_in_threadgroup]]) {
if (index == 0) {
b[0] = 0xb;
threadgroup_barrier(mem_flags::mem_threadgroup);
for (uint i = 0; i < 64; i++) {
a[i] = 0xa;
}
threadgroup_barrier(mem_flags::mem_threadgroup);
out[0] = b[0];
out[1] = a[63];
}
grid.set_threadgroups_per_grid(uint3(0, 0, 0));
}
[[mesh]] void icb_object_threadgroup_mesh(ObjectTgMesh output) {
}
fragment uint4 icb_object_threadgroup_fragment() {
return uint4(1);
}
@@ -1227,3 +1227,109 @@ fn a_pipeline_on_a_buffer_of_no_draw_of_its_kind_is_refused() {
}
});
}
/// An executed command's mesh draw runs its object function with the threadgroup memory lengths
/// the command set, never the encoder's, as Metal does (the M3 Max under macOS 27.0.1: an
/// encoder's own draw and each case below, `icb_object_threadgroup`'s function): argument 0 of
/// 256 bytes keeps `a`'s 64 words off `b`, so b[0] and a[63] read 0xb and 0xa; one of 16 bytes
/// lets them reach `b`, and a[63], past both, reads 0. From the CPU's records at the commit, and
/// from the records a host step reads where an encoder made the buffer resident for writing.
#[test]
fn a_command_s_mesh_draw_runs_with_its_own_object_threadgroup_lengths() {
on_device(|device, _| {
let lane = Lane::new(device);
let bitcode = llvm_assemble(&engine_dir().join("icb_object_threadgroup.ll")).unwrap();
let library = device.new_library_with_air(&bitcode).unwrap();
let state = lane
.mesh_pipeline(
&library,
Some("icb_object_threadgroup_object"),
"icb_object_threadgroup_mesh",
"icb_object_threadgroup_fragment",
1,
)
.unwrap();
let (one, threads) = (Size::new(1, 1, 1), Size::new(32, 1, 1));
// The encoder's lengths, the command's, and Metal's b[0] and a[63].
let cases: [([u32; 2], [u32; 2], [u32; 2]); 2] = [
([16, 16], [256, 16], [0xb, 0xa]),
([256, 16], [16, 16], [0xa, 0]),
];
let set_encoder = |encoder: &mut RenderCommandEncoder, lengths: [u32; 2]| {
for (index, length) in (0u32..).zip(lengths) {
encoder
.set_object_threadgroup_memory_length(length, index)
.unwrap();
}
};
let read = |out: &Buffer| {
let bytes = read_buffer(out, 0, 8).unwrap();
let words = bytes.as_chunks::<4>().0;
[0, 1].map(|at| u32::from_le_bytes(words[at]))
};
for written in [false, true] {
for (encoder_lengths, command_lengths, metal) in cases {
let out = words(device, &[0; 4]);
let mut descriptor = IndirectCommandBufferDescriptor::new();
descriptor.command_types = IndirectCommandType::DRAW_MESH_THREADGROUPS;
descriptor.inherit_pipeline_state = false;
descriptor.inherit_buffers = false;
descriptor.max_object_buffer_bind_count = 1;
descriptor.max_mesh_buffer_bind_count = 1;
descriptor.max_object_threadgroup_memory_bind_count = 2;
let icb = device
.new_indirect_command_buffer(&descriptor, 1, ResourceOptions::shared())
.unwrap();
let command = icb.indirect_render_command_at(0).unwrap();
command.set_render_pipeline_state(&state).unwrap();
command.set_object_buffer(Some(&out), 0, 0).unwrap();
for (index, length) in (0u32..).zip(command_lengths) {
command
.set_object_threadgroup_memory_length(length, index)
.unwrap();
}
command
.draw_mesh_threadgroups(one, threads, threads)
.unwrap();
if written {
// An earlier encoder makes the buffer resident for writing: its execution's
// commands are then a host step's.
let queue = device.new_command_queue().unwrap();
let command_buffer = queue.command_buffer().unwrap();
let mut encoder = command_buffer.compute_command_encoder().unwrap();
encoder
.use_resource(icb.as_resource(), ResourceUsage::WRITE)
.unwrap();
encoder.end_encoding().unwrap();
command_buffer.commit().unwrap();
command_buffer.wait_until_completed_for(WAIT).unwrap();
}
let name = format!("{encoder_lengths:?} {command_lengths:?} written {written}");
let setup =
|encoder: &mut RenderCommandEncoder| set_encoder(encoder, encoder_lengths);
lane.execute_after(&name, &icb, 1, setup, &[&out]).unwrap();
assert_eq!(read(&out), metal, "{name} on {}", device.name());
}
}
// The encoder's own draw, under each case's encoder lengths, as Metal's.
for (encoder_lengths, _, _) in &cases {
let out = words(device, &[0; 4]);
let icb = lane.icb(IndirectCommandType::DRAW_MESH_THREADGROUPS, true, 1);
let name = format!("encoder {encoder_lengths:?}");
let setup = |encoder: &mut RenderCommandEncoder| {
set_encoder(encoder, *encoder_lengths);
encoder.set_render_pipeline_state(&state).unwrap();
encoder.set_object_buffer(Some(&out), 0, 0).unwrap();
encoder
.draw_mesh_threadgroups(one, threads, threads)
.unwrap();
};
lane.execute_after(&name, &icb, 1, setup, &[&out]).unwrap();
let metal = match encoder_lengths[0] {
256 => [0xb, 0xa],
_ => [0xa, 0],
};
assert_eq!(read(&out), metal, "{name} on {}", device.name());
}
});
}
@@ -8,7 +8,8 @@
//!
//! - **A direct draw of 3 vertices or more** (1 or 2 instances) hangs Metal's GPU: the command
//! buffer reads `Scheduled` 0.68 to 13.2 ms after its commit and fails with
//! `MTLCommandBufferErrorTimeout` ([`CommandBufferError::GpuHang`]) 28.3 to 46.2 ms after it.
//! `MTLCommandBufferErrorTimeout` ([`CommandBufferError::GpuHang`]) 28.3 to 46.2 ms after it,
//! mostly 27.5 to 28.9 ms after it read `Scheduled`.
//! Its encoders before the pass run; the pass (its clear too) and every encoder after it run
//! nothing; its event signal fires. Every command buffer of its queue scheduled meanwhile reads
//! `Scheduled` from the hang's on, as committed or as its wait is met, and completes with no
@@ -21,9 +22,12 @@
//! - **A direct draw of 1 or 2 vertices, or of no vertex or instance** draws nothing: the pass
//! clears, and every command buffer runs.
//! - **An indexed draw** (any index count, none or of no instance too) faults Metal's GPU: the
//! command buffer fails with
//! `MTLCommandBufferErrorPageFault` ([`CommandBufferError::PageFault`]); the pass runs nothing
//! (no clear), its other encoders run and its signal fires, and the queue's others run.
//! command buffer fails with `MTLCommandBufferErrorPageFault` ([`CommandBufferError::PageFault`])
//! 6.86 to 10.3 ms after it read `Scheduled`; the pass runs nothing (no clear), the encoder
//! before it runs and its signal fires, and the queue's others run, the one committed at once
//! reading `Scheduled` before it completed and completing after it. The encoders after the pass
//! were lost to the GPU's recovery where the GPU ran just before, the runtime's answer (they ran
//! where it was idle before, as after 3 s idle: `CommandBufferError::PageFault`).
//! - **An indirect draw** (of 3 vertices or none) **or an indexed indirect one** fails the command
//! buffer as a victim of the GPU's recovery, `MTLCommandBufferErrorInternal`
//! ([`CommandBufferError::GpuRecoveryVictim`]), with the indexed draw's other answers.
@@ -56,8 +60,13 @@ use std::time::{Duration, Instant};
/// 5.06 ms.
const SCHEDULED: Duration = Duration::from_micros(5_060);
/// The earliest Metal failed a command buffer its GPU hung at after its commit: 32.7 ms.
const HANG: Duration = Duration::from_micros(32_700);
/// The earliest Metal failed a command buffer its GPU hung at after it read `Scheduled`:
/// 27.5 ms.
const HANG: Duration = Duration::from_micros(27_500);
/// The earliest Metal completed a command buffer its GPU faulted at, or failed as a victim of its
/// recovery, after it read `Scheduled`: 6.86 ms.
const FAULT: Duration = Duration::from_micros(6_860);
/// When the host meets the event wait of the queue's command buffer it meets during a hang,
/// after the draw's commit.
@@ -136,6 +145,11 @@ impl Answer {
self.scheduled - self.committed
}
/// From its scheduled handler to its completed handler.
fn from_scheduled(&self) -> Duration {
self.completed - self.scheduled
}
/// It completed with no error.
fn completed_cleanly(&self) -> bool {
self.status == CommandBufferStatus::Completed && self.error.is_none()
@@ -467,13 +481,13 @@ fn check(outcome: &Outcome, expected: Expected, label: &str) {
assert_eq!(drawn.status, CommandBufferStatus::Error, "{label}");
assert_eq!(drawn.error, Some(CommandBufferError::GpuHang), "{label}");
assert!(
drawn.took() >= HANG,
"{label}: failed in {:?}",
drawn.took()
drawn.from_scheduled() >= HANG,
"{label}: failed {:?} after it read Scheduled",
drawn.from_scheduled()
);
let scheduled = drawn.to_scheduled();
assert!(
(SCHEDULED..HANG).contains(&scheduled),
scheduled >= SCHEDULED,
"{label}: read Scheduled {scheduled:?} after its commit"
);
// The queue's command buffers committed during the hang read `Scheduled` from the
@@ -510,12 +524,21 @@ fn check(outcome: &Outcome, expected: Expected, label: &str) {
Expected::Fails(error) => {
assert_eq!(drawn.status, CommandBufferStatus::Error, "{label}");
assert_eq!(drawn.error, Some(error), "{label}");
assert!(!outcome.cleared, "{label}: the pass ran nothing");
assert_eq!(
outcome.marks,
marked(&[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]),
"{label}"
assert!(
drawn.from_scheduled() >= FAULT,
"{label}: failed {:?} after it read Scheduled",
drawn.from_scheduled()
);
// The queue's command buffer committed at once reads `Scheduled` during the fault and
// completes after it.
assert!(
at_once.scheduled < drawn.completed && at_once.completed >= drawn.completed,
"{label}: at once read Scheduled {:?} and completed {:?} after its commit",
at_once.to_scheduled(),
at_once.took()
);
assert!(!outcome.cleared, "{label}: the pass ran nothing");
assert_eq!(outcome.marks, marked(&[0, 3, 4, 5, 6, 7, 8, 9]), "{label}");
}
}
}
@@ -562,7 +585,9 @@ fn a_direct_draw_of_type_nine_of_fewer_vertices_draws_nothing() {
}
/// An indexed draw of type 9 fails its command buffer with `PageFault`, and an indirect one with
/// `GpuRecoveryVictim`: the pass runs nothing, everything else runs.
/// `GpuRecoveryVictim`, no sooner than Metal's did: the pass and the encoders after it run
/// nothing, the encoder before it and the queue's other command buffers run, its event signal
/// fires.
#[test]
fn indexed_draws_of_type_nine_fault_and_indirect_ones_are_victims() {
let indexed = |indices, instances| Draw::Indexed { indices, instances };
@@ -423,15 +423,17 @@ fn inheriting_commands_draw_with_the_encoder_s_state_at_the_call() {
}
/// An execution of commands that inherit the encoder's pipeline state, made without
/// `supportIndirectCommandBuffers`, faults its encoder, as Metal's GPU faults it (an M4): the call
/// is taken, for a range given and for one read from a buffer, `{0, 0}` included; the encoder runs
/// nothing, its own draw before the call either; the encoders before and after it run and both
/// event signals fire; the command buffer completes with status `Error` and
/// `CommandBufferError::PageFault`, Metal's code 3; and the next command buffer of the queue
/// completes, its work landed. The next one is committed while the faulting one is in flight: Metal
/// runs such a command buffer as it would, committed at any point from the faulting one's commit to
/// its completion, and on another queue (an M4). Window 0 is the pass's before, window 1 the
/// faulting passes' draws, windows 2 and 3 the pass's after and the next command buffer's.
/// `supportIndirectCommandBuffers`, faults its encoder, as Metal's GPU faults it (an M4, the M3
/// Max): the call is taken, for a range given and for one read from a buffer, `{0, 0}` included;
/// the encoder runs nothing, its own draw before the call either, and nor do the encoders after
/// it, as Metal's GPU loses them where it ran just before (`CommandBufferError::PageFault`); the
/// encoder before it runs and both event signals fire; the command buffer completes with status
/// `Error` and `CommandBufferError::PageFault`, Metal's code 3; and the next command buffer of the
/// queue completes, its work landed. The next one is committed while the faulting one is in
/// flight: Metal runs such a command buffer as it would, committed at any point from the faulting
/// one's commit to its completion, and on another queue (an M4). Window 0 is the pass's before,
/// window 1 the faulting passes' draws, windows 2 and 3 the pass's after and the next command
/// buffer's.
#[test]
fn an_execution_under_a_state_without_support_faults_its_encoder() {
on_device(|device, _| {
@@ -500,7 +502,7 @@ fn an_execution_under_a_state_without_support_faults_its_encoder() {
};
assert_eq!(
setup.output(),
expected(&[drawn(0), drawn(2), drawn(3)]),
expected(&[drawn(0), drawn(3)]),
"on {}",
device.name()
);
@@ -97,7 +97,11 @@ pub(super) const DELAYED_DEALLOCATORS: [Degradation; 1] = [Degradation::HostDeal
/// (`DriverFact::HostTransferImagesKeepTheirBytes`) and the format takes the usage at optimal
/// tiling (the runtime enables `hostImageCopy` wherever the device has it), else a linear image
/// where the format's linear tiling samples, else the optimal image. The size query announces the
/// first kind as the heap's texture would.
/// first kind as the heap's texture would. And `heap-texture-untiled-layout` where its image
/// lies in the heap's memory in the driver's layout, not Metal's: on any driver but one whose
/// single-sample colour images bound to memory lie as Metal lays a heap texture out
/// (`DriverFact::ColorImagesLieAsMetalHeapTextures`), or whose route is another than the
/// optimal image bound there (`texture/heap.rs`, `Device::device_heap_layout`).
fn heap_texture_kinds(device: &Device, descriptor: &TextureDescriptor) -> BTreeSet<Degradation> {
let answer = device.heap_texture_size_and_align(descriptor).unwrap();
let metal = device
@@ -134,6 +138,10 @@ fn heap_texture_kinds(device: &Device, descriptor: &TextureDescriptor) -> BTreeS
Degradation::HeapTextureHidesAliasedWrites,
hides && !transfer && !linear,
),
(
Degradation::HeapTextureUntiledLayout,
hides || !facts.contains(&DriverFact::ColorImagesLieAsMetalHeapTextures),
),
])
}
@@ -173,13 +173,15 @@ impl CommandDescriptor {
max_threadgroup_memory_bind_count,
support_dynamic_attribute_stride,
),
// A mesh draw's object threadgroup lengths, at any index the record holds: Metal
// keeps one at or past the descriptor's count.
Self::Render {
draws,
max_vertex_buffer_bind_count,
max_fragment_buffer_bind_count,
max_object_buffer_bind_count,
max_mesh_buffer_bind_count,
support_dynamic_attribute_stride,
..
} => (
[
max_mesh_buffer_bind_count,
@@ -187,7 +189,10 @@ impl CommandDescriptor {
max_fragment_buffer_bind_count,
max_object_buffer_bind_count,
],
0,
match draws.mesh_threadgroups || draws.mesh_threads {
true => super::THREADGROUP_COUNT as u32,
false => 0,
},
support_dynamic_attribute_stride,
),
};
+19 -10
View File
@@ -3066,16 +3066,25 @@ each item named states the rule in full.
**GPU hangs and faults** (a draw of private primitive type 9, `DrawPrimitiveType::Nine`)
- **A hang reads `Scheduled` 5.06 ms after its commit and completes no sooner than 32.7 ms after
it**, and its queue runs nothing of what it schedules meanwhile: one of Metal's two outcomes. On
an M3 Max (macOS 27.0.1, 33 hangs) Metal's hang read `Scheduled` 0.68 to 13.2 ms in and
completed about 27.6 ms after; the queue's later command buffers' work mostly ran on the GPU
during the hang where it read `Scheduled` within 2 ms (17 of 18), and mostly did not where later
(56 of 62 ran nothing or in part). Either way they read `Scheduled` from the hang's on, as they
are committed or their event waits are met, and complete with the hang, its signals firing, as
the runtime's do (0.04 to 1.5 ms after it on MoltenVK, Metal's 0.01 to 0.03 ms).
- **A page fault or a victim of the GPU's recovery completes as its work does** (about 1 ms on
MoltenVK), where Metal completed it 16.8 to 30.0 ms after its commit.
- **A hang reads `Scheduled` 5.06 ms after its commit and completes no sooner than 27.5 ms after
that and the GPU reached it**, and its queue runs nothing of what it schedules meanwhile: one of
Metal's two outcomes. On an M3 Max (macOS 27.0.1, 33 hangs) Metal's hang read `Scheduled` 0.68
to 13.2 ms in and completed about 27.6 ms after; the queue's later command buffers' work mostly
ran on the GPU during the hang where it read `Scheduled` within 2 ms (17 of 18), and mostly did
not where later (56 of 62 ran nothing or in part). Either way they read `Scheduled` from the
hang's on, as they are committed or their event waits are met, and complete with the hang, its
signals firing, as the runtime's do (0.04 to 1.5 ms after it on MoltenVK, Metal's 0.01 to
0.03 ms).
- **A page fault or a victim of the GPU's recovery runs nothing from its encoder on, and
completes no sooner than 6.86 ms after it read `Scheduled` and the GPU reached the encoder**, its
event signals firing, the encoders before it run, and its queue's command buffers committed
meanwhile reading `Scheduled` as they are committed, and running: Metal's steady state. On an M3
Max (macOS 27.0.1, 164 command buffers: type-9 draws and executions of indirect commands under a
state that cannot inherit) Metal completed it 6.86 to 10.3 ms after `Scheduled`, and whether the
encoders after the faulted one ran was a race the GPU's state decides: lost to its recovery
where the GPU ran just before (127 of 142), run where it was idle before (the first fault after
3 s idle), and run in part in some shapes (an encoder after an event signal, a command buffer
committed right after). The runtime does not model the GPU's idle state.
- **A queue's second caused GPU error revokes it, as Metal's does**, and only an event wait held
across the revocation is answered unmeasured. Measured on the M3 Max (macOS 27.0.1, about sixty
command buffers): page faults and hangs (`CommandBufferError::PageFault`, `GpuHang`) count
+89 -89
View File
@@ -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 `15092b3b1`.
Generated at `b1ea97c5c`.
## Totals
@@ -53,7 +53,7 @@ Generated at `15092b3b1`.
| `QuadOperations` | Quad operations in a stage without quad support | devices without VkLimit::MinSubgroupSize; devices without VkProperty::SubgroupQuadOperationsInAllStages | 2: `crates/metal2vulkan/src/device/subgroup.rs:371`, `crates/metal2vulkan/src/device/subgroup.rs:405` | `app`: quad shuffles in kernels on devices without quad operations there |
| `SimdgroupMatrix` | Simdgroup matrix operations | every device (not implemented) | 1: `crates/metal2vulkan/src/lower/simd/matrix.rs:83` | `rare`: simdgroup matrix kernels |
| `ArgumentBufferPointers` | Argument buffers holding buffer pointers (dynamic roots) | devices without buffer device addresses (`addressed_needs`) | 1: `crates/metal2vulkan/src/device/metal.rs:236` | `app`: argument buffers holding buffer pointers |
| `ArgumentBufferTextures` | Argument buffers holding textures or samplers (handle domain) | devices short of a device limit the site names; devices without a capability the site computes (`gaps`); devices without a capability the site computes (`missing`); devices without a capability the site computes (`needs`); every device (not implemented) | 17: `crates/metal2vulkan-runtime/src/families/features.rs:1648`, `crates/metal2vulkan-runtime/src/pipeline/objects.rs:1036` (+15) | `app`: argument buffers holding textures and samplers (bindless) |
| `ArgumentBufferTextures` | Argument buffers holding textures or samplers (handle domain) | devices short of a device limit the site names; devices without a capability the site computes (`gaps`); devices without a capability the site computes (`missing`); devices without a capability the site computes (`needs`); every device (not implemented) | 17: `crates/metal2vulkan-runtime/src/families/features.rs:1658`, `crates/metal2vulkan-runtime/src/pipeline/objects.rs:1036` (+15) | `app`: argument buffers holding textures and samplers (bindless) |
| `ArgumentBufferObjects` | Argument-buffer members that are pipeline states, ICBs, function tables, or acceleration structures | every device (not implemented) | 5: `crates/metal2vulkan/src/lower/access/encode.rs:446`, `crates/metal2vulkan/src/lower/access/encode.rs:496` (+3) | `rare`: pipeline states and ICBs in argument buffers |
| `DereferenceLoadedPointer` | Dereferencing a pointer loaded from memory or made from an integer | devices short of a Vulkan feature the site names; devices without buffer device addresses (`addressed_needs`); every device (no Vulkan mechanism) | 4: `crates/metal2vulkan/src/lower/access/dynamic.rs:407`, `crates/metal2vulkan/src/lower/access/local.rs:774` (+2) | `app`: pointers loaded from argument buffers |
| `PointerToInteger` | Storing a pointer or converting it to an integer | - | via a helper: 1: `crates/metal2vulkan/src/lower/access/dynamic.rs:347` | `rare`: pointer to integer casts |
@@ -65,7 +65,7 @@ Generated at `15092b3b1`.
| `Int64Atomics` | 64-bit atomics | devices short of a Vulkan feature the site names; devices without buffer device addresses (`addressed_needs`) | 2: `crates/metal2vulkan/src/lower/access/atomic.rs:624`, `crates/metal2vulkan/src/lower/access/atomic.rs:633` | `rare`: 64-bit atomics |
| `ImageAtomics` | Image atomics beyond 32-bit integers | devices without a capability the site computes (`gaps`); every device (no Vulkan mechanism) | 3: `crates/metal2vulkan-runtime/src/families/formats.rs:464`, `crates/metal2vulkan-runtime/src/families/formats.rs:468` (+1) | `rare`: texture atomics beyond 32-bit integers |
| `DescriptorCount` | Too many descriptors of one kind in a stage or pipeline | devices short of a device limit the site names; devices without VkLimit::MaxUniformBufferRange | 3: `crates/metal2vulkan/src/lower/access/mod.rs:1684`, `crates/metal2vulkan/src/lower/select.rs:1641` (+1) | `app`: many textures or buffers in one stage on a smaller device |
| `BufferRange` | A buffer window beyond the descriptor range limits | devices without a capability the site computes (`needs`); devices without buffer device addresses (`addressed_needs`); every device (no Vulkan mechanism) | 7: `crates/metal2vulkan-runtime/src/function_table.rs:569`, `crates/metal2vulkan/src/bind/graphics.rs:3658` (+5) | `app`: a buffer window past a device's descriptor range |
| `BufferRange` | A buffer window beyond the descriptor range limits | devices without a capability the site computes (`needs`); devices without buffer device addresses (`addressed_needs`); every device (no Vulkan mechanism) | 7: `crates/metal2vulkan-runtime/src/function_table.rs:569`, `crates/metal2vulkan/src/bind/graphics.rs:3635` (+5) | `app`: a buffer window past a device's descriptor range |
| `Int64Arithmetic` | 64-bit integer arithmetic | devices without VkFeature::ShaderInt64 | 2: `crates/metal2vulkan/src/lower/arith/legal.rs:582`, `crates/metal2vulkan/src/lower/select.rs:1133` | `rare`: 64-bit integers on a device without shaderInt64 |
| `Float64Arithmetic` | 64-bit float arithmetic | devices without VkFeature::ShaderFloat64 | 2: `crates/metal2vulkan/src/device/metal.rs:230`, `crates/metal2vulkan/src/lower/arith/legal.rs:587` | `rare`: doubles (MSL has none outside Apple's own code) |
| `Format` | A pixel format not supported for the required use | devices without VkFeature::ShaderStorageImageExtendedFormats; 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 (`missing`); devices without a capability the site computes (`routes`); devices without a format's usage; every device (no Vulkan mechanism); every device (not implemented) | 121: `crates/metal2vulkan-runtime/src/binding_view.rs:146`, `crates/metal2vulkan-runtime/src/blit_plan.rs:523` (+119) | `system`: pixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them) |
@@ -84,22 +84,22 @@ Generated at `15092b3b1`.
| `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:880`, `crates/metal2vulkan/src/bind/instantiate.rs:886` (+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) | 23: `crates/metal2vulkan-runtime/src/families/features.rs:1018`, `crates/metal2vulkan-runtime/src/render.rs:5894` (+21) | `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) | 23: `crates/metal2vulkan-runtime/src/families/features.rs:1018`, `crates/metal2vulkan-runtime/src/render.rs:5889` (+21) | `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:3999`, `crates/metal2vulkan/src/lower/stage_io/plan.rs:1312` (+3) | `rare`: vertex amplification |
| `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:3976`, `crates/metal2vulkan/src/lower/stage_io/plan.rs:1312` (+3) | `rare`: vertex amplification |
| `LayeredRendering` | Layered rendering (`render_target_array_index`, `viewport_array_index`) | devices without VkFeature::ImageView2DOn3DImage; devices without VkFeature::MultiViewport; devices without VkFeature::ShaderOutputLayer; devices without VkFeature::ShaderOutputViewportIndex; devices without a capability the site computes (`needs`); every device (not implemented) | 7: `crates/metal2vulkan-runtime/src/render_pass.rs:1669`, `crates/metal2vulkan-runtime/src/render_state.rs:1107` (+5) | `rare`: layered rendering on a device without its features |
| `ClipDistance` | Clip or cull distances | devices without VkFeature::ShaderClipDistance; devices without VkLimit::MaxClipDistances | 2: `crates/metal2vulkan/src/lower/mesh/mod.rs:941`, `crates/metal2vulkan/src/lower/mesh/mod.rs:949` | `rare`: clip distances on a device without them |
| `ClipDistance` | Clip or cull distances | devices without VkFeature::ShaderClipDistance; devices without VkLimit::MaxClipDistances | 2: `crates/metal2vulkan/src/lower/mesh/mod.rs:934`, `crates/metal2vulkan/src/lower/mesh/mod.rs:942` | `rare`: clip distances on a device without them |
| `DualSourceBlending` | Dual-source blending | devices without VkFeature::DualSrcBlend; devices without VkLimit::MaxFragmentDualSrcAttachments | 5: `crates/metal2vulkan-runtime/src/families/formats.rs:386`, `crates/metal2vulkan/src/metal/state.rs:37` (+3) | `rare`: dual-source blending on a device without it |
| `Barycentrics` | Barycentric coordinates | devices without VkFeature::FragmentShaderBarycentric; devices without VkFeature::GeometryShader; devices without a capability the site computes (`needs`); drivers with a defect; every device (not implemented) | 5: `crates/metal2vulkan/src/device/metal.rs:263`, `crates/metal2vulkan/src/lower/stage_io/plan.rs:1924` (+3) | `rare`: barycentric coordinates |
| `StencilExport` | Stencil export | devices without VkExtension::ExtShaderStencilExport; every device (not implemented) | 6: `crates/metal2vulkan-runtime/src/families/features.rs:1114`, `crates/metal2vulkan/src/bind/graphics.rs:2685` (+4) | `rare`: stencil from the shader |
| `StencilExport` | Stencil export | devices without VkExtension::ExtShaderStencilExport; every device (not implemented) | 6: `crates/metal2vulkan-runtime/src/families/features.rs:1114`, `crates/metal2vulkan/src/bind/graphics.rs:2672` (+4) | `rare`: stencil from the shader |
| `SampleRateShading` | Per-sample shading | devices without VkFeature::SampleRateShading; devices without a capability the site computes (`needs`); every device (not implemented) | 3: `crates/metal2vulkan/src/pipeline/link/graphics.rs:844`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:846` (+1) | `rare`: per-sample shading |
| `PixelCoverageAtSampleRate` | The pixel's coverage (`[[sample_mask]]` read) in a fragment function that runs once per sample | drivers with a defect; every device (no Vulkan mechanism); every device (not implemented) | 3: `crates/metal2vulkan/src/lower/fragment/coverage.rs:296`, `crates/metal2vulkan/src/lower/simd/mod.rs:754` (+1) | `rare`: coverage read at sample rate |
| `InterfaceComponents` | Too many interface components or locations | devices short of a device limit the site names; devices without VkLimit::MaxColorAttachments; devices without VkLimit::MaxVertexInputAttributes | 4: `crates/metal2vulkan/src/pipeline/compile/color_group.rs:202`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:301` (+2) | `rare`: too many varyings or attachments for a device |
| `UnmatchedVarying` | A fragment input without a vertex producer (a Metal link error) | every device (no Vulkan mechanism) | 3: `crates/metal2vulkan/src/pipeline/link/varyings.rs:318`, `crates/metal2vulkan/src/pipeline/link/varyings.rs:537` (+1) | `none`: a Metal link error |
| `KernelStageIn` | Kernel `[[stage_in]]` | every device (not implemented) | 3: `crates/metal2vulkan-runtime/src/indirect_execute.rs:376`, `crates/metal2vulkan/src/bind/dispatch.rs:871` (+1) | `rare`: kernel stage-in combinations Metal leaves unestablished |
| `Tessellation` | Tessellation | devices without VkLimit::MaxPushConstantsSize; devices without VkLimit::MaxStorageBufferRange; devices without VkLimit::MaxTessellationGenerationLevel; every device (not implemented) | 13: `crates/metal2vulkan-air/src/canon/mod.rs:1256`, `crates/metal2vulkan-air/src/canon/mod.rs:1347` (+11) | `rare`: tessellation |
| `MeshShading` | | devices short of a device limit the site names; devices without VkLimit::MaxMeshOutputLayers; devices without VkLimit::MaxTaskPayloadSize; devices without a capability the site computes (`missing`); every device (not implemented) | 7: `crates/metal2vulkan/src/bind/graphics.rs:1604`, `crates/metal2vulkan/src/bind/graphics.rs:3058` (+5) | `rare`: mesh pipelines |
| `MeshShading` | | devices short of a device limit the site names; devices without VkLimit::MaxMeshOutputLayers; devices without VkLimit::MaxTaskPayloadSize; devices without a capability the site computes (`missing`); every device (not implemented) | 7: `crates/metal2vulkan/src/bind/graphics.rs:1591`, `crates/metal2vulkan/src/bind/graphics.rs:3045` (+5) | `rare`: mesh pipelines |
| `TileShading` | | devices without VkLimit::MaxStorageBufferRange; devices without a format's usage; every device (not implemented) | 5: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:520`, `crates/metal2vulkan/src/bind/plan/compute.rs:237` (+3) | `rare`: tile shaders (Apple GPU families) |
| `Imageblocks` | An imageblock outside the forms implemented | devices without VkFeature::SampleRateShading; devices without a capability the site computes (`missing`); drivers with a defect; every device (not implemented) | 10: `crates/metal2vulkan/src/lower/access/imageblock.rs:98`, `crates/metal2vulkan/src/lower/access/mod.rs:908` (+8) | `rare`: imageblocks (Apple GPU families) |
| `RayTracing` | | devices without a capability the site computes (`missing`); every device (no Vulkan mechanism); every device (not implemented) | 12: `crates/metal2vulkan/src/bind/acceleration.rs:202`, `crates/metal2vulkan/src/bind/acceleration.rs:216` (+10) | `rare`: ray tracing (out of scope by ruling) |
@@ -111,7 +111,7 @@ Generated at `15092b3b1`.
| `Attribute` | An LLVM attribute kind that changes the calling ABI and that AIR does not use (`inalloca`, `preallocated`, `byref`, `nest`, the `swift*` kinds) | - | via a helper: 2: `crates/metal2vulkan-air/src/bitcode/attrs.rs:493`, `crates/metal2vulkan/src/error/mod.rs:256` | `none`: LLVM ABI attributes AIR does not use |
| `BitcodeRecord` | A bitcode record LLVM defines in `block` that the typed model does not cover and that has no more specific variant (legacy spellings predating... | - | via a helper: 7: `crates/metal2vulkan-air/src/bitcode/attrs.rs:337`, `crates/metal2vulkan-air/src/bitcode/function.rs:572` (+5) | `none`: bitcode records AIR does not emit |
| `SyncScope` | An atomic access or fence in a synchronization scope other than LLVM's built-in `singlethread` and system scopes | - | via a helper: 2: `crates/metal2vulkan-air/src/bitcode/function.rs:1255`, `crates/metal2vulkan/src/error/mod.rs:258` | `none`: synchronization scopes AIR does not use |
| `SubgroupOperations` | Simdgroup operations of a class the stage's subgroups do not support (the stage is not in `subgroupSupportedStages`, or an operation class is... | devices without VkFeature::ShaderQuadControl; devices without VkFeature::ShaderSubgroupExtendedTypes; devices without VkProperty::SubgroupStage | 4: `crates/metal2vulkan-runtime/src/families/features.rs:1713`, `crates/metal2vulkan/src/lower/simd/mod.rs:407` (+2) | `app`: simdgroup functions in a stage a device's subgroups do not support |
| `SubgroupOperations` | Simdgroup operations of a class the stage's subgroups do not support (the stage is not in `subgroupSupportedStages`, or an operation class is... | devices without VkFeature::ShaderQuadControl; devices without VkFeature::ShaderSubgroupExtendedTypes; devices without VkProperty::SubgroupStage | 4: `crates/metal2vulkan-runtime/src/families/features.rs:1723`, `crates/metal2vulkan/src/lower/simd/mod.rs:407` (+2) | `app`: simdgroup functions in a stage a device's subgroups do not support |
| `DirectCall` | A call to a defined function the inliner cannot take | every device (not implemented) | 1: `crates/metal2vulkan-air/src/canon/mod.rs:1319` | `rare`: variadic or byval calls the inliner cannot take |
| `WideSwitchLiteral` | A switch case literal wider than 32 bits | every device (not implemented) | 1: `crates/metal2vulkan/src/structurize/emit.rs:207` | `rare`: 64-bit switch literals |
| `Lowering` | An instruction, intrinsic, or interface element of a lowering family whose lowering has not landed yet (each family narrows its refusals as it lands) | devices short of a device limit the site names; devices without VkFeature::ShaderDemoteToHelperInvocation; every device (not implemented) | 35: `crates/metal2vulkan/src/bind/plan/resources.rs:762`, `crates/metal2vulkan/src/lower/access/handle.rs:1062` (+33) | `system`: the catch-all of lowering families not landed: any shader can meet one |
@@ -122,8 +122,8 @@ Generated at `15092b3b1`.
| `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:2173`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:1017` | `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 |
| `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:2168`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:1017` | `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:1059`, `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 |
| `DepthBiasClamp` | The render encoder's depth bias clamp, nonzero with a nonzero bias, on a device without `depthBiasClamp` | - | via a helper: 1: `crates/metal2vulkan/src/metal/state.rs:463` | `app`: depth bias clamp on a device without depthBiasClamp |
@@ -133,7 +133,7 @@ Generated at `15092b3b1`.
| `TextureSampleCount` | A texture sample count the device does not take for its format, type, and usage | devices short of a Vulkan property the site names; devices without VkFeature::MultisampleArrayImage; every device (no Vulkan mechanism) | 3: `crates/metal2vulkan-runtime/src/image_plan.rs:1244`, `crates/metal2vulkan-runtime/src/image_plan.rs:598` (+1) | `app`: a sample count a device lacks for the texture |
| `TextureView` | A texture view Vulkan cannot make exactly on this image | every device (no Vulkan mechanism); every device (not implemented) | 7: `crates/metal2vulkan-runtime/src/binding_view.rs:156`, `crates/metal2vulkan-runtime/src/texture.rs:5136` (+5) | `app`: a texture view Vulkan cannot make exactly |
| `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:996` (+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:1850`, `crates/metal2vulkan-runtime/src/mipmap_pick.rs:37` (+5) | `app`: generateMipmapsForTexture: where the device's filter is not Metal's |
| `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:1818`, `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:2783` | `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 |
@@ -146,7 +146,7 @@ Generated at `15092b3b1`.
| `SparseMapping` | A sparse texture's mapping update (`updateTextureMapping:` and its array form, or a move of mappings) that covers part of one of the device's... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:469` | `rare`: sparse mappings off the device's blocks |
| `TimelineSemaphores` | Command buffers and events, which the runtime completes and signals through timeline semaphores (core in Vulkan 1.2), on a device whose... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/device/create.rs:1115` | `none`: a device below the runtime's floor |
| `Reflection` | Reflection of an argument whose answer Metal's has not been measured for (`reflection`) | every device (not implemented) | 9: `crates/metal2vulkan/src/bind/argument_buffer.rs:626`, `crates/metal2vulkan/src/reflection/derive.rs:178` (+7) | `rare`: reflection of argument kinds Metal's answer is unmeasured for |
| `HeapTextureTiling` | A texture of a heap whose memory the device's optimal images do not take (a `Shared` heap on a device whose optimal images take no host-visible... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:630` | `app`: textures in Shared heaps on a device whose optimal images take no host memory |
| `HeapTextureTiling` | A texture of a heap whose memory the device's optimal images do not take (a `Shared` heap on a device whose optimal images take no host-visible... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:628` | `app`: textures in Shared heaps on a device whose optimal images take no host memory |
| `ViewportDepthRange` | A viewport depth range past `[0, 1]` (`setViewport:`), which Metal takes and the runtime draws natively (`VK_EXT_depth_range_unrestricted`) or... | drivers with a defect | 1: `crates/metal2vulkan-runtime/src/render_state.rs:1216` | `rare`: viewport depth outside [0, 1] |
| `UndeclaredTextureUsage` | A shader write to a texture made without `ShaderWrite` (or `ShaderAtomic`), or a read of one made without `ShaderRead`, which plain Metal runs,... | every device (not implemented) | 2: `crates/metal2vulkan-runtime/src/binding_view.rs:141`, `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs:72` | `app`: a shader write to a texture made without ShaderWrite, which plain Metal runs |
| `RenderTargetSize` | A render pass whose render area or layers are past the device's framebuffer limits (`Capability::Limit` names `MaxFramebufferWidth`,... | devices short of a device limit the site names | 1: `crates/metal2vulkan-runtime/src/render_pass.rs:1271` | `rare`: a render area past a device's framebuffer limits |
@@ -168,11 +168,11 @@ Generated at `15092b3b1`.
| `SparseHeaps` | Sparse heaps and their textures | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:461`, `crates/metal2vulkan-runtime/src/texture.rs:1674` (+1) | `rare`: sparse heaps |
| `SparseTileMaps` | What the runtime's emulation of sparse textures does not build yet | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/binding.rs:562`, `crates/metal2vulkan-runtime/src/sparse/texture.rs:30` (+1) | `rare`: sparse texture emulation's unbuilt pieces |
| `HeapPastMaxBufferSize` | A heap larger than the device's `maxBufferSize`, which the device can allocate | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/heap.rs:714` | `rare`: a heap past maxBufferSize |
| `HeapTextureAlignment` | A heap texture whose image needs an alignment past the heap memory's base alignment (256 KiB) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:1071` | `rare`: a heap texture needing more than 256 KiB alignment |
| `HeapTextureMemory` | A heap texture whose image the heap's memory type does not take | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/texture/heap.rs:1510`, `crates/metal2vulkan-runtime/src/texture/heap.rs:1517` (+3) | `app`: a heap texture the heap's memory type does not take |
| `HeapTextureAlignment` | A heap texture whose image needs an alignment past the heap memory's base alignment (256 KiB) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:1069` | `rare`: a heap texture needing more than 256 KiB alignment |
| `HeapTextureMemory` | A heap texture whose image the heap's memory type does not take | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/texture/heap.rs:1508`, `crates/metal2vulkan-runtime/src/texture/heap.rs:1515` (+3) | `app`: a heap texture the heap's memory type does not take |
| `FunctionTablePastMaxBufferLength` | A visible-function table of more entries than one buffer of the device's `max_buffer_length` holds words for, or than its size word holds | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/function_table.rs:622` | `none`: a function table past one buffer |
| `IndirectCommandBufferPastMaxBufferLength` | An indirect command buffer of more commands than one buffer of the device's `max_buffer_length` holds the records of | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:522` | `none`: an ICB past one buffer |
| `IndirectRenderCommands` | What indirect command buffers lack of their render commands | every device (runtime piece not built) | 16: `crates/metal2vulkan-runtime/src/compute.rs:1144`, `crates/metal2vulkan-runtime/src/compute.rs:1225` (+14) | `rare`: indirect render commands' remaining pieces |
| `IndirectRenderCommands` | What indirect command buffers lack of their render commands | every device (runtime piece not built) | 15: `crates/metal2vulkan-runtime/src/compute.rs:1144`, `crates/metal2vulkan-runtime/src/compute.rs:1225` (+13) | `rare`: indirect render commands' remaining pieces |
| `IndirectImageblockSize` | An indirect compute command's imageblock side past 65535, which Metal keeps | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:3363` | `none`: an imageblock side past 65535 |
| `CommandReplay` | The device replay of indirect command buffers | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/binding.rs:723`, `crates/metal2vulkan-runtime/src/binding.rs:726` | `rare`: the device replay of indirect command buffers |
| `RenderAttachments` | Render attachments and their binding forms | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/binding.rs:1794` | `rare`: render attachment forms not built |
@@ -187,39 +187,39 @@ Generated at `15092b3b1`.
| `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:1039` (+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:1603`, `crates/metal2vulkan-runtime/src/render_state.rs:1606` (+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:563`, `crates/metal2vulkan-runtime/src/render.rs:6617` | `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:91`, `crates/metal2vulkan-runtime/src/render.rs:3302` (+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:563`, `crates/metal2vulkan-runtime/src/render.rs:6612` | `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:91`, `crates/metal2vulkan-runtime/src/render.rs:3297` (+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:1388` (+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:1611`, `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:7350`, `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:7342`, `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) |
| `TextureAccessCounters` | A sparse texture's access counters (`getTextureAccessCounters:...` and `resetTextureAccessCounters:...` of a blit encoder) (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1456`, `crates/metal2vulkan-runtime/src/families/features.rs:1461` | `rare`: sparse texture access counters |
| `IoCommandQueues` | Fast resource loading (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1466`, `crates/metal2vulkan-runtime/src/families/limits.rs:1024` | `rare`: fast resource loading (missing API) |
| `TextureViewPools` | Texture view pools (`MTLTextureViewPool`) (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1470`, `crates/metal2vulkan-runtime/src/families/limits.rs:1025` | `rare`: texture view pools (missing API) |
| `ColorAttachmentMapping` | Color attachment mapping (`MTLLogicalToPhysicalColorAttachmentMap`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1471` | `rare`: color attachment mapping (missing API) |
| `LossyTextureCompression` | Lossy texture compression (`MTLTextureCompressionTypeLossy`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1465` | `rare`: lossy texture compression |
| `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) |
| `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:7345`, `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:7337`, `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:1497`, `crates/metal2vulkan-runtime/src/families/limits.rs:1022` (+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:1013` | `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:1479`, `crates/metal2vulkan-runtime/src/families/limits.rs:1015` | `app`: residency sets (missing API) |
| `TextureAccessCounters` | A sparse texture's access counters (`getTextureAccessCounters:...` and `resetTextureAccessCounters:...` of a blit encoder) (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1466`, `crates/metal2vulkan-runtime/src/families/features.rs:1471` | `rare`: sparse texture access counters |
| `IoCommandQueues` | Fast resource loading (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1476`, `crates/metal2vulkan-runtime/src/families/limits.rs:1020` | `rare`: fast resource loading (missing API) |
| `TextureViewPools` | Texture view pools (`MTLTextureViewPool`) (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1480`, `crates/metal2vulkan-runtime/src/families/limits.rs:1021` | `rare`: texture view pools (missing API) |
| `ColorAttachmentMapping` | Color attachment mapping (`MTLLogicalToPhysicalColorAttachmentMap`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1481` | `rare`: color attachment mapping (missing API) |
| `LossyTextureCompression` | Lossy texture compression (`MTLTextureCompressionTypeLossy`) (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/features.rs:1475` | `rare`: lossy texture compression |
| `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:1477` | `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:1478` | `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:1482` | `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:349` | `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:890` | `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:1305` | `rare`: overlapping texture copies (Metal races) |
| `RebindTextures` | `Buffer::rebind_bytes_no_copy` of a no-copy buffer with a live texture over its bytes, given memory at another offset in its page than the old | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:637`, `crates/metal2vulkan-runtime/src/texture/heap.rs:2726` (+3) | `none`: a runtime extension's rebind with a live texture |
| `PvrtcBlockOrder` | A PVRTC texture's blocks in a Metal block order the runtime does not lay out | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture.rs:5775` | `rare`: PVRTC regions off whole levels |
| `DecodedHeapTexture` | A heap's or a sparse heap's texture of an ASTC format on a device without that ASTC format (`astc.rs`), or a sparse heap's texture of an ETC2 or... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/texture.rs:1682`, `crates/metal2vulkan-runtime/src/texture/heap.rs:1373` | `app`: an ASTC texture in a heap on a device without ASTC |
| `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:1273` | `rare`: overlapping texture copies (Metal races) |
| `RebindTextures` | `Buffer::rebind_bytes_no_copy` of a no-copy buffer with a live texture over its bytes, given memory at another offset in its page than the old | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:637`, `crates/metal2vulkan-runtime/src/texture/heap.rs:2724` (+3) | `none`: a runtime extension's rebind with a live texture |
| `PvrtcBlockOrder` | A PVRTC texture's blocks in a Metal block order the runtime does not lay out | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture.rs:5761` | `rare`: PVRTC regions off whole levels |
| `DecodedHeapTexture` | A heap's or a sparse heap's texture of an ASTC format on a device without that ASTC format (`astc.rs`), or a sparse heap's texture of an ETC2 or... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/texture.rs:1682`, `crates/metal2vulkan-runtime/src/texture/heap.rs:1371` | `app`: an ASTC texture in a heap on a device without ASTC |
| `VertexFetchPast4GiB` | A draw (`drawPrimitives:` and its forms, or an indirect command buffer's command) that may read a vertex attribute the pipeline fetches in its... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/render/vertex_reach.rs:72` | `rare`: vertex fetch past 4 GiB of a bind offset |
| `StageInFetchPast4GiB` | A dispatch (`dispatchThreads:threadsPerThreadgroup:` and its forms, or an indirect command buffer's command) whose kernel may read a... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/fetch_reach.rs:126` | `rare`: stage-in fetch past 4 GiB of a bind offset |
| `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:7937`, `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:7932`, `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:7947` | `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:1634`, `crates/metal2vulkan-runtime/src/buffer_texture.rs:715` (+7) | `rare`: a rotated drawable's views, blits with images over overlapping rows, rows past its buffer |
| `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:7942` | `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:1602`, `crates/metal2vulkan-runtime/src/buffer_texture.rs:715` (+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:622` (+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) |
| `WriteSwizzle` | A texture of `TextureDescriptor::write_swizzle_enabled` whose swizzle is not the default, with `ShaderWrite` or `RenderTarget` usage, from the... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:547` | `none`: Apple-private writeSwizzleEnabled with a swizzle that writes |
@@ -248,9 +248,9 @@ Generated at `15092b3b1`.
| `DescriptorRangeExceeded` | A descriptor-form slot's window exceeds the descriptor range limit (Profile F) | at the device's limit | 1: `crates/metal2vulkan/src/bind/instantiate.rs:653` | `app`: a buffer window past a device's descriptor range |
| `TexelBufferTooLarge` | A texel buffer exceeds `maxTexelBufferElements` | at the device's limit | 1: `crates/metal2vulkan/src/bind/instantiate.rs:892` | `rare`: a texture buffer past maxTexelBufferElements |
| `HeapTooLarge` | The set-1 heap's elements (one per resident texture a handle can name, plus the null element) exceed the pipeline's heap capacity | at the device's limit | 7: `crates/metal2vulkan/src/bind/heap.rs:1014`, `crates/metal2vulkan/src/bind/heap.rs:1748` (+5) | `rare`: more resident textures than the pipeline's heap holds (bindless at scale) |
| `TessellationFactorRange` | The tessellation factors a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`),... | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:3653` | `rare`: tessellation factors past one storage descriptor |
| `PatchIndexRange` | The patch indices a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`) | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:3697` | `rare`: patch indices past one storage descriptor |
| `ControlPointIndexRange` | The control-point indices a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`) | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:3735` | `rare`: control-point indices past one storage descriptor |
| `TessellationFactorRange` | The tessellation factors a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`),... | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:3630` | `rare`: tessellation factors past one storage descriptor |
| `PatchIndexRange` | The patch indices a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`) | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:3674` | `rare`: patch indices past one storage descriptor |
| `ControlPointIndexRange` | The control-point indices a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`) | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:3712` | `rare`: control-point indices past one storage descriptor |
| `MissingStageInRegion` | The kernel reads the compute encoder's stage-in region (a `[[stage_in]]` attribute stepping by thread position, or `[[grid_origin]]` or... | at the device's limit | 1: `crates/metal2vulkan/src/bind/dispatch.rs:796` | `none`: a stage-in region never set, which Metal leaves undefined |
| `UniformViewAliased` | A `device` buffer slot the pipeline reads through a uniform view (Profile F's per-stage storage-buffer fallback,... | at the device's limit | 1: `crates/metal2vulkan/src/bind/instantiate.rs:607` | `rare`: Profile F's uniform-view fallback aliased by a write |
| `MissingDeviceAddress` | A device-address slot received a buffer without a device address | at the device's limit | 1: `crates/metal2vulkan/src/bind/plan/slots.rs:133` | `rare`: a slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses |
@@ -315,7 +315,7 @@ Each refusal's sites, with the function that builds it.
- `feature::QuadOperations`: `crates/metal2vulkan/src/device/subgroup.rs:371 (subgroup_tier)`; `crates/metal2vulkan/src/device/subgroup.rs:405 (subgroup_tier)`
- `feature::SimdgroupMatrix`: `crates/metal2vulkan/src/lower/simd/matrix.rs:83 (not_implemented)`
- `feature::ArgumentBufferPointers`: `crates/metal2vulkan/src/device/metal.rs:236 (unsupported_features)`
- `feature::ArgumentBufferTextures`: `crates/metal2vulkan-runtime/src/families/features.rs:1648 (tier2)`; `crates/metal2vulkan-runtime/src/pipeline/objects.rs:1036 (create_set_layout)`; `crates/metal2vulkan-runtime/src/resource_ids.rs:1256 (check_capacity)`; `crates/metal2vulkan/src/bind/heap.rs:1325 (array)`; `crates/metal2vulkan/src/bind/heap.rs:415 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:423 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:467 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:472 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:485 (member_view)`; `crates/metal2vulkan/src/lower/access/handle.rs:708 (select)`; `crates/metal2vulkan/src/lower/sampler/select.rs:2362 (select_one)`; `crates/metal2vulkan/src/lower/sampler/select.rs:308 (select_sampling)`; `crates/metal2vulkan/src/lower/sampler/select.rs:469 (select_heap_sampling)`; `crates/metal2vulkan/src/lower/texture/atomic.rs:140 (select)`; `crates/metal2vulkan/src/lower/texture/slot.rs:465 (declare_heap)`; `crates/metal2vulkan/src/lower/texture/slot.rs:534 (declare_heap)`; `crates/metal2vulkan/src/pipeline/link.rs:977 (heap_set)`
- `feature::ArgumentBufferTextures`: `crates/metal2vulkan-runtime/src/families/features.rs:1658 (tier2)`; `crates/metal2vulkan-runtime/src/pipeline/objects.rs:1036 (create_set_layout)`; `crates/metal2vulkan-runtime/src/resource_ids.rs:1256 (check_capacity)`; `crates/metal2vulkan/src/bind/heap.rs:1325 (array)`; `crates/metal2vulkan/src/bind/heap.rs:415 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:423 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:467 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:472 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:485 (member_view)`; `crates/metal2vulkan/src/lower/access/handle.rs:708 (select)`; `crates/metal2vulkan/src/lower/sampler/select.rs:2362 (select_one)`; `crates/metal2vulkan/src/lower/sampler/select.rs:308 (select_sampling)`; `crates/metal2vulkan/src/lower/sampler/select.rs:469 (select_heap_sampling)`; `crates/metal2vulkan/src/lower/texture/atomic.rs:140 (select)`; `crates/metal2vulkan/src/lower/texture/slot.rs:465 (declare_heap)`; `crates/metal2vulkan/src/lower/texture/slot.rs:534 (declare_heap)`; `crates/metal2vulkan/src/pipeline/link.rs:977 (heap_set)`
- `feature::ArgumentBufferObjects`: `crates/metal2vulkan/src/lower/access/encode.rs:446 (select_command)`; `crates/metal2vulkan/src/lower/access/encode.rs:496 (select_command)`; `crates/metal2vulkan/src/lower/access/encode.rs:624 (select_command)`; `crates/metal2vulkan/src/memory/provenance.rs:2185 (classify)`; `crates/metal2vulkan/src/memory/provenance.rs:2547 (access)`
- `feature::DereferenceLoadedPointer`: `crates/metal2vulkan/src/lower/access/dynamic.rs:407 (plan_misses)`; `crates/metal2vulkan/src/lower/access/local.rs:774 (access_ptr)`; `crates/metal2vulkan/src/lower/access/local.rs:796 (threadgroup_constant_refusal)`; `crates/metal2vulkan/src/memory/plan.rs:593 (analyze)`
- `feature::PointerToInteger`: `crates/metal2vulkan/src/lower/access/dynamic.rs:347 (require_addresses)`
@@ -327,10 +327,10 @@ Each refusal's sites, with the function that builds it.
- `feature::Int64Atomics`: `crates/metal2vulkan/src/lower/access/atomic.rs:624 (select)`; `crates/metal2vulkan/src/lower/access/atomic.rs:633 (select)`
- `feature::ImageAtomics`: `crates/metal2vulkan-runtime/src/families/formats.rs:464 (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs:468 (atomic_gap)`; `crates/metal2vulkan/src/lower/texture/slot.rs:900 (atomic_format)`
- `feature::DescriptorCount`: `crates/metal2vulkan/src/lower/access/mod.rs:1684 (accept_placement)`; `crates/metal2vulkan/src/lower/select.rs:1641 (finish)`; `crates/metal2vulkan/src/pipeline/link.rs:1135 (limit_error)`
- `feature::BufferRange`: `crates/metal2vulkan-runtime/src/function_table.rs:569 (past_storage_buffer_range)`; `crates/metal2vulkan/src/bind/graphics.rs:3658 (patch_binding)`; `crates/metal2vulkan/src/bind/graphics.rs:3702 (patch_binding)`; `crates/metal2vulkan/src/bind/graphics.rs:3740 (patch_binding)`; `crates/metal2vulkan/src/bind/instantiate.rs:659 (bind_buffers)`; `crates/metal2vulkan/src/lower/access/function_table.rs:226 (select)`; `crates/metal2vulkan/src/lower/access/mod.rs:1184 (place_slots)`
- `feature::BufferRange`: `crates/metal2vulkan-runtime/src/function_table.rs:569 (past_storage_buffer_range)`; `crates/metal2vulkan/src/bind/graphics.rs:3635 (patch_binding)`; `crates/metal2vulkan/src/bind/graphics.rs:3679 (patch_binding)`; `crates/metal2vulkan/src/bind/graphics.rs:3717 (patch_binding)`; `crates/metal2vulkan/src/bind/instantiate.rs:659 (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:2150 (through_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:519 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:582 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:614 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:851 (texture_buffer_texel)`; `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:1628 (sparse_missing)`; `crates/metal2vulkan-runtime/src/families/formats.rs:227 (none)`; `crates/metal2vulkan-runtime/src/families/formats.rs:271 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:291 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:306 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:353 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:392 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:474 (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs:508 (lacking)`; `crates/metal2vulkan-runtime/src/families/formats.rs:522 (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:2292 (viewing)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1031 (check_target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1369 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1709 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1802 (attachment_format)`; `crates/metal2vulkan-runtime/src/resolve.rs:409 (unmodelled_resolve)`; `crates/metal2vulkan-runtime/src/resolve.rs:616 (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:301 (interleave_merge)`; `crates/metal2vulkan-runtime/src/shadow.rs:648 (unmerged)`; `crates/metal2vulkan-runtime/src/shadow.rs:655 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:2047 (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs:3588 (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:1949 (planned_heap_texture)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:80 (refused)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:115 (converted_storage)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:278 (ycbcr_write_shadow)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:384 (new_render_shadow)`; `crates/metal2vulkan-runtime/src/two_planes.rs:150 (unmeasured)`; `crates/metal2vulkan-runtime/src/view_plan.rs:380 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:393 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:400 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:412 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:422 (check_format)`; `crates/metal2vulkan-runtime/src/ycbcr.rs:285 (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/fraLine truncated
- `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:2118 (through_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:519 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:582 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:614 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:851 (texture_buffer_texel)`; `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:1635 (read_write_tier)`; `crates/metal2vulkan-runtime/src/families/formats.rs:1628 (sparse_missing)`; `crates/metal2vulkan-runtime/src/families/formats.rs:227 (none)`; `crates/metal2vulkan-runtime/src/families/formats.rs:271 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:291 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:306 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:353 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:392 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:474 (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs:508 (lacking)`; `crates/metal2vulkan-runtime/src/families/formats.rs:522 (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:2287 (viewing)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1031 (check_target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1369 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1709 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1802 (attachment_format)`; `crates/metal2vulkan-runtime/src/resolve.rs:409 (unmodelled_resolve)`; `crates/metal2vulkan-runtime/src/resolve.rs:616 (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:301 (interleave_merge)`; `crates/metal2vulkan-runtime/src/shadow.rs:648 (unmerged)`; `crates/metal2vulkan-runtime/src/shadow.rs:655 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:2047 (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs:3588 (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:1947 (planned_heap_texture)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:80 (refused)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:115 (converted_storage)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:278 (ycbcr_write_shadow)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:384 (new_render_shadow)`; `crates/metal2vulkan-runtime/src/two_planes.rs:122 (unmeasured)`; `crates/metal2vulkan-runtime/src/view_plan.rs:380 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:393 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:400 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:412 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:422 (check_format)`; `crates/metal2vulkan-runtime/src/ycbcr.rs:285 (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/fraLine truncated
- `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)`
@@ -346,22 +346,22 @@ 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:880 (texel_ranges)`; `crates/metal2vulkan/src/bind/instantiate.rs:886 (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:5894 (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:1222 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1240 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1254 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1297 (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:1078 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1169 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1206 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1798 (plan_sample)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:785 (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:5889 (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:1222 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1240 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1254 (unorm8)`; `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:1297 (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:1078 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1169 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1206 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1798 (plan_sample)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:785 (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:3999 (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)`
- `feature::LayeredRendering`: `crates/metal2vulkan-runtime/src/render_pass.rs:1669 (target)`; `crates/metal2vulkan-runtime/src/render_state.rs:1107 (needs_viewports)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:781 (target_index)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:800 (target_index)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1313 (own_index_store)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs:150 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs:172 (refused)`
- `feature::ClipDistance`: `crates/metal2vulkan/src/lower/mesh/mod.rs:941 (select)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:949 (select)`
- `feature::VertexAmplification`: `crates/metal2vulkan/src/bind/graphics.rs:3976 (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)`
- `feature::LayeredRendering`: `crates/metal2vulkan-runtime/src/render_pass.rs:1669 (target)`; `crates/metal2vulkan-runtime/src/render_state.rs:1107 (needs_viewports)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:778 (target_index)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:797 (target_index)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1313 (own_index_store)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs:150 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs:172 (refused)`
- `feature::ClipDistance`: `crates/metal2vulkan/src/lower/mesh/mod.rs:934 (select)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:942 (select)`
- `feature::DualSourceBlending`: `crates/metal2vulkan-runtime/src/families/formats.rs:386 (answers)`; `crates/metal2vulkan/src/metal/state.rs:37 (blend_factor)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:1157 (check_outputs)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:463 (rotated_blend)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:538 (rotated_blend)`
- `feature::Barycentrics`: `crates/metal2vulkan/src/device/metal.rs:263 (unsupported_features)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1924 (input_builtin)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:745 (param)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs:148 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/geometry.rs:170 (refused)`
- `feature::StencilExport`: `crates/metal2vulkan-runtime/src/families/features.rs:1114 (state)`; `crates/metal2vulkan/src/bind/graphics.rs:2685 (shadow_stencil_words)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs:157 (device_form)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs:168 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/stencil.rs:55 (shadow_stencil)`; `crates/metal2vulkan/src/pipeline/link/stencil.rs:73 (shadow_stencil)`
- `feature::StencilExport`: `crates/metal2vulkan-runtime/src/families/features.rs:1114 (state)`; `crates/metal2vulkan/src/bind/graphics.rs:2672 (shadow_stencil_words)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs:157 (device_form)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs:168 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/stencil.rs:55 (shadow_stencil)`; `crates/metal2vulkan/src/pipeline/link/stencil.rs:73 (shadow_stencil)`
- `feature::SampleRateShading`: `crates/metal2vulkan/src/pipeline/link/graphics.rs:844 (sample_invocations)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:846 (sample_invocations)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:928 (sample_invocations)`
- `feature::PixelCoverageAtSampleRate`: `crates/metal2vulkan/src/lower/fragment/coverage.rs:296 (finish)`; `crates/metal2vulkan/src/lower/simd/mod.rs:754 (select_param)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:879 (sample_invocations)`
- `feature::InterfaceComponents`: `crates/metal2vulkan/src/pipeline/compile/color_group.rs:202 (refusal)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:301 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:409 (assign)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:90 (limit_error)`
- `feature::UnmatchedVarying`: `crates/metal2vulkan/src/pipeline/link/varyings.rs:318 (mesh_fragment)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:537 (varyings)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:548 (varyings)`
- `feature::KernelStageIn`: `crates/metal2vulkan-runtime/src/indirect_execute.rs:376 (record)`; `crates/metal2vulkan/src/bind/dispatch.rs:871 (instantiate)`; `crates/metal2vulkan/src/lower/stage_io/stage_in.rs:133 (select)`
- `feature::Tessellation`: `crates/metal2vulkan-air/src/canon/mod.rs:1256 (post_check)`; `crates/metal2vulkan-air/src/canon/mod.rs:1347 (post_check)`; `crates/metal2vulkan/src/bind/graphics.rs:3856 (tessellation_dispatch)`; `crates/metal2vulkan/src/lower/stage_io/fetch.rs:519 (select)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1508 (primitive_id_output)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1794 (input_builtin)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:828 (param)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:150 (not_implemented)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:489 (plan_entry)`; `crates/metal2vulkan/src/metal/vertex.rs:219 (fetch_as)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:212 (control_plan)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:292 (check_fragment)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:316 (push_offset)`
- `feature::MeshShading`: `crates/metal2vulkan/src/bind/graphics.rs:1604 (plan)`; `crates/metal2vulkan/src/bind/graphics.rs:3058 (mesh_limit)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:502 (check_payload)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:541 (plan_entry)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:575 (plan_entry)`; `crates/metal2vulkan/src/memory/plan.rs:2056 (reprs)`; `crates/metal2vulkan/src/pipeline/link/mesh.rs:102 (records)`
- `feature::Tessellation`: `crates/metal2vulkan-air/src/canon/mod.rs:1256 (post_check)`; `crates/metal2vulkan-air/src/canon/mod.rs:1347 (post_check)`; `crates/metal2vulkan/src/bind/graphics.rs:3833 (tessellation_dispatch)`; `crates/metal2vulkan/src/lower/stage_io/fetch.rs:519 (select)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1508 (primitive_id_output)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1794 (input_builtin)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:828 (param)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:150 (not_implemented)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:489 (plan_entry)`; `crates/metal2vulkan/src/metal/vertex.rs:219 (fetch_as)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:212 (control_plan)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:292 (check_fragment)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:316 (push_offset)`
- `feature::MeshShading`: `crates/metal2vulkan/src/bind/graphics.rs:1591 (plan)`; `crates/metal2vulkan/src/bind/graphics.rs:3045 (mesh_limit)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:499 (check_payload)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:538 (plan_entry)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:572 (plan_entry)`; `crates/metal2vulkan/src/memory/plan.rs:2056 (reprs)`; `crates/metal2vulkan/src/pipeline/link/mesh.rs:102 (records)`
- `feature::TileShading`: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:520 (scratch)`; `crates/metal2vulkan/src/bind/plan/compute.rs:237 (tile_memory)`; `crates/metal2vulkan/src/lower/access/tile.rs:151 (not_implemented)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:275 (tile_shading)`; `crates/metal2vulkan/src/pipeline/compile/api.rs:699 (tile_pipeline)`
- `feature::Imageblocks`: `crates/metal2vulkan/src/lower/access/imageblock.rs:98 (imageblocks)`; `crates/metal2vulkan/src/lower/access/mod.rs:908 (select_param)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:104 (require)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:412 (reach)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:554 (plan_tests)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:578 (plan_tests)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:86 (not_implemented)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2370 (select)`; `crates/metal2vulkan/src/lower/texture/slice.rs:139 (imageblocks)`; `crates/metal2vulkan/src/pipeline/link/imageblock.rs:50 (fragment_imageblock)`
- `feature::RayTracing`: `crates/metal2vulkan/src/bind/acceleration.rs:202 (instance_record)`; `crates/metal2vulkan/src/bind/acceleration.rs:216 (instance_record)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1087 (primitive_data_read)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1202 (instance_count)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1245 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1257 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1282 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1297 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1312 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:344 (slot_of)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:385 (select_param)`; `crates/metal2vulkan/src/lower/select.rs:899 (route_air)`
@@ -373,19 +373,19 @@ Each refusal's sites, with the function that builds it.
- `feature::Attribute`: `crates/metal2vulkan-air/src/bitcode/attrs.rs:493 (known)`; `crates/metal2vulkan/src/error/mod.rs:256 (from)`
- `feature::BitcodeRecord`: `crates/metal2vulkan-air/src/bitcode/attrs.rs:337 (decode_lists)`; `crates/metal2vulkan-air/src/bitcode/function.rs:572 (symtab)`; `crates/metal2vulkan-air/src/bitcode/metadata.rs:130 (decode)`; `crates/metal2vulkan-air/src/bitcode/metadata.rs:157 (decode)`; `crates/metal2vulkan-air/src/bitcode/module.rs:727 (check_bodies)`; `crates/metal2vulkan-air/src/bitcode/module.rs:872 (symtab)`; `crates/metal2vulkan/src/error/mod.rs:257 (from)`
- `feature::SyncScope`: `crates/metal2vulkan-air/src/bitcode/function.rs:1255 (atomic)`; `crates/metal2vulkan/src/error/mod.rs:258 (from)`
- `feature::SubgroupOperations`: `crates/metal2vulkan-runtime/src/families/features.rs:1713 (simd)`; `crates/metal2vulkan/src/lower/simd/mod.rs:407 (finish)`; `crates/metal2vulkan/src/lower/simd/mod.rs:466 (full_quads)`; `crates/metal2vulkan/src/lower/simd/mod.rs:990 (select_group)`
- `feature::SubgroupOperations`: `crates/metal2vulkan-runtime/src/families/features.rs:1723 (simd)`; `crates/metal2vulkan/src/lower/simd/mod.rs:407 (finish)`; `crates/metal2vulkan/src/lower/simd/mod.rs:466 (full_quads)`; `crates/metal2vulkan/src/lower/simd/mod.rs:990 (select_group)`
- `feature::DirectCall`: `crates/metal2vulkan-air/src/canon/mod.rs:1319 (post_check)`
- `feature::WideSwitchLiteral`: `crates/metal2vulkan/src/structurize/emit.rs:207 (check_tree)`
- `feature::Lowering`: `crates/metal2vulkan/src/bind/plan/resources.rs:762 (level_views)`; `crates/metal2vulkan/src/lower/access/handle.rs:1062 (texture_target)`; `crates/metal2vulkan/src/lower/access/handle.rs:1073 (sampler_target)`; `crates/metal2vulkan/src/lower/access/handle.rs:318 (domain_kind)`; `crates/metal2vulkan/src/lower/access/imageblock.rs:175 (operand)`; `crates/metal2vulkan/src/lower/access/mod.rs:571 (not_lowered)`; `crates/metal2vulkan/src/lower/access/pulled.rs:76 (share)`; `crates/metal2vulkan/src/lower/arith/legal.rs:53 (not_lowered)`; `crates/metal2vulkan/src/lower/dispatch.rs:114 (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/discard.rs:144 (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/discard.rs:653 (plan)`; `crates/metal2vulkan/src/lower/fragment/mod.rs:123 (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/snapshot.rs:168 (finish)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:149 (not_lowered)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:126 (not_lowered)`; `crates/metal2vulkan/src/lower/sampler/mod.rs:212 (refuse)`; `crates/metal2vulkan/src/lower/sampler/select.rs:30 (refuse)`; `crates/metal2vulkan/src/lower/select.rs:829 (not_lowered)`; `crates/metal2vulkan/src/lower/select.rs:918 (route_air)`; `crates/metal2vulkan/src/lower/simd/mod.rs:136 (not_lowered)`; `crates/metal2vulkan/src/lower/simd/mod.rs:747 (select_param)`; `crates/metal2vulkan/src/lower/simd/workgroup.rs:353 (check)`; `crates/metal2vulkan/src/lower/stage_io/fetch.rs:96 (not_lowered)`; `crates/metal2vulkan/src/lower/stage_io/mod.rs:182 (not_lowered)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:72 (not_lowered)`; `crates/metal2vulkan/src/lower/sync/memory_model.rs:269 (not_implemented)`; `crates/metal2vulkan/src/lower/sync/memory_model.rs:310 (select)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:146 (not_lowered)`; `crates/metal2vulkan/src/lower/texture/mod.rs:180 (refuse)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3683 (select_write)`; `crates/metal2vulkan/src/memory/alloca.rs:54 (not_lowered)`; `crates/metal2vulkan/src/memory/leaf.rs:183 (not_lowered)`; `crates/metal2vulkan/src/memory/plan.rs:490 (not_lowered)`; `crates/metal2vulkan/src/memory/provenance.rs:665 (not_lowered)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:96 (patch_fetch_projection)`
- `feature::Lowering`: `crates/metal2vulkan/src/bind/plan/resources.rs:762 (level_views)`; `crates/metal2vulkan/src/lower/access/handle.rs:1062 (texture_target)`; `crates/metal2vulkan/src/lower/access/handle.rs:1073 (sampler_target)`; `crates/metal2vulkan/src/lower/access/handle.rs:318 (domain_kind)`; `crates/metal2vulkan/src/lower/access/imageblock.rs:175 (operand)`; `crates/metal2vulkan/src/lower/access/mod.rs:571 (not_lowered)`; `crates/metal2vulkan/src/lower/access/pulled.rs:76 (share)`; `crates/metal2vulkan/src/lower/arith/legal.rs:53 (not_lowered)`; `crates/metal2vulkan/src/lower/dispatch.rs:114 (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/discard.rs:144 (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/discard.rs:653 (plan)`; `crates/metal2vulkan/src/lower/fragment/mod.rs:123 (not_lowered)`; `crates/metal2vulkan/src/lower/fragment/snapshot.rs:168 (finish)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:147 (not_lowered)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:126 (not_lowered)`; `crates/metal2vulkan/src/lower/sampler/mod.rs:212 (refuse)`; `crates/metal2vulkan/src/lower/sampler/select.rs:30 (refuse)`; `crates/metal2vulkan/src/lower/select.rs:829 (not_lowered)`; `crates/metal2vulkan/src/lower/select.rs:918 (route_air)`; `crates/metal2vulkan/src/lower/simd/mod.rs:136 (not_lowered)`; `crates/metal2vulkan/src/lower/simd/mod.rs:747 (select_param)`; `crates/metal2vulkan/src/lower/simd/workgroup.rs:353 (check)`; `crates/metal2vulkan/src/lower/stage_io/fetch.rs:96 (not_lowered)`; `crates/metal2vulkan/src/lower/stage_io/mod.rs:182 (not_lowered)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:72 (not_lowered)`; `crates/metal2vulkan/src/lower/sync/memory_model.rs:269 (not_implemented)`; `crates/metal2vulkan/src/lower/sync/memory_model.rs:310 (select)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:146 (not_lowered)`; `crates/metal2vulkan/src/lower/texture/mod.rs:180 (refuse)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3683 (select_write)`; `crates/metal2vulkan/src/memory/alloca.rs:54 (not_lowered)`; `crates/metal2vulkan/src/memory/leaf.rs:183 (not_lowered)`; `crates/metal2vulkan/src/memory/plan.rs:490 (not_lowered)`; `crates/metal2vulkan/src/memory/provenance.rs:665 (not_lowered)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:96 (patch_fetch_projection)`
- `feature::SamplerAddressMode`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:176`; `crates/metal2vulkan/src/metal/sampler.rs:251 (check_sampler)`
- `feature::AlphaToOne`: `crates/metal2vulkan/src/pipeline/link/graphics.rs:282 (graphics_state)`
- `feature::StageStoresAndAtomics`: `crates/metal2vulkan/src/lower/access/tile_memory.rs:72 (written)`
- `feature::FunctionConstantArgument`: `crates/metal2vulkan-air/src/canon/interface.rs:899 (absent_values)`; `crates/metal2vulkan/src/lower/access/absent.rs:100 (require)`
- `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:3272 (mesh_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:3323 (emulated_draw)`
- `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:3249 (mesh_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:3300 (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:2173 (check_pipeline)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:1017 (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::IndependentBlending`: `crates/metal2vulkan-runtime/src/render.rs:2168 (check_pipeline)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:1017 (uniform_blend)`
- `feature::RasterSampleCount`: `crates/metal2vulkan-runtime/src/families/limits.rs:1059 (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)`
- `feature::DepthBiasClamp`: `crates/metal2vulkan/src/metal/state.rs:463 (depth_bias)`
@@ -395,7 +395,7 @@ Each refusal's sites, with the function that builds it.
- `feature::TextureSampleCount`: `crates/metal2vulkan-runtime/src/image_plan.rs:1244 (check_image_limits)`; `crates/metal2vulkan-runtime/src/image_plan.rs:598 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:608 (plan_held)`
- `feature::TextureView`: `crates/metal2vulkan-runtime/src/binding_view.rs:156 (binding_view)`; `crates/metal2vulkan-runtime/src/texture.rs:5136 (view)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs:1427 (make_second_twin)`; `crates/metal2vulkan-runtime/src/texture/view_shadow.rs:298 (apart_refusal)`; `crates/metal2vulkan-runtime/src/view_plan.rs:433 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:483 (check_view)`; `crates/metal2vulkan-runtime/src/view_plan.rs:505 (check_view)`
- `feature::TextureSwizzle`: `crates/metal2vulkan-runtime/src/binding_view.rs:167 (binding_view)`; `crates/metal2vulkan-runtime/src/texture.rs:996 (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:3409 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3756 (select_write)`; `crates/metal2vulkan/src/lower/texture/slice.rs:307 (select)`
- `feature::MipmapGeneration`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1850 (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::MipmapGeneration`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1818 (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:2783 (gpu_times)`
- `feature::CountingVisibility`: `crates/metal2vulkan-runtime/src/visibility.rs:452 (check_mode)`
@@ -408,7 +408,7 @@ Each refusal's sites, with the function that builds it.
- `feature::SparseMapping`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:469 (splits_a_unit)`
- `feature::TimelineSemaphores`: `crates/metal2vulkan-runtime/src/device/create.rs:1115 (timeline_difference)`
- `feature::Reflection`: `crates/metal2vulkan/src/bind/argument_buffer.rs:626 (unmeasured)`; `crates/metal2vulkan/src/reflection/derive.rs:178 (specialized_reads)`; `crates/metal2vulkan/src/reflection/derive.rs:212 (read_attributes)`; `crates/metal2vulkan/src/reflection/derive.rs:239 (gap_at)`; `crates/metal2vulkan/src/reflection/function.rs:172 (unmeasured)`; `crates/metal2vulkan/src/reflection/function.rs:366 (attribute)`; `crates/metal2vulkan/src/reflection/function.rs:437 (module_constants)`; `crates/metal2vulkan/src/reflection/linked.rs:125 (function)`; `crates/metal2vulkan/src/reflection/mod.rs:249 (stage)`
- `feature::HeapTextureTiling`: `crates/metal2vulkan-runtime/src/texture/heap.rs:630 (tiling_refusal)`
- `feature::HeapTextureTiling`: `crates/metal2vulkan-runtime/src/texture/heap.rs:628 (tiling_refusal)`
- `feature::ViewportDepthRange`: `crates/metal2vulkan-runtime/src/render_state.rs:1216 (depth_ranges_refused)`
- `feature::UndeclaredTextureUsage`: `crates/metal2vulkan-runtime/src/binding_view.rs:141 (binding_view)`; `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs:72 (refused)`
- `feature::RenderTargetSize`: `crates/metal2vulkan-runtime/src/render_pass.rs:1271 (framebuffer_fits)`
@@ -420,23 +420,23 @@ Each refusal's sites, with the function that builds it.
- `feature::ProgramScopeBinding`: `crates/metal2vulkan-air/src/abi/module.rs:77 (decode)`; `crates/metal2vulkan/src/error/mod.rs:267 (from)`
- `feature::SeqCstFence`: `crates/metal2vulkan/src/lower/sync/barrier.rs:443 (require_seq_cst)`
- `feature::PostDepthCoverage`: `crates/metal2vulkan-runtime/src/families/features.rs:1219 (state)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:783 (param)`
- `gap::Textures`: `crates/metal2vulkan-runtime/src/blit_texture.rs:163 (check_depth_view)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:1563 (view_usage)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1625 (compile_error)`; `crates/metal2vulkan-runtime/src/texture.rs:1461 (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs:2221 (storage_over_buffer)`; `crates/metal2vulkan-runtime/src/texture.rs:3036 (new_image_starting)`; `crates/metal2vulkan-runtime/src/texture.rs:4078 (image)`; `crates/metal2vulkan-runtime/src/texture.rs:5703 (host_copy)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:207 (new_surface_planes_texture)`
- `gap::Textures`: `crates/metal2vulkan-runtime/src/blit_texture.rs:163 (check_depth_view)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:1563 (view_usage)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1625 (compile_error)`; `crates/metal2vulkan-runtime/src/texture.rs:1461 (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs:2221 (storage_over_buffer)`; `crates/metal2vulkan-runtime/src/texture.rs:3036 (new_image_starting)`; `crates/metal2vulkan-runtime/src/texture.rs:4078 (image)`; `crates/metal2vulkan-runtime/src/texture.rs:5689 (host_copy)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:207 (new_surface_planes_texture)`
- `gap::ResourceHeap`: `crates/metal2vulkan-runtime/src/binding.rs:1982 (descriptor)`
- `gap::SparseHeaps`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:461 (first_slice)`; `crates/metal2vulkan-runtime/src/texture.rs:1674 (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture.rs:4826 (make_aliasable)`
- `gap::SparseTileMaps`: `crates/metal2vulkan-runtime/src/binding.rs:562 (slot_tile_map)`; `crates/metal2vulkan-runtime/src/sparse/texture.rs:30 (sparse_refusal)`; `crates/metal2vulkan-runtime/src/texture.rs:1707 (plan_sparse_texture)`
- `gap::HeapPastMaxBufferSize`: `crates/metal2vulkan-runtime/src/heap.rs:714 (heap_size)`
- `gap::HeapTextureAlignment`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1071 (check_heap_base)`
- `gap::HeapTextureMemory`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1510 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1517 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2059 (host_heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2291 (memory_shadow)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:554 (memory_refusal)`
- `gap::HeapTextureAlignment`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1069 (check_heap_base)`
- `gap::HeapTextureMemory`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1508 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1515 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2057 (host_heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2289 (memory_shadow)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:552 (memory_refusal)`
- `gap::FunctionTablePastMaxBufferLength`: `crates/metal2vulkan-runtime/src/function_table.rs:622 (past_limit)`
- `gap::IndirectCommandBufferPastMaxBufferLength`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:522 (new_indirect_command_buffer)`
- `gap::IndirectRenderCommands`: `crates/metal2vulkan-runtime/src/compute.rs:1144 (execute_range)`; `crates/metal2vulkan-runtime/src/compute.rs:1225 (execute_indirect_range)`; `crates/metal2vulkan-runtime/src/depth_stencil.rs:85 (gpu_resource_id)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:4358 (render_state)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:517 (new_indirect_command_buffer)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1632 (compile_error)`; `crates/metal2vulkan-runtime/src/render.rs:7196 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7681 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:8098 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:8605 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/executions.rs:1106 (back_memoryless)`; `crates/metal2vulkan-runtime/src/render/executions.rs:2057 (record)`; `crates/metal2vulkan-runtime/src/render/executions.rs:2906 (record_forms)`; `crates/metal2vulkan-runtime/src/render/executions.rs:382 (execute_range)`; `crates/metal2vulkan-runtime/src/render/executions.rs:441 (execute_indirect_range)`; `crates/metal2vulkan-runtime/src/render/executions.rs:456 (execute_indirect_range)`
- `gap::IndirectRenderCommands`: `crates/metal2vulkan-runtime/src/compute.rs:1144 (execute_range)`; `crates/metal2vulkan-runtime/src/compute.rs:1225 (execute_indirect_range)`; `crates/metal2vulkan-runtime/src/depth_stencil.rs:85 (gpu_resource_id)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:4368 (render_state)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:517 (new_indirect_command_buffer)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1632 (compile_error)`; `crates/metal2vulkan-runtime/src/render.rs:7191 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7676 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:8093 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:8561 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/executions.rs:1106 (back_memoryless)`; `crates/metal2vulkan-runtime/src/render/executions.rs:2916 (record_forms)`; `crates/metal2vulkan-runtime/src/render/executions.rs:382 (execute_range)`; `crates/metal2vulkan-runtime/src/render/executions.rs:441 (execute_indirect_range)`; `crates/metal2vulkan-runtime/src/render/executions.rs:456 (execute_indirect_range)`
- `gap::IndirectImageblockSize`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:3363 (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:1165 (of)`
- `gap::ExtensionEnable`: `crates/metal2vulkan-runtime/src/enables.rs:1156 (of)`
- `gap::Render`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:404 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:460 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:684 (check_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:796 (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:2223 (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs:5940 (next_instance)`; `crates/metal2vulkan-runtime/src/render.rs:7775 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:516 (scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1313 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1676 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1730 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1791 (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs:2024 (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs:1035 (attach)`; `crates/metal2vulkan-runtime/src/resolve.rs:1103 (color_copy)`; `crates/metal2vulkan-runtime/src/resolve.rs:1150 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1167 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1232 (destination)`
- `gap::Render`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:404 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:460 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:684 (check_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:796 (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:2218 (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs:5935 (next_instance)`; `crates/metal2vulkan-runtime/src/render.rs:7770 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:516 (scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1313 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1676 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1730 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1791 (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs:2024 (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs:1035 (attach)`; `crates/metal2vulkan-runtime/src/resolve.rs:1103 (color_copy)`; `crates/metal2vulkan-runtime/src/resolve.rs:1150 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1167 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1232 (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:1861 (positioned_stand_in)`; `crates/metal2vulkan-runtime/src/sample_positions.rs:185 (grid)`
@@ -444,40 +444,40 @@ 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:1039`; `crates/metal2vulkan-runtime/src/render_state.rs:1208 (depth_ranges_refused)`; `crates/metal2vulkan-runtime/src/render_state.rs:1575 (bias_holds)`; `crates/metal2vulkan-runtime/src/render_state.rs:1594 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:527 (depth_range)`; `crates/metal2vulkan-runtime/src/render_state.rs:755 (compensation)`
- `gap::NonFiniteDepthBias`: `crates/metal2vulkan-runtime/src/render_state.rs:1603 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:1606 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:365 (set_depth_bias)`; `crates/metal2vulkan-runtime/src/render_state.rs:463 (draw_viewports)`; `crates/metal2vulkan-runtime/src/render_state.rs:605 (compensation)`
- `gap::DepthNeverWithoutAttachment`: `crates/metal2vulkan-runtime/src/depth_stencil.rs:147 (failing_draw)`
- `gap::HiddenDepthStencil`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:563 (hidden)`; `crates/metal2vulkan-runtime/src/render.rs:6617 (hidden_depth_stencil)`
- `gap::IndirectDrawArguments`: `crates/metal2vulkan-runtime/src/index_bounds.rs:91 (new)`; `crates/metal2vulkan-runtime/src/render.rs:3302 (draw_indexed_primitives_indirect)`; `crates/metal2vulkan-runtime/src/render.rs:7516 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7585 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7616 (draw_resident)`
- `gap::HiddenDepthStencil`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:563 (hidden)`; `crates/metal2vulkan-runtime/src/render.rs:6612 (hidden_depth_stencil)`
- `gap::IndirectDrawArguments`: `crates/metal2vulkan-runtime/src/index_bounds.rs:91 (new)`; `crates/metal2vulkan-runtime/src/render.rs:3297 (draw_indexed_primitives_indirect)`; `crates/metal2vulkan-runtime/src/render.rs:7511 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7580 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:7611 (draw_resident)`
- `gap::DepthStencilResolve`: `crates/metal2vulkan-runtime/src/depth_stencil_resolve.rs:441 (draws_run)`; `crates/metal2vulkan-runtime/src/resolve.rs:1388 (plan)`; `crates/metal2vulkan-runtime/src/resolve.rs:787 (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs:885 (steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:905 (steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:946 (split_steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:958 (split_steps)`
- `gap::TileAtSampleCount`: `crates/metal2vulkan-runtime/src/render_pass.rs:1611 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:937`
- `gap::ImageblockMasters`: `crates/metal2vulkan-runtime/src/render.rs:7350 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:929 (dispatch_tiles_resident)`
- `gap::TileAndFragmentImageblocks`: `crates/metal2vulkan-runtime/src/render.rs:7342 (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)`
- `gap::TextureAccessCounters`: `crates/metal2vulkan-runtime/src/families/features.rs:1456 (state)`; `crates/metal2vulkan-runtime/src/families/features.rs:1461 (state)`
- `gap::IoCommandQueues`: `crates/metal2vulkan-runtime/src/families/features.rs:1466 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1024 (state)`
- `gap::TextureViewPools`: `crates/metal2vulkan-runtime/src/families/features.rs:1470 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1025 (state)`
- `gap::ColorAttachmentMapping`: `crates/metal2vulkan-runtime/src/families/features.rs:1471 (state)`
- `gap::LossyTextureCompression`: `crates/metal2vulkan-runtime/src/families/features.rs:1465 (state)`
- `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::ImageblockMasters`: `crates/metal2vulkan-runtime/src/render.rs:7345 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:929 (dispatch_tiles_resident)`
- `gap::TileAndFragmentImageblocks`: `crates/metal2vulkan-runtime/src/render.rs:7337 (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:1497 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1022 (state)`; `crates/metal2vulkan-runtime/src/families/mod.rs:362 (audit)`
- `gap::CounterSampleBuffers`: `crates/metal2vulkan-runtime/src/families/limits.rs:1013 (state)`
- `gap::ResidencySets`: `crates/metal2vulkan-runtime/src/families/features.rs:1479 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1015 (state)`
- `gap::TextureAccessCounters`: `crates/metal2vulkan-runtime/src/families/features.rs:1466 (state)`; `crates/metal2vulkan-runtime/src/families/features.rs:1471 (state)`
- `gap::IoCommandQueues`: `crates/metal2vulkan-runtime/src/families/features.rs:1476 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1020 (state)`
- `gap::TextureViewPools`: `crates/metal2vulkan-runtime/src/families/features.rs:1480 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1021 (state)`
- `gap::ColorAttachmentMapping`: `crates/metal2vulkan-runtime/src/families/features.rs:1481 (state)`
- `gap::LossyTextureCompression`: `crates/metal2vulkan-runtime/src/families/features.rs:1475 (state)`
- `gap::ShaderValidation`: `crates/metal2vulkan-runtime/src/families/features.rs:1477 (state)`
- `gap::ShaderLogging`: `crates/metal2vulkan-runtime/src/families/features.rs:1478 (state)`
- `gap::DeviceNotifications`: `crates/metal2vulkan-runtime/src/families/features.rs:1482 (state)`
- `gap::RateMapRegions`: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs:349 (refusal)`
- `gap::LayeredPass`: `crates/metal2vulkan-runtime/src/color_resolve.rs:890 (plan)`
- `gap::FunctionOptions`: `crates/metal2vulkan-runtime/src/library.rs:215 (new_function_with_descriptor)`
- `gap::OverlappingTextureCopies`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1305 (texture_copies_of_bytes)`
- `gap::RebindTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:637 (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2726 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2741 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2752 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2795 (dma_buf_heap_images_again)`
- `gap::PvrtcBlockOrder`: `crates/metal2vulkan-runtime/src/texture.rs:5775 (host_copy)`
- `gap::DecodedHeapTexture`: `crates/metal2vulkan-runtime/src/texture.rs:1682 (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1373 (heap_plan)`
- `gap::OverlappingTextureCopies`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1273 (texture_copies_of_bytes)`
- `gap::RebindTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:637 (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2724 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2739 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2750 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2793 (dma_buf_heap_images_again)`
- `gap::PvrtcBlockOrder`: `crates/metal2vulkan-runtime/src/texture.rs:5761 (host_copy)`
- `gap::DecodedHeapTexture`: `crates/metal2vulkan-runtime/src/texture.rs:1682 (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1371 (heap_plan)`
- `gap::VertexFetchPast4GiB`: `crates/metal2vulkan-runtime/src/render/vertex_reach.rs:72 (check_vertex_reach)`
- `gap::StageInFetchPast4GiB`: `crates/metal2vulkan-runtime/src/fetch_reach.rs:126 (check_stage_in_reach)`
- `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:7937 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/restart.rs:72 (gap)`
- `gap::PrivatePrimitives`: `crates/metal2vulkan-runtime/src/render.rs:7932 (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:7947 (draw_resident)`
- `gap::RotatedTexture`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1634 (texel_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:715 (turned_plane)`; `crates/metal2vulkan-runtime/src/rotated.rs:185 (new)`; `crates/metal2vulkan-runtime/src/rotated.rs:201 (new)`; `crates/metal2vulkan-runtime/src/shadow.rs:642 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:5094 (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:622 (make_texture_over)`; `crates/metal2vulkan-runtime/src/detach.rs:172 (detach_host_pages)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2935 (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::PrimitiveIdIndices`: `crates/metal2vulkan-runtime/src/render.rs:7942 (draw_resident)`
- `gap::RotatedTexture`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1602 (texel_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:715 (turned_plane)`; `crates/metal2vulkan-runtime/src/rotated.rs:185 (new)`; `crates/metal2vulkan-runtime/src/rotated.rs:201 (new)`; `crates/metal2vulkan-runtime/src/shadow.rs:642 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:5094 (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:622 (make_texture_over)`; `crates/metal2vulkan-runtime/src/detach.rs:172 (detach_host_pages)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2933 (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)`
- `gap::WriteSwizzle`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:547 (check_made)`
- `gap::DetachedTexelAccess`: `crates/metal2vulkan-runtime/src/texture.rs:4924 (refuse_detached_texels)`
@@ -495,9 +495,9 @@ Each refusal's sites, with the function that builds it.
- `bind::DescriptorRangeExceeded`: `crates/metal2vulkan/src/bind/instantiate.rs:653 (bind_buffers)`
- `bind::TexelBufferTooLarge`: `crates/metal2vulkan/src/bind/instantiate.rs:892 (texel_ranges)`
- `bind::HeapTooLarge`: `crates/metal2vulkan/src/bind/heap.rs:1014 (new)`; `crates/metal2vulkan/src/bind/heap.rs:1748 (directory_bytes)`; `crates/metal2vulkan/src/bind/heap.rs:1863 (listed_sampler_tables)`; `crates/metal2vulkan/src/bind/heap.rs:1913 (placed)`; `crates/metal2vulkan/src/bind/heap.rs:2069 (heap_elements)`; `crates/metal2vulkan/src/bind/heap.rs:949 (new)`; `crates/metal2vulkan/src/bind/heap.rs:965 (new)`
- `bind::TessellationFactorRange`: `crates/metal2vulkan/src/bind/graphics.rs:3653 (patch_binding)`
- `bind::PatchIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs:3697 (patch_binding)`
- `bind::ControlPointIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs:3735 (patch_binding)`
- `bind::TessellationFactorRange`: `crates/metal2vulkan/src/bind/graphics.rs:3630 (patch_binding)`
- `bind::PatchIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs:3674 (patch_binding)`
- `bind::ControlPointIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs:3712 (patch_binding)`
- `bind::MissingStageInRegion`: `crates/metal2vulkan/src/bind/dispatch.rs:796 (instantiate)`
- `bind::UniformViewAliased`: `crates/metal2vulkan/src/bind/instantiate.rs:607 (check_uniform_aliasing)`
- `bind::MissingDeviceAddress`: `crates/metal2vulkan/src/bind/plan/slots.rs:133 (plan_buffer)`