diff --git a/crates/metal2vulkan-conformance/recordings/event-wait-behind-a-running-signal.json b/crates/metal2vulkan-conformance/recordings/event-wait-behind-a-running-signal.json new file mode 100644 index 000000000..e9f052119 --- /dev/null +++ b/crates/metal2vulkan-conformance/recordings/event-wait-behind-a-running-signal.json @@ -0,0 +1,336 @@ +{ + "format": 1, + "case": "event-wait-behind-a-running-signal", + "suite_version": 1, + "answers": [ + { + "key": { + "chip": "apple-m3-max", + "os_version": "27.0.1", + "os_build": "26A434", + "metal_level": "27.0.1" + }, + "provenance": "metal_run", + "device": "Apple M3 Max", + "runs": 5, + "outcomes": [ + { + "runs": 5, + "transcript": { + "root": { + "name": "case", + "observed": { + "value": "absent" + }, + "children": [ + { + "name": "inputs", + "observed": { + "value": "absent" + }, + "children": [ + { + "name": "scratch-bytes", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "2e22fd435060cd5d3cf5e3ef39f79e198b35bd2c4af31974db36601b3a2f4c91" + } + } + }, + { + "name": "wait-bounds-millis", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "15974581de1a64a38d73ffa2754e6c85bcf978e607026240ebb64d1cbac16ca1" + } + } + }, + { + "name": "long-job-and-window", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "e0c01514e44ebb8bc910f9ee5805c959d091ab22871e09916687adb1f284e830" + } + } + }, + { + "name": "handler-names", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "9a43ced3dbb398a5cb9df2bc92ad3c78b96a100c603b2cc4dfb706981cdde886" + } + } + }, + { + "name": "fill-bytes", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "4bf5122f344554c53bde2ebb8cd2b7e3d1600ad631c385a5d7cce23c7785459a" + } + } + } + ] + }, + { + "name": "order/event", + "observed": { + "value": "absent" + }, + "children": [ + { + "name": "signalling/signal-landed-before-the-reading", + "observed": { + "value": { + "bool": false + } + } + }, + { + "name": "waiting/status-while-the-signaller-runs", + "observed": { + "value": { + "variant": { + "name": "Scheduled", + "payload": "absent" + } + } + } + }, + { + "name": "waiting/handlers-while-the-signaller-runs", + "observed": { + "value": { + "lines": [ + "scheduled" + ] + } + } + }, + { + "name": "signalling/status-when-the-waiting-one-was-read", + "observed": { + "value": { + "variant": { + "name": "Scheduled", + "payload": "absent" + } + } + } + }, + { + "name": "waiting/handlers-once-both-completed", + "observed": { + "value": { + "lines": [ + "scheduled", + "completed" + ] + } + } + }, + { + "name": "waiting/status-once-both-completed", + "observed": { + "value": { + "variant": { + "name": "Completed", + "payload": "absent" + } + } + } + }, + { + "name": "signalling/status-once-both-completed", + "observed": { + "value": { + "variant": { + "name": "Completed", + "payload": "absent" + } + } + } + }, + { + "name": "scratch", + "observed": { + "value": { + "bytes": "AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ==" + }, + "shape": { + "bytes": { + "region": { + "buffer": { + "offset": 0, + "length": 256 + } + }, + "element": "u8", + "row_offset": 0, + "row_elements": 256, + "row_pitch": 256, + "rows": 1, + "image_pitch": 256, + "images": 1, + "gaps": "ignored" + } + } + } + } + ] + }, + { + "name": "order/shared-event", + "observed": { + "value": "absent" + }, + "children": [ + { + "name": "signalling/signal-landed-before-the-reading", + "observed": { + "value": { + "bool": false + } + } + }, + { + "name": "waiting/status-while-the-signaller-runs", + "observed": { + "value": { + "variant": { + "name": "Committed", + "payload": "absent" + } + } + } + }, + { + "name": "waiting/handlers-while-the-signaller-runs", + "observed": { + "value": { + "nothing": "ran_nothing" + } + } + }, + { + "name": "event/value-while-the-signaller-runs", + "observed": { + "value": { + "uint": 0 + } + } + }, + { + "name": "signalling/status-when-the-waiting-one-was-read", + "observed": { + "value": { + "variant": { + "name": "Scheduled", + "payload": "absent" + } + } + } + }, + { + "name": "waiting/handlers-once-both-completed", + "observed": { + "value": { + "lines": [ + "scheduled", + "completed" + ] + } + } + }, + { + "name": "waiting/status-once-both-completed", + "observed": { + "value": { + "variant": { + "name": "Completed", + "payload": "absent" + } + } + } + }, + { + "name": "signalling/status-once-both-completed", + "observed": { + "value": { + "variant": { + "name": "Completed", + "payload": "absent" + } + } + } + }, + { + "name": "scratch", + "observed": { + "value": { + "bytes": "AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ==" + }, + "shape": { + "bytes": { + "region": { + "buffer": { + "offset": 0, + "length": 256 + } + }, + "element": "u8", + "row_offset": 0, + "row_elements": 256, + "row_pitch": 256, + "rows": 1, + "image_pitch": 256, + "images": 1, + "gaps": "ignored" + } + } + } + } + ] + }, + { + "name": "notices", + "observed": { + "value": "absent" + }, + "children": [ + { + "name": "set", + "observed": { + "value": { + "nothing": "announced_nothing" + } + } + }, + { + "name": "counts", + "observed": { + "value": { + "fields": {} + } + } + } + ] + } + ] + } + } + } + ], + "validated": "ran" + } + ] +} diff --git a/crates/metal2vulkan-conformance/src/case.rs b/crates/metal2vulkan-conformance/src/case.rs index 961355c66..acc738726 100644 --- a/crates/metal2vulkan-conformance/src/case.rs +++ b/crates/metal2vulkan-conformance/src/case.rs @@ -2157,6 +2157,21 @@ pub trait Side { Err(Failure::unavailable("signal_before_a_wait")) } + /// What the wait-behind-a-running-signal probe observed + /// ([`crate::event_orders::WaitBehindRunningSignal`]) on an `MTLSharedEvent` where `shared`, + /// else an `MTLEvent`: a command buffer that waits for a signal another queue's command buffer + /// submitted ahead of it and is still running. + /// + /// One call, because the fact is a relation between two command buffers' states at one + /// moment: the waiting one's status read while the signalling one still runs. + fn event_wait_behind_a_running_signal( + &mut self, + shared: bool, + ) -> Answer { + let _ = shared; + Err(Failure::unavailable("event_wait_behind_a_running_signal")) + } + /// What the scheduled-handler order probe observed /// ([`crate::scheduled_handlers::ScheduledHandlerOrder`]): a command buffer whose scheduled /// handler is held inside itself while the probe reads the status and a wait for the scheduling diff --git a/crates/metal2vulkan-conformance/src/cases/event_orders.rs b/crates/metal2vulkan-conformance/src/cases/event_orders.rs index 911cdbdc1..7795f420b 100644 --- a/crates/metal2vulkan-conformance/src/cases/event_orders.rs +++ b/crates/metal2vulkan-conformance/src/cases/event_orders.rs @@ -5,7 +5,7 @@ //! **orders**. A command buffer's `encodeWaitForEvent:value:` holds that command buffer, and the //! ones committed behind it on its own queue, until the value arrives; a command buffer's //! `encodeSignalEvent:value:` raises it where it is encoded, not when the command buffer ends. -//! Four cases: +//! Five cases: //! //! - [`CROSS_QUEUE_WAIT`]: one queue's command buffer waits for an event the other's signals, and //! the waiting one is committed **first**. Both run and both fills land. @@ -16,6 +16,25 @@ //! raises the event its scheduled handler runs before its completed one. //! - [`SIGNAL_BEFORE_WAIT`]: the work ahead of a wait inside one command buffer runs, and its //! signal lands, while the wait is still pending. +//! - [`WAIT_BEHIND_A_RUNNING_SIGNAL`]: one queue's command buffer runs a long GPU job and then +//! signals an event; another queue's command buffer, committed after it, waits for that value. +//! While the long job still runs, is the waiting one submitted (its wait on the GPU), or held +//! until the signal lands? For an `MTLEvent` and an `MTLSharedEvent` alike, as two rows. +//! +//! # A wait whose signal is submitted and running +//! +//! [`CROSS_QUEUE_WAIT`] reads a waiting command buffer's status while its signaller is not yet +//! committed, and [`HELD_COMMAND_BUFFER`] while only the host can raise the event: both answer +//! `Committed`, and neither says what Metal does once the signal is already on the GPU. +//! [`WAIT_BEHIND_A_RUNNING_SIGNAL`] asks that. The status is the proxy for "submitted": Metal's +//! `Scheduled` follows a command buffer's submission to the GPU, with its scheduled handlers run, +//! so `Scheduled` while the signaller still runs is "submitted, and so checked, before the signal +//! landed", and `Committed` is "held until it lands". The signaller signals a companion shared +//! event just before the event under test, and the companion is read last: a row whose companion +//! reads 1 had its signal land before the reading, so it records that alone and no reading, +//! which differs from Metal's recorded answer rather than passing for one. The long job is fills +//! alone ([`LONG_FILLS`] of [`LONG_FILL_BYTES`] into a private buffer): no loop runs on the GPU, +//! so nothing can hang. //! //! # What this pulls forward //! @@ -59,7 +78,10 @@ //! `runtime_lane` assertions. use crate::case::{Abort, Case, Input, MetalSource, Side}; -use crate::event_orders::{COMPLETED, HELD_FOR, SCHEDULED, SCRATCH, SIGNAL_WAIT}; +use crate::event_orders::{ + COMPLETED, HELD_FOR, LONG_FILLS, LONG_FILL_BYTES, RUNNING_WINDOW, SCHEDULED, SCRATCH, + SIGNAL_WAIT, +}; use crate::transcript::{Node, Observed, Sites, Value}; /// A wait committed before the signal that meets it. @@ -74,6 +96,13 @@ pub const HELD_COMMAND_BUFFER: &str = "event-held-command-buffer"; /// A signal encoded before a wait, inside one command buffer. pub const SIGNAL_BEFORE_WAIT: &str = "event-signal-before-a-wait"; +/// A wait committed behind a signal that is already submitted and still running. +pub const WAIT_BEHIND_A_RUNNING_SIGNAL: &str = "event-wait-behind-a-running-signal"; + +/// The two kinds of event [`WAIT_BEHIND_A_RUNNING_SIGNAL`] runs on, each a row: whether the event +/// is an `MTLSharedEvent`, and the row's name. +const EVENT_KINDS: [(bool, &str); 2] = [(false, "event"), (true, "shared-event")]; + /// The values the two queues of [`HIGHEST_SIGNAL`] signal, in each submission order. /// /// Both orders are rows of one case because the fact is the pair's: a lower signal cannot lower the @@ -108,15 +137,17 @@ enum Shape { HighestSignal, Held, SignalBeforeWait, + WaitBehindRunningSignal, } -/// The four cases. +/// The five cases. pub fn all() -> Vec { [ (CROSS_QUEUE_WAIT, Shape::CrossQueueWait), (HIGHEST_SIGNAL, Shape::HighestSignal), (HELD_COMMAND_BUFFER, Shape::Held), (SIGNAL_BEFORE_WAIT, Shape::SignalBeforeWait), + (WAIT_BEHIND_A_RUNNING_SIGNAL, Shape::WaitBehindRunningSignal), ] .into_iter() .map(|(name, shape)| EventOrder { name, shape }) @@ -143,7 +174,11 @@ impl Case for EventOrder { // the other three rows were exact (replay-nvidia.log). So the other three name nothing: // what they read back is a count our side holds, not a buffer the device wrote. match self.shape { - Shape::CrossQueueWait => vec![crate::replay::shared_memory_notice()], + // The waiting command buffer's scratch is read back out of a `Shared` buffer, as + // the cross-queue row's is. + Shape::CrossQueueWait | Shape::WaitBehindRunningSignal => { + vec![crate::replay::shared_memory_notice()] + } Shape::HighestSignal | Shape::Held | Shape::SignalBeforeWait => Vec::new(), } } @@ -180,6 +215,22 @@ impl Case for EventOrder { format!("{SCHEDULED},{COMPLETED}").as_bytes(), )), Shape::SignalBeforeWait => {} + // The long job's size and the window are what "while the signaller runs" means, and + // the handler names are what the record holds. + Shape::WaitBehindRunningSignal => { + let mut job = LONG_FILL_BYTES.to_le_bytes().to_vec(); + job.extend(LONG_FILLS.to_le_bytes()); + job.extend((RUNNING_WINDOW.as_millis() as u64).to_le_bytes()); + inputs.push(Input::bytes("long-job-and-window", &job)); + inputs.push(Input::bytes( + "handler-names", + format!("{SCHEDULED},{COMPLETED}").as_bytes(), + )); + inputs.push(Input::bytes( + "fill-bytes", + &[crate::event_orders::WAITING_BYTE], + )); + } } Ok(inputs) } @@ -223,6 +274,18 @@ impl Case for EventOrder { Ok(order) => sites.push(order.node(AT)), Err(failure) => sites.push(Node::leaf(AT, Observed::value(failure.recorded()))), }, + Shape::WaitBehindRunningSignal => { + for (shared, kind) in EVENT_KINDS { + let at = format!("{AT}/{kind}"); + match side.event_wait_behind_a_running_signal(shared) { + Ok(order) => sites.push(order.node(at)), + // The other kind's answer is still readable where one refused. + Err(failure) => { + sites.push(Node::leaf(at, Observed::value(failure.recorded()))) + } + } + } + } } Ok(()) } diff --git a/crates/metal2vulkan-conformance/src/event_orders.rs b/crates/metal2vulkan-conformance/src/event_orders.rs index 94888e0fa..8e926a5e0 100644 --- a/crates/metal2vulkan-conformance/src/event_orders.rs +++ b/crates/metal2vulkan-conformance/src/event_orders.rs @@ -1,4 +1,5 @@ -//! What an event orders: the vocabulary for the four ordering facts of `runtime_lane::events`. +//! What an event orders: the vocabulary for the four ordering facts of `runtime_lane::events`, +//! and for what Metal does with a wait whose signal is already submitted and running. //! //! An `MTLEvent` and an `MTLSharedEvent` hold a value that only rises, and a command buffer's //! `encodeWaitForEvent:value:` holds that command buffer — and the ones committed behind it on its @@ -268,6 +269,113 @@ impl SignalBeforeWait { } } +/// The bytes of the private buffer the signalling command buffer of [`WaitBehindRunningSignal`] +/// fills, [`LONG_FILLS`] times over, ahead of its signal: 256 MiB. +pub const LONG_FILL_BYTES: u64 = 256 << 20; + +/// How many fills of [`LONG_FILL_BYTES`] the signalling command buffer of +/// [`WaitBehindRunningSignal`] runs before its signals: fills alone, no loop on the GPU. 48 GiB +/// written, about 158 ms of GPU time on the recording M3 Max (Metal's `GPUEndTime` less +/// `GPUStartTime` of the same fills, 156 to 163 ms over three runs), some eight times +/// [`RUNNING_WINDOW`]; the record says whether the work outlasted the reading on each side +/// ([`WaitBehindRunningSignal::landed_before_the_reading`]). +pub const LONG_FILLS: u32 = 192; + +/// How long the waiting command buffer of [`WaitBehindRunningSignal`] is given, once both are +/// committed, before its status is read while the signalling one still runs: as [`HELD_FOR`], the +/// window a submission that was going to happen has had its chance in, and short enough to close +/// well before the signalling command buffer's long work does. +pub const RUNNING_WINDOW: Duration = Duration::from_millis(20); + +/// What the wait-behind-a-running-signal probe observed: one queue's command buffer runs a long +/// GPU job ([`LONG_FILLS`] fills of [`LONG_FILL_BYTES`]), signals a companion shared event at 1 +/// and then the event under test at 1; another queue's command buffer waits for the event at 1 +/// and then fills [`SCRATCH`] bytes. The signalling one is committed first, then the waiting one; +/// [`RUNNING_WINDOW`] later the waiting one's status and handlers are read, then the signalling +/// one's status, then the companion's value. +/// +/// The question is whether Metal submits a command buffer whose wait is met only by a signal +/// already submitted and still running, so the wait is on the GPU, or holds it until the signal +/// lands. Its status is the proxy for "submitted, and so checked": Metal answers `Scheduled` once +/// a command buffer is submitted to the GPU (and runs its scheduled handlers then), so +/// `Scheduled` while the signaller runs says "submitted before the signal landed", and +/// `Committed` says "held until it lands". +/// +/// **The reading has an answer only while the signal is still running**, and the companion says +/// whether it was. The signalling command buffer signals it just before the event, and one +/// command buffer's signals land in order, so a companion still at 0 when read, last, says the +/// event's signal had not landed when anything before it was read. A run whose companion reads 1 +/// holds no reading: [`Self::node`] then records that fact alone where the reading would be, so it +/// differs from a recording that has an answer rather than passing as one. +#[derive(Clone, Debug, PartialEq, Eq)] +pub struct WaitBehindRunningSignal { + /// Whether the signal had landed by the time the rest was read (the companion read 1). + pub landed_before_the_reading: bool, + /// The waiting command buffer's status, [`RUNNING_WINDOW`] after both commits. + pub waiting_while_it_runs: Status, + /// Its handlers that had run by then, in order. + pub waiting_handlers_while_it_runs: Vec, + /// A shared event's `signaledValue` then; `None` for an `MTLEvent`, which has none. + pub value_while_it_runs: Option, + /// The signalling command buffer's status, read right after the waiting one's. + pub signalling_while_it_runs: Status, + /// The waiting one's handlers once both completed, in order. + pub waiting_handlers_at_the_end: Vec, + /// Both statuses once both completed. + pub waiting_at_the_end: Status, + pub signalling_at_the_end: Status, + /// The scratch buffer's [`SCRATCH`] bytes once both completed: the waiting one's fill. + pub bytes: Vec, +} + +impl WaitBehindRunningSignal { + /// The observations as the sites a case emits under one node, so both sides emit one shape: + /// the reading while the signaller runs only where the signal had not landed by then. + pub fn node(&self, name: impl Into) -> Node { + let mut node = Node::branch(name, Vec::new()).with(Node::leaf( + "signalling/signal-landed-before-the-reading", + Observed::value(Value::Bool(self.landed_before_the_reading)), + )); + if !self.landed_before_the_reading { + node = node + .with(Node::leaf( + "waiting/status-while-the-signaller-runs", + Observed::value(self.waiting_while_it_runs.value()), + )) + .with(Node::leaf( + "waiting/handlers-while-the-signaller-runs", + Observed::value(handlers(&self.waiting_handlers_while_it_runs)), + )); + if let Some(value) = self.value_while_it_runs { + node = node.with(Node::leaf( + "event/value-while-the-signaller-runs", + Observed::value(Value::Uint(value)), + )); + } + node = node.with(Node::leaf( + "signalling/status-when-the-waiting-one-was-read", + Observed::value(self.signalling_while_it_runs.value()), + )); + } + node.with(Node::leaf( + "waiting/handlers-once-both-completed", + Observed::value(handlers(&self.waiting_handlers_at_the_end)), + )) + .with(Node::leaf( + "waiting/status-once-both-completed", + Observed::value(self.waiting_at_the_end.value()), + )) + .with(Node::leaf( + "signalling/status-once-both-completed", + Observed::value(self.signalling_at_the_end.value()), + )) + .with(Node::leaf( + "scratch", + Observed::bytes(self.bytes.clone(), scratch_layout()), + )) + } +} + /// The name a scheduled handler logs itself as, and the name a completed handler logs itself as. /// /// They are the words the record holds, so both sides must spell them the same; a case's input diff --git a/crates/metal2vulkan-conformance/src/metal_side.rs b/crates/metal2vulkan-conformance/src/metal_side.rs index 859d4f1de..79bf8847e 100644 --- a/crates/metal2vulkan-conformance/src/metal_side.rs +++ b/crates/metal2vulkan-conformance/src/metal_side.rs @@ -5766,6 +5766,146 @@ impl Side for MetalSide { }) } + fn event_wait_behind_a_running_signal( + &mut self, + shared: bool, + ) -> Answer { + use crate::event_orders::{ + Status, WaitBehindRunningSignal, COMPLETED, COMPLETION, LONG_FILLS, LONG_FILL_BYTES, + RUNNING_WINDOW, SCHEDULED, SCRATCH, WAITING_BYTE, + }; + objc2::rc::autoreleasepool(|_| { + let queue = || { + self.device + .newCommandQueue() + .ok_or_else(|| Failure::named("NewCommandQueue", "returned nil")) + }; + let (signalling_queue, waiting_queue) = (queue()?, queue()?); + // One event of the row's kind, and the `MTLEvent` both kinds are to the encoders. + let shared_event = match shared { + true => Some( + self.device + .newSharedEvent() + .ok_or_else(|| Failure::named("NewSharedEvent", "returned nil"))?, + ), + false => None, + }; + let plain_event = match &shared_event { + Some(_) => None, + None => Some( + self.device + .newEvent() + .ok_or_else(|| Failure::named("NewEvent", "returned nil"))?, + ), + }; + let as_event: &ProtocolObject = match (&shared_event, &plain_event) { + (Some(event), _) => ProtocolObject::from_ref(&**event), + (None, Some(event)) => event, + (None, None) => unreachable!("one of the two kinds is made"), + }; + // The companion the signaller signals just before the event: still 0 when read, last, + // it says the event's signal had not landed when the rest was read. + let landed = self + .device + .newSharedEvent() + .ok_or_else(|| Failure::named("NewSharedEvent", "returned nil"))?; + let long = self + .device + .newBufferWithLength_options( + LONG_FILL_BYTES as usize, + MTLResourceOptions::StorageModePrivate, + ) + .ok_or_else(|| Failure::named("NewBuffer", "returned nil"))?; + let scratch = self + .device + .newBufferWithLength_options( + SCRATCH as usize, + MTLResourceOptions::StorageModeShared, + ) + .ok_or_else(|| Failure::named("NewBuffer", "returned nil"))?; + // The long job: fills alone, ahead of the signal. + let signalling = signalling_queue + .commandBuffer() + .ok_or_else(|| Failure::named("CommandBuffer", "returned nil"))?; + let encoder = signalling + .blitCommandEncoder() + .ok_or_else(|| Failure::named("BlitCommandEncoder", "returned nil"))?; + for fill in 0..LONG_FILLS { + encoder.fillBuffer_range_value( + &long, + objc2_foundation::NSRange::new(0, LONG_FILL_BYTES as usize), + fill as u8, + ); + } + encoder.endEncoding(); + signalling.encodeSignalEvent_value(ProtocolObject::from_ref(&*landed), 1); + signalling.encodeSignalEvent_value(as_event, 1); + let signalling_done = completion_channel(&signalling); + let waiting = waiting_queue + .commandBuffer() + .ok_or_else(|| Failure::named("CommandBuffer", "returned nil"))?; + waiting.encodeWaitForEvent_value(as_event, 1); + let encoder = waiting + .blitCommandEncoder() + .ok_or_else(|| Failure::named("BlitCommandEncoder", "returned nil"))?; + encoder.fillBuffer_range_value( + &scratch, + objc2_foundation::NSRange::new(0, SCRATCH as usize), + WAITING_BYTE, + ); + encoder.endEncoding(); + let mut log = HandlerLog::new(); + // SAFETY: each block is a valid heap block the log keeps alive for as long as this + // probe runs, which outlives every call Metal makes of it. + log.add(SCHEDULED, |block| unsafe { + waiting.addScheduledHandler(block) + }); + log.add(COMPLETED, |block| unsafe { + waiting.addCompletedHandler(block) + }); + // The signaller first, so its signal is submitted ahead of the wait. + signalling.commit(); + waiting.commit(); + std::thread::sleep(RUNNING_WINDOW); + let waiting_while_it_runs = Status::read(status_word(waiting.status())); + let waiting_handlers_while_it_runs = log.names(); + let value_while_it_runs = shared_event.as_ref().map(|event| event.signaledValue()); + let signalling_while_it_runs = Status::read(status_word(signalling.status())); + // Last: 0 says nothing above was read after the event's signal landed. + let landed_before_the_reading = landed.signaledValue() != 0; + log.wait_for(COMPLETED, COMPLETION); + let waiting_handlers_at_the_end = log.names(); + let waiting_at_the_end = if waiting_handlers_at_the_end + .iter() + .any(|name| name == COMPLETED) + { + Status::read(status_word(waiting.status())) + } else { + Status::NeverSettled + }; + let signalling_at_the_end = settled(&signalling_done, &signalling); + // SAFETY: `SCRATCH` bytes of the shared buffer, whose writer has completed. + let bytes = unsafe { + std::slice::from_raw_parts( + scratch.contents().as_ptr().cast::(), + SCRATCH as usize, + ) + } + .to_vec(); + Ok(WaitBehindRunningSignal { + landed_before_the_reading, + waiting_while_it_runs, + waiting_handlers_while_it_runs, + value_while_it_runs, + signalling_while_it_runs, + waiting_handlers_at_the_end, + waiting_at_the_end, + signalling_at_the_end, + bytes, + }) + }) + } + fn signal_before_a_wait(&mut self) -> Answer { use crate::event_orders::{Status, HELD_FOR, SCRATCH, SIGNAL_WAIT}; objc2::rc::autoreleasepool(|_| { diff --git a/crates/metal2vulkan-conformance/src/runtime_side.rs b/crates/metal2vulkan-conformance/src/runtime_side.rs index 426bf990f..dad6b846d 100644 --- a/crates/metal2vulkan-conformance/src/runtime_side.rs +++ b/crates/metal2vulkan-conformance/src/runtime_side.rs @@ -5334,6 +5334,126 @@ impl Side for RuntimeSide<'_> { }) } + fn event_wait_behind_a_running_signal( + &mut self, + shared: bool, + ) -> Answer { + use crate::event_orders::{ + Status, WaitBehindRunningSignal, COMPLETED, COMPLETION, LONG_FILLS, LONG_FILL_BYTES, + RUNNING_WINDOW, SCHEDULED, SCRATCH, WAITING_BYTE, + }; + use metal2vulkan_runtime::EventRef; + let queue = || self.device.new_command_queue().map_err(Failure::from_error); + let (signalling_queue, waiting_queue) = (queue()?, queue()?); + let (plain_event, shared_event) = match shared { + true => ( + None, + Some( + self.device + .new_shared_event() + .map_err(Failure::from_error)?, + ), + ), + false => ( + Some(self.device.new_event().map_err(Failure::from_error)?), + None, + ), + }; + let event = || match (&plain_event, &shared_event) { + (Some(event), _) => EventRef::from(event), + (None, Some(event)) => EventRef::from(event), + (None, None) => unreachable!("one of the two kinds is made"), + }; + // The companion the signaller signals just before the event: still 0 when read, last, it + // says the event's signal had not landed when the rest was read. + let landed = self + .device + .new_shared_event() + .map_err(Failure::from_error)?; + let long = self + .device + .new_buffer(LONG_FILL_BYTES, ResourceOptions::private()) + .map_err(Failure::from_error)?; + let scratch = self + .device + .new_buffer(SCRATCH, ResourceOptions::shared()) + .map_err(Failure::from_error)?; + // The long job: fills alone, ahead of the signal. + let signalling = signalling_queue + .command_buffer() + .map_err(Failure::from_error)?; + let mut blit = signalling + .blit_command_encoder() + .map_err(Failure::from_error)?; + for fill in 0..LONG_FILLS { + blit.fill_buffer(&long, 0..LONG_FILL_BYTES, fill as u8) + .map_err(Failure::from_error)?; + } + blit.end_encoding().map_err(Failure::from_error)?; + signalling + .encode_signal_event(EventRef::from(&landed), 1) + .map_err(Failure::from_error)?; + signalling + .encode_signal_event(event(), 1) + .map_err(Failure::from_error)?; + let waiting = waiting_queue + .command_buffer() + .map_err(Failure::from_error)?; + waiting + .encode_wait_for_event(event(), 1) + .map_err(Failure::from_error)?; + let mut blit = waiting + .blit_command_encoder() + .map_err(Failure::from_error)?; + blit.fill_buffer(&scratch, 0..SCRATCH, WAITING_BYTE) + .map_err(Failure::from_error)?; + blit.end_encoding().map_err(Failure::from_error)?; + let log = HandlerLog::new(); + waiting + .add_scheduled_handler(log.handler(SCHEDULED)) + .map_err(Failure::from_error)?; + waiting + .add_completed_handler(log.handler(COMPLETED)) + .map_err(Failure::from_error)?; + // The signaller first, so its signal is submitted ahead of the wait. + signalling.commit().map_err(Failure::from_error)?; + waiting.commit().map_err(Failure::from_error)?; + std::thread::sleep(RUNNING_WINDOW); + let waiting_while_it_runs = Status::read(format!("{:?}", waiting.status())); + let waiting_handlers_while_it_runs = log.names(); + let value_while_it_runs = shared_event.as_ref().map(|event| event.signaled_value()); + let signalling_while_it_runs = Status::read(format!("{:?}", signalling.status())); + // Last: 0 says nothing above was read after the event's signal landed. + let landed_before_the_reading = landed.signaled_value() != 0; + log.wait_for(COMPLETED, COMPLETION); + let waiting_handlers_at_the_end = log.names(); + let waiting_at_the_end = if waiting_handlers_at_the_end + .iter() + .any(|name| name == COMPLETED) + { + Status::read(format!("{:?}", waiting.status())) + } else { + Status::NeverSettled + }; + let signalling_at_the_end = if signalling.wait_until_completed_for(COMPLETION).is_err() { + Status::NeverSettled + } else { + Status::read(format!("{:?}", signalling.status())) + }; + let bytes = read_shared(&scratch, 0, SCRATCH as usize)?; + Ok(WaitBehindRunningSignal { + landed_before_the_reading, + waiting_while_it_runs, + waiting_handlers_while_it_runs, + value_while_it_runs, + signalling_while_it_runs, + waiting_handlers_at_the_end, + waiting_at_the_end, + signalling_at_the_end, + bytes, + }) + } + fn signal_before_a_wait(&mut self) -> Answer { use crate::event_orders::{Status, COMPLETION, HELD_FOR, SCRATCH, SIGNAL_WAIT}; let queue = self diff --git a/crates/metal2vulkan-conformance/src/watch.rs b/crates/metal2vulkan-conformance/src/watch.rs index dabf4b727..33738e33f 100644 --- a/crates/metal2vulkan-conformance/src/watch.rs +++ b/crates/metal2vulkan-conformance/src/watch.rs @@ -901,6 +901,14 @@ impl Side for Watching { self.inner.signal_before_a_wait() } + fn event_wait_behind_a_running_signal( + &mut self, + shared: bool, + ) -> Answer { + let _span = self.watch("event_wait_behind_a_running_signal"); + self.inner.event_wait_behind_a_running_signal(shared) + } + fn scheduled_handler_order( &mut self, ) -> Answer { diff --git a/docs/CONFORMANCE-COVERAGE.md b/docs/CONFORMANCE-COVERAGE.md index a22415bd0..7c662f21a 100644 --- a/docs/CONFORMANCE-COVERAGE.md +++ b/docs/CONFORMANCE-COVERAGE.md @@ -14,7 +14,7 @@ The suite reaches Metal through `objc2-metal`, whose Rust name for a binding is Its limits, measured rather than asserted: -- **1595 of 1648 call sites** in the Metal leg resolve to an item of the SDK. 22 of those resolve because only one type in `objc2-metal` binds the name at all, so no typing was needed. +- **1622 of 1675 call sites** in the Metal leg resolve to an item of the SDK. 23 of those resolve because only one type in `objc2-metal` binds the name at all, so no typing was needed. - **2 call sites send a selector `objc2-metal` binds on no Metal type at all**, so they are an item of no Metal container and there is no count for them to cost: `alloc`, `class`, which are `NSObject`'s. - **4 call sites send a selector by hand that `objc2-metal` binds no name for**, which is why they are sent with `msg_send!` rather than called. The crate names no container for such a selector, so no receiver typing can reach one and no item here is credited: `detachBacking`, `fillTexture:level:slice:region:bytes:length:`, `setFramebufferOnly:`, `setRotation:`. None of them is an implemented row of the coverage map — the generator fails rather than writing this document if one is, because that would be an item the suite exercises and nothing counts. - **8 call sites resolve to no item although some Metal type binds the selector**: an instance send whose receiver this could not type, a message to a class that does not bind the name sent to it, or a selector sent by hand to a receiver whose Rust type is a **supertype** of the one that binds it — which is often why it is sent by hand, since `objc2` casts between two protocol objects nowhere. Each sent its selector to exactly one receiver, so each exercised one item; which one is what the typing could not say. **Every one of their selectors is bound by at least one item some other call site credits**, so none of these sites proves an item is missing from the count. That is not a proof that the count is complete: such a site may have sent its selector to a type other than the credited one, and this cannot tell. To rule it out, spell the receiver's type at the call site — a `let` with a type, rather than a `let` with none — and this re-derives with the item credited to the case that calls it. A pattern binding is not one of the shapes that costs a site: a tuple, a `for`, a `match` arm and a closure parameter are each typed from what made them. @@ -41,7 +41,7 @@ Its limits, measured rather than asserted: | of those exercised, no case reaching it loosens anything | 578 | | of those exercised, a case reaching it loosens some site | 216 | | case modules | 152 | -| committed recordings | 1127 | +| committed recordings | 1128 | | distinct SDK items the Metal leg reaches, of any status | 801 | | of those, reached only where this cannot name the family | 2 | | ledger rows (a case whose gap is recorded) | 1296 | @@ -526,12 +526,12 @@ An implemented container no case's Metal leg touches. These are the families of | | | |---|---| | case modules | 152 | -| committed recordings | 1127 | +| committed recordings | 1128 | | recorded runs behind a case, median | 3 | | recorded runs, least and most | 1 and 30 | | cases whose recording holds more than one outcome | 0 | | cases running a committed shader fixture | 707 | -| cases whose Metal answer is `metal_run` | 1043 | +| cases whose Metal answer is `metal_run` | 1044 | | cases whose Metal answer is `carried` | 80 | | cases whose Metal answer is `never_returned` | 4 | | modules that loosen a measured value | 9 | @@ -540,14 +540,14 @@ An implemented container no case's Metal leg touches. These are the families of | loosenings used | `Unchecked`, `Absolute`, `Nonzero` | | justifications named | `Degradation`, `AcceptedDifference` | | modules forbidding a re-record | 8 | -| `Side` methods (the suite's whole device vocabulary) | 126 | -| `Side` methods the Metal leg reaches an SDK item through | 121 | +| `Side` methods (the suite's whole device vocabulary) | 127 | +| `Side` methods the Metal leg reaches an SDK item through | 122 | | SDK items a case's Metal leg reaches, median | 54 | | the same, least and most | 0 and 216 | -| Metal call sites in the leg | 1648 | +| Metal call sites in the leg | 1675 | | distinct selectors the leg sends | 641 | | of those, resolved to an item of the coverage map | 634 | -| oracles the recordings name | `apple-m3-max` ×1127 | +| oracles the recordings name | `apple-m3-max` ×1128 | ## By family @@ -595,7 +595,7 @@ Each case module: the cases it holds, the `Side` methods it calls, and how many | `dynamic_libraries` | 3 | 3 | every field | 15 | | `empty_command_buffers` | 1 | 1 | every field | 20 | | `etc_textures` | 10 | 10 | 1 tolerance(s): `Degradation` | 43 | -| `event_orders` | 4 | 4 | every field | 27 | +| `event_orders` | 5 | 5 | every field | 27 | | `extended_range_blends` | 18 | 18 | every field | 133 | | `extended_range_planes` | 4 | 4 | every field | 30 | | `extended_range_targets` | 22 | 22 | every field | 130 | @@ -733,7 +733,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLAllocation` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `format_footprints`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_facts`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pipeline_facts`, `pipeline_handlers`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_creator_formats`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_descriptor_pairs`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 913 | +| `MTLAllocation` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `format_footprints`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_facts`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pipeline_facts`, `pipeline_handlers`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_creator_formats`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_descriptor_pairs`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 914 | ### `MTLArgument` @@ -876,7 +876,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLBlitCommandEncoder` | yes | `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `command_buffer_facts`, `compressed_blits`, `compressed_moves`, `compressed_views`, `compute_render_chains`, `depth_resolve_pairs`, `depth_stencil_space`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `format_copies`, `fresh_contents`, `half_output_blends`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `layered_targets`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_sequence_actions`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_targets`, `sample_positions`, `scheduled_handlers`, `shader_stencil`, `sparse_mappings`, `srgb_fetch`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits`, `wide_points` | 378 | +| `MTLBlitCommandEncoder` | yes | `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `command_buffer_facts`, `compressed_blits`, `compressed_moves`, `compressed_views`, `compute_render_chains`, `depth_resolve_pairs`, `depth_stencil_space`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `format_copies`, `fresh_contents`, `half_output_blends`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `layered_targets`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_sequence_actions`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_targets`, `sample_positions`, `scheduled_handlers`, `shader_stencil`, `sparse_mappings`, `srgb_fetch`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits`, `wide_points` | 379 | | `synchronizeResource:` | yes | `blit_encoder_commands` | 9 | | `synchronizeTexture:slice:level:` | yes | `blit_encoder_commands` | 9 | | `copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:` | yes | `buffer_texture_blits`, `chroma_pairs`, `compressed_blits`, `format_copies`, `pvrtc_rows`, `two_plane_heap_blits` | 37 | @@ -885,7 +885,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | `copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toBuffer:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:` | yes | `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `compute_render_chains`, `depth_resolve_pairs`, `depth_stencil_space`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `half_output_blends`, `indirect_command_depth`, `indirect_commands`, `layered_targets`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_sequence_actions`, `primitive_type_crossings`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_targets`, `sample_positions`, `shader_stencil`, `sparse_mappings`, `srgb_fetch`, `stencil_resolve_pairs`, `wide_points` | 190 | | `copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toBuffer:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:options:` | yes | `blit_encoder_commands`, `buffer_depth_samples`, `chroma_pairs`, `compressed_blits`, `format_copies`, `fresh_contents`, `pvrtc_cpu_order`, `pvrtc_rows`, `stencil_resolved_sample`, `texture_fills`, `two_plane_copies` | 145 | | `generateMipmapsForTexture:` | yes | `blit_encoder_commands` | 9 | -| `fillBuffer:range:value:` | yes | `blit_encoder_commands`, `buffer_blits`, `command_buffer_facts`, `empty_command_buffers`, `event_orders`, `fresh_contents`, `host_detach`, `scheduled_handlers` | 108 | +| `fillBuffer:range:value:` | yes | `blit_encoder_commands`, `buffer_blits`, `command_buffer_facts`, `empty_command_buffers`, `event_orders`, `fresh_contents`, `host_detach`, `scheduled_handlers` | 109 | | `copyFromTexture:sourceSlice:sourceLevel:toTexture:destinationSlice:destinationLevel:sliceCount:levelCount:` | yes | `blit_encoder_commands` | 9 | | `copyFromTexture:toTexture:` | yes | `blit_encoder_commands` | 9 | | `copyFromBuffer:sourceOffset:toBuffer:destinationOffset:size:` | yes | `blit_encoder_commands`, `blit_indirect_commands`, `buffer_blits`, `fresh_contents`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `texture_fills`, `two_plane_heap_blits` | 125 | @@ -903,9 +903,9 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLBuffer` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `texture_views`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 779 | +| `MTLBuffer` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `texture_views`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 780 | | `length` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_texel_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 720 | -| `contents` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 770 | +| `contents` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 771 | | `didModifyRange:` | no | — | — | | `newTextureWithDescriptor:offset:bytesPerRow:` | yes | `alpha_coverage_pairs`, `astc_textures`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_render_chains`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_targets`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `layered_targets`, `level_sizes`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_sequence_actions`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_exponent_storage`, `snorm_tile_store`, `srgb_fetch`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `visibility`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 566 | | `gpuAddress` | no | — | — | @@ -942,43 +942,43 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLCommandBuffer` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 761 | +| `MTLCommandBuffer` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 762 | | `device` | yes | `command_buffer_facts` | 1 | | `commandQueue` | yes | `command_buffer_facts` | 1 | | `kernelStartTime` | yes | `command_buffer_facts`, `empty_command_buffers` | 2 | | `kernelEndTime` | yes | `command_buffer_facts`, `empty_command_buffers` | 2 | | `GPUStartTime` | yes | `command_buffer_facts`, `empty_command_buffers` | 2 | | `GPUEndTime` | yes | `command_buffer_facts`, `empty_command_buffers` | 2 | -| `commit` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 761 | -| `addScheduledHandler:` | yes | `empty_command_buffers`, `event_orders`, `scheduled_handlers` | 6 | +| `commit` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 762 | +| `addScheduledHandler:` | yes | `empty_command_buffers`, `event_orders`, `scheduled_handlers` | 7 | | `waitUntilScheduled` | yes | `scheduled_handlers` | 1 | -| `addCompletedHandler:` | yes | `empty_command_buffers`, `event_orders`, `host_detach`, `scheduled_handlers` | 7 | +| `addCompletedHandler:` | yes | `empty_command_buffers`, `event_orders`, `host_detach`, `scheduled_handlers` | 8 | | `waitUntilCompleted` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 755 | -| `status` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 759 | +| `status` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 760 | | `error` | yes | `alpha_coverage_pairs`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_indirect_commands`, `buffer_target_clears`, `color_write_masks`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `depth_resolve_pairs`, `depth_stencil_space`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_sequence_actions`, `primitive_type_crossings`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `tessellation_crossings`, `tessellation_sweeps`, `tile_threadgroups`, `topology_classes`, `vertex_formats`, `visibility`, `wide_int_attributes`, `wide_points` | 290 | -| `blitCommandEncoder` | yes | `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `chroma_pairs`, `command_buffer_facts`, `compressed_blits`, `compressed_views`, `compute_render_chains`, `depth_resolve_pairs`, `depth_stencil_space`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `format_copies`, `fresh_contents`, `half_output_blends`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `layered_targets`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_sequence_actions`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_targets`, `sample_positions`, `scheduled_handlers`, `shader_stencil`, `sparse_mappings`, `srgb_fetch`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits`, `wide_points` | 362 | +| `blitCommandEncoder` | yes | `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `chroma_pairs`, `command_buffer_facts`, `compressed_blits`, `compressed_views`, `compute_render_chains`, `depth_resolve_pairs`, `depth_stencil_space`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `format_copies`, `fresh_contents`, `half_output_blends`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `layered_targets`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_sequence_actions`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_targets`, `sample_positions`, `scheduled_handlers`, `shader_stencil`, `sparse_mappings`, `srgb_fetch`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits`, `wide_points` | 363 | | `renderCommandEncoderWithDescriptor:` | yes | `alpha_coverage_pairs`, `blend_interactions`, `blend_sweeps`, `blit_indirect_commands`, `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `depth_resolve_pairs`, `depth_stencil_space`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_sequence_actions`, `primitive_type_crossings`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `tessellation_crossings`, `tessellation_sweeps`, `tile_threadgroups`, `topology_classes`, `vertex_formats`, `visibility`, `wide_int_attributes`, `wide_points` | 290 | | `computeCommandEncoder` | yes | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blit_indirect_commands`, `border_swizzles`, `buffer_depth_samples`, `chroma_pairs`, `compressed_decode`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_texel_reads`, `etc_textures`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `frame_chains`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `level_sizes`, `math_routines`, `nearest_positions`, `norm_storage_writes`, `pass_bytes`, `pixel_downscales`, `pixel_samplers`, `read_write_tiers`, `rgb10a2_srgb`, `sampler_crossings`, `sampler_filtering`, `shared_exponent_storage`, `simdgroup_lockstep`, `stage_in_regions`, `stage_in_unread`, `swizzled_storage`, `texel_swizzles`, `two_plane_samples`, `visible_tables`, `ycbcr_minify`, `ycbcr_textures` | 356 | | `computeCommandEncoderWithDispatchType:` | yes | `compute_encoder_commands` | 8 | -| `encodeWaitForEvent:value:` | yes | `event_orders` | 4 | -| `encodeSignalEvent:value:` | yes | `event_orders`, `shared_events` | 6 | +| `encodeWaitForEvent:value:` | yes | `event_orders` | 5 | +| `encodeSignalEvent:value:` | yes | `event_orders`, `shared_events` | 7 | | `resourceStateCommandEncoder` | yes | `command_buffer_facts`, `sparse_mappings` | 15 | ### `MTLCommandEncoder` | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLCommandEncoder` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 759 | -| `endEncoding` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 759 | +| `MTLCommandEncoder` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 760 | +| `endEncoding` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 760 | ### `MTLCommandQueue` | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLCommandQueue` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `command_queues`, `compressed_blits`, `compressed_decode`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 746 | +| `MTLCommandQueue` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `command_queues`, `compressed_blits`, `compressed_decode`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 747 | | `label` | yes | `command_buffer_facts` | 1 | | `device` | yes | `command_buffer_facts` | 1 | -| `commandBuffer` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `command_queues`, `compressed_blits`, `compressed_decode`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 746 | +| `commandBuffer` | yes | `alpha_coverage_pairs`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `command_queues`, `compressed_blits`, `compressed_decode`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 747 | ### `MTLComputeCommandEncoder` @@ -1092,7 +1092,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLDevice` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `binary_archives`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `command_queues`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `device_queries`, `discard_hoist`, `draw_state_changes`, `dynamic_libraries`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `format_footprints`, `fragment_imageblock_reflection`, `frame_chains`, `fresh_contents`, `function_bindings`, `function_facts`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_facts`, `heap_metal_sizes`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `library_facts`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `mesh_pipeline_reflection`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_functions`, `pipeline_handlers`, `pipeline_option_reflection`, `pipeline_options`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_creator_formats`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `sparse_tiles`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_accesses`, `texture_descriptor_pairs`, `texture_fills`, `texture_views`, `textures`, `tile_pipeline_descriptors`, `tile_pipeline_reflection`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 1031 | +| `MTLDevice` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `binary_archives`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `command_queues`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_pipeline_descriptors`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `device_queries`, `discard_hoist`, `draw_state_changes`, `dynamic_libraries`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `format_footprints`, `fragment_imageblock_reflection`, `frame_chains`, `fresh_contents`, `function_bindings`, `function_facts`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_facts`, `heap_metal_sizes`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `library_facts`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors`, `mesh_pipeline_reflection`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pipeline_descriptors`, `pipeline_facts`, `pipeline_functions`, `pipeline_handlers`, `pipeline_option_reflection`, `pipeline_options`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_creator_formats`, `shared_events`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `sparse_tiles`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_accesses`, `texture_descriptor_pairs`, `texture_fills`, `texture_views`, `textures`, `tile_pipeline_descriptors`, `tile_pipeline_reflection`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 1032 | | `name` | no | — | — | | `registryID` | yes | `argument_encoder_crossings`, `argument_encoders`, `binary_archives`, `command_buffer_facts`, `dynamic_libraries`, `function_facts`, `heap_facts`, `library_facts`, `pipeline_facts`, `pipeline_handlers`, `resource_facts`, `shared_creator_formats`, `shared_events`, `texture_descriptor_pairs`, `texture_views`, `visible_tables` | 113 | | `maxThreadsPerThreadgroup` | no | — | — | @@ -1104,12 +1104,12 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | `supports32BitFloatFiltering` | no | — | — | | `supports32BitMSAA` | no | — | — | | `supportsPullModelInterpolation` | no | — | — | -| `newCommandQueue` | yes | `command_buffer_facts`, `command_queues`, `empty_command_buffers`, `event_orders`, `host_detach`, `scheduled_handlers` | 9 | +| `newCommandQueue` | yes | `command_buffer_facts`, `command_queues`, `empty_command_buffers`, `event_orders`, `host_detach`, `scheduled_handlers` | 10 | | `newCommandQueueWithMaxCommandBufferCount:` | yes | `command_queues` | 1 | | `heapTextureSizeAndAlignWithDescriptor:` | yes | `compressed_moves`, `format_footprints`, `heap_metal_sizes`, `texture_descriptor_pairs`, `two_plane_copies`, `ycbcr_textures` | 35 | | `heapBufferSizeAndAlignWithLength:options:` | yes | `device_queries` | 5 | | `newHeapWithDescriptor:` | yes | `blit_encoder_commands`, `buffer_blits`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_moves`, `compressed_views`, `compute_heap_residency`, `format_copies`, `fresh_contents`, `heap_facts`, `pvrtc_cpu_order`, `pvrtc_rows`, `render_residency`, `resource_facts`, `sparse_heaps`, `sparse_mappings`, `texture_descriptor_pairs`, `texture_fills`, `two_plane_copies`, `two_plane_heap_blits` | 218 | -| `newBufferWithLength:options:` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 776 | +| `newBufferWithLength:options:` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `empty_command_buffers`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `scheduled_handlers`, `shader_stencil`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_fills`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 777 | | `newBufferWithBytes:length:options:` | yes | `buffer_depth_samples` | 5 | | `newBufferWithBytesNoCopy:length:options:deallocator:` | yes | `host_detach`, `host_page_writes` | 5 | | `newDepthStencilStateWithDescriptor:` | yes | `depth_resolve_pairs`, `depth_stencil_space`, `layered_targets`, `pass_sequence_actions`, `render_depth_stencil_state`, `shader_stencil`, `srgb_fetch`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `visibility` | 41 | @@ -1142,8 +1142,8 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | `supportsRasterizationRateMapWithLayerCount:` | yes | `device_queries` | 5 | | `newRasterizationRateMapWithDescriptor:` | yes | `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps` | 14 | | `newIndirectCommandBufferWithDescriptor:maxCommandCount:options:` | yes | `blit_indirect_commands`, `indirect_command_depth`, `indirect_commands`, `mesh_commands` | 20 | -| `newEvent` | yes | `event_orders` | 4 | -| `newSharedEvent` | yes | `event_orders`, `shared_events` | 6 | +| `newEvent` | yes | `event_orders` | 5 | +| `newSharedEvent` | yes | `event_orders`, `shared_events` | 7 | | `newSharedEventWithHandle:` | yes | `shared_events` | 2 | | `sparseTileSizeWithTextureType:pixelFormat:sampleCount:` | yes | `sparse_mappings`, `sparse_tiles` | 18 | | `sparseTileSizeInBytes` | yes | `sparse_tiles` | 4 | @@ -1172,7 +1172,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLEvent` | yes | `event_orders`, `shared_events` | 6 | +| `MTLEvent` | yes | `event_orders`, `shared_events` | 7 | | `device` | yes | `shared_events` | 2 | | `label` | yes | `shared_events` | 2 | @@ -1814,7 +1814,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLResource` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `format_footprints`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_facts`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_creator_formats`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_descriptor_pairs`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 883 | +| `MTLResource` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `blit_indirect_commands`, `border_swizzles`, `buffer_blits`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `command_buffer_facts`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_heap_residency`, `compute_render_chains`, `compute_threadgroups`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `event_orders`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `format_footprints`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_facts`, `host_detach`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `int_attributes`, `layered_targets`, `level_sizes`, `math_routines`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_bytes`, `pass_sequence_actions`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_creator_formats`, `shared_exponent_storage`, `simdgroup_lockstep`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stage_in_regions`, `stage_in_unread`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `tessellation_crossings`, `tessellation_sweeps`, `texel_swizzles`, `texture_descriptor_pairs`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `vertex_formats`, `visibility`, `visible_tables`, `wide_int_attributes`, `wide_points`, `ycbcr_minify`, `ycbcr_textures` | 884 | | `label` | yes | `heap_facts`, `resource_facts`, `shared_creator_formats`, `texture_descriptor_pairs` | 16 | | `device` | yes | `heap_facts`, `resource_facts`, `shared_creator_formats`, `texture_descriptor_pairs`, `visible_tables` | 34 | | `cpuCacheMode` | yes | `buffer_textures`, `heap_facts`, `resource_facts`, `shared_creator_formats`, `texture_descriptor_pairs` | 18 | @@ -1872,11 +1872,11 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | item | exercised | families | cases Metal ran | |---|---|---|---| -| `MTLSharedEvent` | yes | `event_orders`, `shared_events` | 6 | +| `MTLSharedEvent` | yes | `event_orders`, `shared_events` | 7 | | `notifyListener:atValue:block:` | no | — | — | | `newSharedEventHandle` | yes | `shared_events` | 2 | -| `waitUntilSignaledValue:timeoutMS:` | yes | `event_orders`, `shared_events` | 6 | -| `signaledValue` | yes | `event_orders`, `shared_events` | 6 | +| `waitUntilSignaledValue:timeoutMS:` | yes | `event_orders`, `shared_events` | 7 | +| `signaledValue` | yes | `event_orders`, `shared_events` | 7 | ### `MTLSharedEventHandle`