diff --git a/crates/metal2vulkan-runtime/src/binding.rs b/crates/metal2vulkan-runtime/src/binding.rs index 33cec989f..000794dcf 100644 --- a/crates/metal2vulkan-runtime/src/binding.rs +++ b/crates/metal2vulkan-runtime/src/binding.rs @@ -1344,6 +1344,9 @@ fn descriptor( .ok_or_else(|| internal("a constant-blob write without its stage's blob"))?; whole(upload(blob, padded(blob.len()))?) } + // The command buffer's status words, the ones every command of it writes, on a device + // that does not address buffers (`status_address` elsewhere). + WriteSource::ExecutionStatus => whole(state.status_words(device)?), // The fragment stage's sRGB color table, the same bytes for every pipeline. WriteSource::ColorWriteTable => { let table = metal2vulkan::bind::color_write_table(); diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index 5eb89e9dc..be85a4b52 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -52d6ce1648b67055d046e043e6d1cd126e0a8315d04a922261df93ad0a25f734 +d92b3692f9ec6dd09aa276901b3e5e2ca89520a9fe474835a57c7a22aeb4b85e diff --git a/crates/metal2vulkan-validation/src/candidate.rs b/crates/metal2vulkan-validation/src/candidate.rs index 032cd98d2..53d219d2c 100644 --- a/crates/metal2vulkan-validation/src/candidate.rs +++ b/crates/metal2vulkan-validation/src/candidate.rs @@ -203,6 +203,14 @@ pub(crate) mod unadvertised_stage; #[cfg(any(target_os = "linux", target_os = "macos"))] mod platform; +/// The runtime path's restriction to a committed profile for a lane test +/// (`runtime_lane/absent_reads.rs`). +#[cfg(all( + test, + any(m2v_gpu, m2v_cpu_icd), + any(target_os = "linux", target_os = "macos") +))] +pub(crate) use platform::lane_restriction; pub(crate) use platform::{runtime_restriction, Restricting, RuntimeRestriction}; /// What the runtime path's second check of a profile restriction found on its device diff --git a/crates/metal2vulkan-validation/src/candidate/platform.rs b/crates/metal2vulkan-validation/src/candidate/platform.rs index be9acf581..025efc064 100644 --- a/crates/metal2vulkan-validation/src/candidate/platform.rs +++ b/crates/metal2vulkan-validation/src/candidate/platform.rs @@ -19,6 +19,8 @@ pub use acceptance::create_acceptance_pipeline; pub use compute::execute_engine; #[cfg(all(test, any(m2v_gpu, m2v_cpu_icd)))] pub use compute::opened_worker_device; +#[cfg(all(test, any(m2v_gpu, m2v_cpu_icd)))] +pub(crate) use device::lane_restriction; pub use device::{capture_formats, echo_validation_messages, venue_check}; pub use device::{requested_leg, run_robustness_off}; pub(crate) use device::{runtime_restriction, Restricting, RuntimeRestriction}; diff --git a/crates/metal2vulkan-validation/src/candidate/platform/compute.rs b/crates/metal2vulkan-validation/src/candidate/platform/compute.rs index c914a3934..6ab14ed98 100644 --- a/crates/metal2vulkan-validation/src/candidate/platform/compute.rs +++ b/crates/metal2vulkan-validation/src/candidate/platform/compute.rs @@ -804,6 +804,7 @@ fn execute( imageblock: None, tile_attachments, shadow_stencil: None, + status: Some(status.buffer.buffer), }, observed, )?; diff --git a/crates/metal2vulkan-validation/src/candidate/platform/compute/device_replay.rs b/crates/metal2vulkan-validation/src/candidate/platform/compute/device_replay.rs index da5ef6812..3a68dac26 100644 --- a/crates/metal2vulkan-validation/src/candidate/platform/compute/device_replay.rs +++ b/crates/metal2vulkan-validation/src/candidate/platform/compute/device_replay.rs @@ -535,6 +535,7 @@ impl Prepared { texel_guards: &BTreeMap::new(), tile_attachments: &BTreeMap::new(), shadow_stencil: None, + status: None, used_textures: &BTreeMap::new(), samplers: &BTreeMap::new(), // A generated-commands variant's state lists no argument sampler diff --git a/crates/metal2vulkan-validation/src/candidate/platform/compute/replay.rs b/crates/metal2vulkan-validation/src/candidate/platform/compute/replay.rs index ca0e81813..4b6d11f14 100644 --- a/crates/metal2vulkan-validation/src/candidate/platform/compute/replay.rs +++ b/crates/metal2vulkan-validation/src/candidate/platform/compute/replay.rs @@ -361,6 +361,7 @@ fn submit_child( texel_guards: &BTreeMap::new(), tile_attachments: &BTreeMap::new(), shadow_stencil: None, + status: Some(status.buffer.buffer), used_textures: &BTreeMap::new(), samplers: &BTreeMap::new(), argument_samplers: &state.argument_samplers, diff --git a/crates/metal2vulkan-validation/src/candidate/platform/device.rs b/crates/metal2vulkan-validation/src/candidate/platform/device.rs index 8061c8eec..798135697 100644 --- a/crates/metal2vulkan-validation/src/candidate/platform/device.rs +++ b/crates/metal2vulkan-validation/src/candidate/platform/device.rs @@ -1275,6 +1275,44 @@ pub(crate) fn runtime_restriction( let Some(restriction) = profiles::current_restriction() else { return Ok(None); }; + restricting(restriction, device_type, executor).map(Some) +} + +/// The runtime path's restriction to committed profile `stem` for a lane test, whatever this +/// process's own restriction is (a test does not restrict its process): `None` where +/// `VK_LAYER_KHRONOS_profiles` is not installed, and an error where the device `device_type` +/// selects cannot take the profile. +#[cfg(all(test, any(m2v_gpu, m2v_cpu_icd)))] +pub(crate) fn lane_restriction( + stem: &str, + device_type: DeviceType, +) -> Result, String> { + let entry = load_entry()?; + // SAFETY: a global command of a loaded entry. + let layers = unsafe { entry.enumerate_instance_layer_properties() } + .map_err(|error| format!("enumerate Vulkan instance layers: {error}"))?; + if !layers + .iter() + .any(|layer| extension_name(&layer.layer_name) == PROFILES_LAYER) + { + return Ok(None); + } + // A restriction lives as long as the process, as this process's own would. + let restriction: &'static ProfileRestriction = + Box::leak(Box::new(profiles::presentable(stem)?)); + match restricting(restriction, device_type, "runtime-lane")? { + Restricting::Takes(restriction) => Ok(Some(*restriction)), + Restricting::Refused(_) => Err(format!("the device cannot take {stem}")), + } +} + +/// [`runtime_restriction`]'s steps for `restriction`: the first check decides between a typed +/// refusal and a restriction the device takes. +fn restricting( + restriction: &'static ProfileRestriction, + device_type: DeviceType, + executor: &str, +) -> Result { if device_type == DeviceType::Gpu { crate::gpu::tripwire::refuse_if_tripped()?; } @@ -1298,18 +1336,18 @@ pub(crate) fn runtime_restriction( identity, }; let attempt = super::compute::restriction_refusal(&refused, executor); - return Ok(Some(Restricting::Refused(Box::new(attempt)))); + return Ok(Restricting::Refused(Box::new(attempt))); } Err(error) => return Err(error.to_string()), } let presented = presented_extensions(&entry, device_type, portability, restriction)?; let hidden = restriction.hidden(presented.iter().map(String::as_str)); - Ok(Some(Restricting::Takes(Box::new(RuntimeRestriction { + Ok(Restricting::Takes(Box::new(RuntimeRestriction { restriction, native, identity, hidden, - })))) + }))) } impl RuntimeRestriction { diff --git a/crates/metal2vulkan-validation/src/candidate/platform/plan_resources.rs b/crates/metal2vulkan-validation/src/candidate/platform/plan_resources.rs index d6e1b0651..cc0d73906 100644 --- a/crates/metal2vulkan-validation/src/candidate/platform/plan_resources.rs +++ b/crates/metal2vulkan-validation/src/candidate/platform/plan_resources.rs @@ -56,8 +56,9 @@ use crate::check::admission::{ExecutorError, NotSupported}; use crate::literal::LiteralTexture; use ash::vk; use metal2vulkan::bind::{ - sampler_desc, ArgumentSampler, DescriptorBytes, DescriptorRange, DescriptorWrite, HeapSource, - ImageSource, ImageViewDesc, NeutralResource, SamplerDescriptor, SamplerSource, WriteSource, + sampler_desc, ArgumentSampler, DescriptorBytes, DescriptorRange, DescriptorWrite, + ExecutionStatus, HeapSource, ImageSource, ImageViewDesc, NeutralResource, SamplerDescriptor, + SamplerSource, WriteSource, }; use metal2vulkan::device::Device; use metal2vulkan::metal::sampler::OpaqueBlackBorder; @@ -154,6 +155,10 @@ pub(super) struct Guest<'a> { /// fragment function tests the stencil itself. A dispatch, and a draw without the shader-side /// stencil, have none. pub(super) shadow_stencil: Option, + /// The run's `ExecutionStatus` buffer, which a stage binds on a device that does not address + /// buffers (`WriteSource::ExecutionStatus`). A device replay, which needs the addresses, + /// has none. + pub(super) status: Option, } /// What one descriptor write points at. @@ -494,6 +499,18 @@ impl<'a> PlanResources<'a> { let buffer = self.buffer(context, "constant blob", &blob)?; whole(buffer) } + // The run's status words, the ones every command of it writes. + WriteSource::ExecutionStatus => { + let status = guest + .status + .ok_or("the plan binds an execution status the run has none of")?; + Info::Buffer( + vk::DescriptorBufferInfo::default() + .buffer(status) + .offset(0) + .range(ExecutionStatus::BYTES as u64), + ) + } // The fragment stage's sRGB color table. WriteSource::ColorWriteTable => { let table = metal2vulkan::bind::color_write_table(); diff --git a/crates/metal2vulkan-validation/src/candidate/platform/render.rs b/crates/metal2vulkan-validation/src/candidate/platform/render.rs index 1cc8f85da..1050c3713 100644 --- a/crates/metal2vulkan-validation/src/candidate/platform/render.rs +++ b/crates/metal2vulkan-validation/src/candidate/platform/render.rs @@ -599,6 +599,7 @@ fn execute( imageblock: imageblock.as_ref(), tile_attachments: &storage_attachments, shadow_stencil: shadow.as_ref().map(|shadow| shadow.view), + status: Some(status.buffer.buffer), }, observed, )?; @@ -1008,6 +1009,7 @@ pub(super) fn submit_draw_child( imageblock: None, tile_attachments: &BTreeMap::new(), shadow_stencil: None, + status: Some(status.buffer.buffer), }, None, )?; diff --git a/crates/metal2vulkan-validation/src/runtime_lane/absent_reads.rs b/crates/metal2vulkan-validation/src/runtime_lane/absent_reads.rs index b56c4339b..0117761ec 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/absent_reads.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/absent_reads.rs @@ -9,30 +9,39 @@ //! announces [`Degradation::AbsentArgumentRead`] once; a command buffer whose flag is 0 completes //! with Metal's answer (its authored cases' Metal rows), and one whose flag is 1 runs the read, //! which takes zero (Metal's answer under its debug layer), and completes too, its execution -//! report stating the read (it failed before). A device that does not address buffers refuses the -//! states, typed (`FunctionConstantArgument`, needing the addresses). +//! report stating the read (it failed before). The kernel marks the command buffer's status by the +//! status buffer's device address where the device addresses buffers, and through its binding of +//! the buffer (`SyntheticBinding::ExecutionStatus`) where it does not: the device as it is, the +//! device without `shaderInt64`, and the device restricted to `vk12-floor` (where the profiles +//! layer is installed) run the same kernels. -use super::degrade_notices::{assert_once, counts, on_device}; +use super::degrade_notices::{assert_once, counts, on_device, on_device_with}; use super::shared_kinds; +use super::Messages; use super::{buffer_with, read_buffer}; use crate::air_library::AirLibrary; -use metal2vulkan::error::{Feature, Needs}; +use metal2vulkan::device::VkFeature; use metal2vulkan::library::{FunctionConstantValue, FunctionConstantValues}; use metal2vulkan::metal::{DataType, PixelFormat, TextureUsage}; -use metal2vulkan::pipeline::{ComputePipelineDescriptor, StageSource}; +use metal2vulkan::pipeline::{ + BindingSource, ComputePipelineDescriptor, PushField, StageSource, SyntheticBinding, +}; use metal2vulkan_devtools::{engine_dir, llvm_assemble}; use metal2vulkan_runtime::{ - CommandBufferError, CommandBufferStatus, ComputePipelineState, Degradation, Device, Error, - PipelineOptions, Region, ResourceOptions, Size, Texture, TextureDescriptor, + CommandBufferError, CommandBufferStatus, ComputePipelineState, Degradation, Device, + DeviceOptions, ExecutedPipeline, PipelineOptions, Region, ResourceOptions, Size, Texture, + TextureDescriptor, }; /// What one run of a kernel left: the command buffer's status and error, whether its execution -/// report states a removed argument's read, and the words of `out`. +/// report states a removed argument's read, the words of `out`, and how the dispatch's pipeline +/// reached the command buffer's status. type Ran = ( CommandBufferStatus, Option, Option, Vec, + Reach, ); use std::time::Duration; @@ -45,8 +54,17 @@ const WAIT: Duration = Duration::from_secs(60); /// Threads per dispatch, one threadgroup. const THREADS: u64 = 4; -/// The state of `name` in the fixture with `has_source` false, or the device's typed refusal. -fn state(device: &Device, name: &str) -> Result { +/// How a dispatch's pipeline reached the command buffer's `ExecutionStatus` buffer. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +enum Reach { + /// By its device address, a push field. + Address, + /// Through the kernel's binding of it. + Binding, +} + +/// The state of `name` in the fixture with `has_source` false. +fn state(device: &Device, name: &str) -> ComputePipelineState { let bitcode = llvm_assemble(&engine_dir().join("rfs_absent_reads.ll")).unwrap(); let library = device.new_library_with_air(&bitcode).unwrap(); let constants = FunctionConstantValues::defaults() @@ -54,10 +72,12 @@ fn state(device: &Device, name: &str) -> Result { let function = library .new_function_with_name_constant_values(name, &constants) .unwrap(); - device.new_compute_pipeline_state( - &ComputePipelineDescriptor::new(StageSource::Function(function.function_descriptor())), - &PipelineOptions::default(), - ) + device + .new_compute_pipeline_state( + &ComputePipelineDescriptor::new(StageSource::Function(function.function_descriptor())), + &PipelineOptions::default(), + ) + .unwrap_or_else(|error| panic!("{name} on {}: {error}", device.name())) } /// `tex`: 4x1 `RGBA32Float`, texel `i` = `(i + 1) * (1, 2, 3, 4)`. @@ -118,79 +138,152 @@ fn run(device: &Device, state: &ComputePipelineState, flag: u32, tex: Option<&Te let absent = command_buffer .execution_report() .map(|report| report.absent_argument_read); + let executions = command_buffer.executions(); + let [execution] = executions.as_slice() else { + panic!("{} executions of one dispatch", executions.len()); + }; + let ExecutedPipeline::Compute(pipeline) = execution.pipeline() else { + panic!("a dispatch of a render pipeline"); + }; + let bound = pipeline.layout.sets.iter().any(|set| { + set.bindings.iter().any(|b| { + b.source + == BindingSource::Synthetic { + stage: metal2vulkan::pipeline::Stage::Kernel, + binding: SyntheticBinding::ExecutionStatus, + } + }) + }); + let pushed = pipeline + .interface + .push + .iter() + .flat_map(|placement| &placement.fields) + .any(|f| f.field == PushField::ExecutionStatusAddress); + let reach = match (bound, pushed) { + (true, false) => Reach::Binding, + (false, true) => Reach::Address, + other => panic!("the status reached as (binding, address) {other:?}"), + }; ( command_buffer.status(), command_buffer.error(), absent, words, + reach, ) } /// The three kernels' states are announced once; flag 0 completes with what each writes without /// the read, its report stating no such read, and flag 1 completes too, each read zero (the -/// width 0, the texel and the sample `(0, 0, 0, 0)`), its report stating the read: the path ran. -/// Over the whole test every kind is announced at most once: the runs may announce a kind of -/// their own for the first time (on a device without unified memory, the `Shared` buffers and -/// texture they make in system memory, `SharedInSystemMemory`), never one announced before. +/// width 0, the texel and the sample `(0, 0, 0, 0)`), its report stating the read: the path ran, +/// through the status as `reach`. Over the whole test every kind is announced at most once: the +/// runs may announce a kind of their own for the first time (on a device without unified memory, +/// the `Shared` buffers and texture they make in system memory, `SharedInSystemMemory`), never one +/// announced before. +fn reads_zero_and_completes(device: &Device, messages: &Messages, reach: Reach) { + let names = ["rfs_absent_query", "rfs_absent_read", "rfs_absent_sampler"]; + let states: Vec<_> = names.iter().map(|name| state(device, name)).collect(); + let mut notices = messages.take_notices(); + assert_once(¬ices, &ABSENT_READS); + let tex = texture(device); + let as_words = |floats: &[f32]| floats.iter().map(|f| f.to_bits()).collect::>(); + let query: Vec = (0..THREADS as u32).map(|i| 7 + i).collect(); + let read: Vec = (0..THREADS) + .flat_map(|i| [i as f32, 0.5, 0.25, 1.0]) + .collect(); + let expected = [ + (None, query), + (None, as_words(&read)), + (Some(&tex), as_words(&texels())), + ]; + for ((name, state), (tex, want)) in names.iter().zip(&states).zip(expected) { + let (status, error, absent, words, ran) = run(device, state, 0, tex); + assert_eq!(status, CommandBufferStatus::Completed, "{name}: {error:?}"); + assert_eq!(error, None, "{name}"); + assert_eq!(absent, Some(false), "{name}: flag 0"); + assert_eq!(&words[..want.len()], &want[..], "{name}: flag 0"); + assert_eq!(ran, reach, "{name}: flag 0"); + let (status, error, absent, words, ran) = run(device, state, 1, tex); + assert_eq!( + status, + CommandBufferStatus::Completed, + "{name}: flag 1: {error:?}" + ); + assert_eq!(error, None, "{name}: flag 1"); + assert_eq!(absent, Some(true), "{name}: flag 1"); + assert_eq!( + &words[..want.len()], + &vec![0; want.len()][..], + "{name}: flag 1" + ); + assert_eq!(ran, reach, "{name}: flag 1"); + println!( + "ABSENT-READ-COMPLETED {}: {name}, the status reached {reach:?}", + device.name() + ); + } + notices.extend(messages.take_notices()); + println!("ANNOUNCED {}: {:?}", device.name(), counts(¬ices)); + let mut kinds = ABSENT_READS.to_vec(); + kinds.extend(shared_kinds(device)); + assert_once(¬ices, &kinds); +} + +/// [`reads_zero_and_completes`] on the device as it is, which marks the status by address where +/// it addresses buffers (`bufferDeviceAddress` and `shaderInt64`) and through its binding +/// elsewhere. #[test] fn a_read_of_a_removed_argument_reads_zero_and_its_command_buffer_completes() { on_device(|device, messages| { - let names = ["rfs_absent_query", "rfs_absent_read", "rfs_absent_sampler"]; - let mut states = Vec::new(); - for name in names { - match state(device, name) { - Ok(state) => states.push(state), - Err(Error::Unsupported(u)) - if u.feature == Feature::FunctionConstantArgument - && matches!(u.needs, Needs::AnyOf(_)) => - { - println!( - "NO-DEVICE-ADDRESSES {}: {name} is refused, typed: {u:?}", - device.name() - ); - return; - } - Err(error) => panic!("{name}: {error}"), - } - } - let mut notices = messages.take_notices(); - assert_once(¬ices, &ABSENT_READS); - let tex = texture(device); - let as_words = |floats: &[f32]| floats.iter().map(|f| f.to_bits()).collect::>(); - let query: Vec = (0..THREADS as u32).map(|i| 7 + i).collect(); - let read: Vec = (0..THREADS) - .flat_map(|i| [i as f32, 0.5, 0.25, 1.0]) - .collect(); - let expected = [ - (None, query), - (None, as_words(&read)), - (Some(&tex), as_words(&texels())), - ]; - for ((name, state), (tex, want)) in names.iter().zip(&states).zip(expected) { - let (status, error, absent, words) = run(device, state, 0, tex); - assert_eq!(status, CommandBufferStatus::Completed, "{name}: {error:?}"); - assert_eq!(error, None, "{name}"); - assert_eq!(absent, Some(false), "{name}: flag 0"); - assert_eq!(&words[..want.len()], &want[..], "{name}: flag 0"); - let (status, error, absent, words) = run(device, state, 1, tex); - assert_eq!( - status, - CommandBufferStatus::Completed, - "{name}: flag 1: {error:?}" - ); - assert_eq!(error, None, "{name}: flag 1"); - assert_eq!(absent, Some(true), "{name}: flag 1"); - assert_eq!( - &words[..want.len()], - &vec![0; want.len()][..], - "{name}: flag 1" - ); - println!("ABSENT-READ-COMPLETED {}: {name}", device.name()); - } - notices.extend(messages.take_notices()); - println!("ANNOUNCED {}: {:?}", device.name(), counts(¬ices)); - let mut kinds = ABSENT_READS.to_vec(); - kinds.extend(shared_kinds(device)); - assert_once(¬ices, &kinds); + let addressed = device + .compile_device() + .profile() + .addressed_needs() + .is_empty(); + let reach = match addressed { + true => Reach::Address, + false => Reach::Binding, + }; + reads_zero_and_completes(device, messages, reach); }); } + +/// [`reads_zero_and_completes`] on the device without `shaderInt64`, which then addresses no +/// buffer: the kernels mark the status through their binding of it. +#[test] +fn without_buffer_addresses_a_removed_arguments_read_marks_through_the_status_binding() { + on_device_with( + |options| { + options.withheld_features.insert(VkFeature::ShaderInt64); + }, + |device, messages| reads_zero_and_completes(device, messages, Reach::Binding), + ); +} + +/// [`reads_zero_and_completes`] on the device restricted to `vk12-floor` through the profiles +/// layer (Vulkan 1.2 and nothing optional: no buffer device address, no 64-bit integers, 4 storage +/// buffers a stage): the kernels mark the status through their binding of it. Skipped, visibly, +/// where the profiles layer is not installed. +#[test] +fn on_vk12_floor_a_removed_arguments_read_marks_through_the_status_binding() { + let Some(restriction) = + crate::candidate::lane_restriction("vk12-floor", crate::gpu::TEST_DEVICE).unwrap() + else { + println!("SKIPPED: VK_LAYER_KHRONOS_profiles is not installed"); + return; + }; + on_device_with( + |options: &mut DeviceOptions| restriction.restrict(options).unwrap(), + |device, messages| { + let restricted = restriction.check(device).unwrap(); + println!( + "RESTRICTED {}: {}, kept {:?}", + device.name(), + restricted.record, + restricted.kept + ); + reads_zero_and_completes(device, messages, Reach::Binding); + }, + ); +} diff --git a/crates/metal2vulkan/src/bind/graphics.rs b/crates/metal2vulkan/src/bind/graphics.rs index 9dbe44484..a477faba6 100644 --- a/crates/metal2vulkan/src/bind/graphics.rs +++ b/crates/metal2vulkan/src/bind/graphics.rs @@ -1618,6 +1618,8 @@ fn plan(p: &RenderPipeline, device: &Device, shape: &BindShape) -> Result { WriteSource::ColorWriteTable } + // The command buffer's status, on a device that does not address buffers. + SyntheticBinding::ExecutionStatus => WriteSource::ExecutionStatus, other => return Err(internal(format!("a render binding {other:?}"))), }, BindingSource::Heap(_) | BindingSource::HeapSampler { .. } => { diff --git a/crates/metal2vulkan/src/bind/mod.rs b/crates/metal2vulkan/src/bind/mod.rs index fbe49f32b..27a2797a8 100644 --- a/crates/metal2vulkan/src/bind/mod.rs +++ b/crates/metal2vulkan/src/bind/mod.rs @@ -34,8 +34,10 @@ //! [`Device::neutral_kinds`](crate::device::Device::neutral_kinds) once. Per command buffer, bind //! one [`ExecutionStatus`] buffer: initialize it with [`ExecutionStatus::initial`], and read it //! back with [`ExecutionStatus::decode`], which reports clamped indirect counts and resident-set -//! misses. An indirect dispatch can carry an [`IndirectClamp`] prepass -//! of [`indirect_clamp_module`] to record first. An indexed indirect draw whose index fetch +//! misses. A command reaches it by its device address where the device addresses buffers, and +//! through the binding [`WriteSource::ExecutionStatus`] names where it does not. An indirect +//! dispatch can carry an [`IndirectClamp`] prepass of [`indirect_clamp_module`] to record first. +//! An indexed indirect draw whose index fetch //! nothing bounds (`DrawCommands::index_bounds_pass`) can bound it on the GPU instead of reading //! its arguments: an [`IndexBoundsPass`] of [`index_bounds_plan_module`] and //! [`index_bounds_fill_module`] before the render pass instance, and two indirect draws. An diff --git a/crates/metal2vulkan/src/bind/plan.rs b/crates/metal2vulkan/src/bind/plan.rs index 69c969b07..5f2405d16 100644 --- a/crates/metal2vulkan/src/bind/plan.rs +++ b/crates/metal2vulkan/src/bind/plan.rs @@ -739,6 +739,15 @@ pub enum WriteSource { /// stages' alike): the draw's region of `MeshDispatch::work_bytes`, holding /// `MeshDispatch::work`, bound whole ([`MeshDispatch`](crate::bind::MeshDispatch)). MeshWork, + /// The command buffer's execution status (`SyntheticBinding::ExecutionStatus`) of a stage on + /// a device that does not address buffers: a storage buffer of the + /// [`ExecutionStatus`](crate::bind::ExecutionStatus) words, the same buffer every command of + /// the command buffer writes (where the device addresses buffers, the one whose address + /// `PushHole::ExecutionStatusAddress` takes), its + /// [`ExecutionStatus::BYTES`](crate::bind::ExecutionStatus::BYTES) bytes bound, starting all + /// zero ([`ExecutionStatus::initial`](crate::bind::ExecutionStatus::initial)). The consumer + /// reads it once the command buffer completes. + ExecutionStatus, /// The fragment stage's sRGB color table (`SyntheticBinding::ColorWriteTable`): a read-only /// buffer holding exactly [`color_write_table`](crate::bind::color_write_table)'s bytes, /// bound whole, as the write's descriptor type says (a uniform buffer, or a storage buffer). diff --git a/crates/metal2vulkan/src/bind/plan/compute.rs b/crates/metal2vulkan/src/bind/plan/compute.rs index eb9254fd1..cbb9a9fc3 100644 --- a/crates/metal2vulkan/src/bind/plan/compute.rs +++ b/crates/metal2vulkan/src/bind/plan/compute.rs @@ -581,6 +581,8 @@ fn plan(p: &ComputePipeline, device: &Device, shape: &BindShape) -> Result WriteSource::Imageblock, + // The command buffer's status, on a device that does not address buffers. + SyntheticBinding::ExecutionStatus => WriteSource::ExecutionStatus, other => return Err(internal(format!("a compute binding {other:?}"))), }, BindingSource::Texture(slot) => { diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index f389668cb..8661be97f 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -60,7 +60,7 @@ mod tests; /// unchanged version, and its bless records the version. Independent of the crate's version and of /// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no /// history. -pub const SEMANTICS_VERSION: u32 = 1696; +pub const SEMANTICS_VERSION: u32 = 1698; /// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the /// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another @@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 399; /// changes no behaviour, and then updates that hash alone with the commit saying why, or changes /// behaviour and also bumps this version. The commit that bumps it says what changed; this comment /// keeps no history. -pub const RUNTIME_VERSION: u32 = 1203; +pub const RUNTIME_VERSION: u32 = 1204; /// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex, /// of the manifest, the build script, and exactly the files the crate roots' module tree compiles diff --git a/crates/metal2vulkan/src/device/mechanism.rs b/crates/metal2vulkan/src/device/mechanism.rs index c384ef107..946859895 100644 --- a/crates/metal2vulkan/src/device/mechanism.rs +++ b/crates/metal2vulkan/src/device/mechanism.rs @@ -68,10 +68,14 @@ pub fn mechanism(fact: &RuntimeFact, profile: &DeviceProfile) -> Mechanism { }, RuntimeFact::TexelBufferRange { .. } => Mechanism::PlanTimeCheck, RuntimeFact::FramebufferFetch { .. } => Mechanism::RenderPassContract, - // A function that counts resident-set misses reaches the status buffer at the device - // address the binder writes into its push field (`PushField::ExecutionStatusAddress`); - // no stage module binds it. - RuntimeFact::ExecutionStatus => Mechanism::PushConstant, + // A function that writes the status buffer reaches it at the device address the binder + // writes into its push field (`PushField::ExecutionStatusAddress`), or, on a device that + // does not address buffers, through the stage's binding of it + // (`SyntheticBinding::ExecutionStatus`). + RuntimeFact::ExecutionStatus => match f.buffer_access { + BufferAccess::Addressed => Mechanism::PushConstant, + BufferAccess::Floor => Mechanism::SyntheticBinding, + }, // The binder writes each heap element from the texture's facts and reports a texture // the class cannot hold. RuntimeFact::HeapNumericType { .. } => Mechanism::BinderView, diff --git a/crates/metal2vulkan/src/device/tests/mechanism.rs b/crates/metal2vulkan/src/device/tests/mechanism.rs index 085f517f4..be4a4eedb 100644 --- a/crates/metal2vulkan/src/device/tests/mechanism.rs +++ b/crates/metal2vulkan/src/device/tests/mechanism.rs @@ -448,7 +448,10 @@ fn mechanism_is_total_over_every_fact_and_profile() { | RuntimeFact::ShaderStencilTest { .. } | RuntimeFact::TileImageblock { .. } | RuntimeFact::ExtendedRangeInputBlend { .. } => Mechanism::RenderPassContract, - RuntimeFact::ExecutionStatus => Mechanism::PushConstant, + RuntimeFact::ExecutionStatus => match f.buffer_access { + crate::device::profile::BufferAccess::Addressed => Mechanism::PushConstant, + _ => Mechanism::SyntheticBinding, + }, RuntimeFact::HeapNumericType { .. } | RuntimeFact::HeapHalfTexelWrites { .. } => Mechanism::BinderView, RuntimeFact::StageInRegion diff --git a/crates/metal2vulkan/src/error/mod.rs b/crates/metal2vulkan/src/error/mod.rs index b42725d92..5955b9b72 100644 --- a/crates/metal2vulkan/src/error/mod.rs +++ b/crates/metal2vulkan/src/error/mod.rs @@ -1096,8 +1096,8 @@ pub enum Feature { /// argument is not declared (MSL 5.8.1.2) and Metal defines no value for it (its compiler drops /// a store of such a read and gives arithmetic on it NaN), and no contained answer for a /// dereference is established. An absent read sets `StatusBits::ABSENT_ARGUMENT_READ` where it - /// runs and yields zero (`RuntimeFact::AbsentArgumentRead`); on a device that does not address - /// buffers, or whose vertex or fragment stage has no stores, it is refused with what it needs. + /// runs and yields zero (`RuntimeFact::AbsentArgumentRead`); in a vertex or fragment stage + /// without its stores and atomics it is refused with what it needs. /// An absent argument passed by value (its parameter is not a pointer: a vertex attribute, a /// stage input, a varying, a color input, a builtin, imageblock data, an indirect constant, a /// per-patch attribute) reads zero instead. A read nothing observes is `undef`, or goes; a @@ -1292,8 +1292,7 @@ pub enum Feature { /// A sequentially consistent fence (`seq_cst` `atomic_thread_fence`, an LLVM `fence seq_cst`, /// or a `seq_cst` barrier ordering device memory), whose total order with the command /// buffer's other such fences the translation keeps through an atomic of the command buffer's - /// `ExecutionStatus` word: on a device without device addresses ([`Needs::AnyOf`]) or the - /// stage's stores and atomics. + /// `ExecutionStatus` word: in a vertex or fragment stage without its stores and atomics. SeqCstFence, } diff --git a/crates/metal2vulkan/src/lower/access/absent.rs b/crates/metal2vulkan/src/lower/access/absent.rs index 208d7395c..d36902867 100644 --- a/crates/metal2vulkan/src/lower/access/absent.rs +++ b/crates/metal2vulkan/src/lower/access/absent.rs @@ -17,11 +17,14 @@ //! sampler that lowering reaches through memory, an aggregate, a table, or a merge //! (`texture::AbsentArgument`), which shares [`require`] and [`mark`]. //! -//! The stage states [`RuntimeFact::AbsentArgumentRead`] and, for the buffer's address, -//! [`RuntimeFact::ExecutionStatus`] with [`PushField::ExecutionStatusAddress`]. The write goes -//! through that device address, so the device must address buffers (`bufferDeviceAddress`, -//! `shaderInt64`), and a vertex or fragment function needs its stage's stores and atomics; a -//! device without them refuses the read as `FunctionConstantArgument`, naming what it needs. +//! The stage states [`RuntimeFact::AbsentArgumentRead`] and [`RuntimeFact::ExecutionStatus`]. It +//! reaches the buffer by its device address ([`PushField::ExecutionStatusAddress`]) where the +//! device addresses buffers (`bufferDeviceAddress` and `shaderInt64`), and through a storage-buffer +//! binding of its own (`SyntheticBinding::ExecutionStatus`, [`StatusBinding`]) where it does not, +//! one more storage descriptor of the stage: a stage past a per-stage limit with it is refused as +//! `DescriptorCount` (`lower::select`), naming the limit. A vertex or fragment function needs its +//! stage's stores and atomics; a device without them refuses the read as +//! `FunctionConstantArgument`, naming what it needs. use crate::air::intrinsics::{AirIntrinsic, FunctionConstant}; use crate::air::ir::{Callee, Inst, InstId, InstKind, Type, Value, ValueId}; @@ -33,9 +36,10 @@ use crate::lower::emit::EmitCx; use crate::lower::select::SelectCx; use crate::memory::leaf::k32; use crate::memory::roots::k64; +use crate::memory::views::{self, View, ViewKind}; use crate::pipeline::facts::RuntimeFact; -use crate::pipeline::sym::PushField; -use crate::spirv::builder::FunctionBuilder; +use crate::pipeline::sym::{PushField, ResourceKind, ResourceSlot, Stage, SyntheticBinding}; +use crate::spirv::builder::{FunctionBuilder, ModuleBuilder}; use crate::spirv::error::BResult; use crate::spirv::ids::DemoteTy; use crate::spirv::ir::{AtomicOp, BinOp, Constant, Scope, Semantics, Type as SType}; @@ -53,8 +57,9 @@ impl AbsentRead { "access.absent_read" } - /// An upper estimate of the SPIR-V words one read emits: the push field's load, the word's - /// address and pointer, the bit, and the atomic `OR`; the zero is a constant. + /// An upper estimate of the SPIR-V words one read emits: the push field's load and the word's + /// address and pointer (or the binding's access chain), the bit, and the atomic `OR`; the zero + /// is a constant. pub fn words(&self) -> u32 { 32 } @@ -62,7 +67,7 @@ impl AbsentRead { /// Select the read of `inst` when it is a [`FunctionConstant::AbsentRead`] or /// [`FunctionConstant::AbsentMemory`] call, `None` otherwise: the stage writes the -/// `ExecutionStatus` buffer through its device address. +/// `ExecutionStatus` buffer ([`state_status`]). pub fn select(cx: &mut SelectCx<'_>, at: InstId, inst: &Inst) -> Result, Error> { let InstKind::Call(call) = &inst.kind else { return Ok(None); @@ -85,61 +90,123 @@ pub fn select(cx: &mut SelectCx<'_>, at: InstId, inst: &Inst) -> Result) -> Result<(), Error> { - match status_short(cx) { - Some(StatusShort::Addresses) => { - return Err(Unsupported::needs_any_of( - Feature::FunctionConstantArgument, - vec![cx.profile.addressed_needs()], - ) - .into()); - } - Some(StatusShort::Stores(f)) => { - return Err(Unsupported::needs( - Feature::FunctionConstantArgument, - Capability::Feature(f), - ) - .into()); - } - None => state_status(cx), + if let Some(StatusShort::Stores(f)) = status_short(cx) { + return Err( + Unsupported::needs(Feature::FunctionConstantArgument, Capability::Feature(f)).into(), + ); } + state_status(cx, StatusBinding::Required); cx.facts .insert(RuntimeFact::AbsentArgumentRead { stage: cx.stage }); Ok(()) } -/// What the stage lacks to write the command buffer's `ExecutionStatus` words: the buffer's -/// device address, or its stage's stores and atomics. Each refusal names its own feature at its -/// site ([`require`], `sync::barrier::require_seq_cst`), so the refusal surface reads each one's -/// condition (`scripts/refusal-surface`). +/// What the stage lacks to write the command buffer's `ExecutionStatus` words. Each refusal +/// names its own feature at its site ([`require`], `sync::barrier::require_seq_cst`), so the +/// refusal surface reads each one's condition (`scripts/refusal-surface`). pub enum StatusShort { - /// The device does not address buffers (`DeviceProfile::addressed_needs`). - Addresses, /// The stage's stores and atomics, which the device has not enabled. Stores(VkFeature), } /// What the stage lacks to write the command buffer's `ExecutionStatus` words, or `None` where -/// it can ([`state_status`] then states the buffer's address). +/// it can ([`state_status`] then states how it reaches the buffer). pub fn status_short(cx: &SelectCx<'_>) -> Option { - if cx.profile.fields().buffer_access != BufferAccess::Addressed { - return Some(StatusShort::Addresses); - } let enabled = &cx.profile.fields().enabled.features; super::dynamic::stage_stores(cx.stage) .find(|f| !enabled.contains(f)) .map(StatusShort::Stores) } -/// State the `ExecutionStatus` buffer's address for the stage, which [`status_short`] found it -/// can write. -pub fn state_status(cx: &mut SelectCx<'_>) { - cx.push.insert(PushField::ExecutionStatusAddress); +/// Why a stage of a device that does not address buffers binds the command buffer's +/// `ExecutionStatus` buffer (`SyntheticBinding::ExecutionStatus`), one more storage descriptor of +/// the stage, which counts against its per-stage limits. +#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)] +pub enum StatusBinding { + /// Only an argument buffer's sampler's cubic test marks the buffer + /// (`sampler::select::cubic_reach`): where the stage's descriptors pass a per-stage limit with + /// it, [`finish`] gives it back, and the stage marks nothing, as a fragment stage does (the + /// planner refuses a listed cubic sampler beside the stage). + CubicMark, + /// An absent read or a sequentially consistent fence writes the buffer: a stage past a + /// per-stage limit with it is refused as `DescriptorCount`. + Required, +} + +/// State how the stage reaches the `ExecutionStatus` buffer, which [`status_short`] found it can +/// write, for `need`: its device address where the device addresses buffers, else its binding +/// ([`StatusBinding`]), counted once in the stage's descriptors. +pub fn state_status(cx: &mut SelectCx<'_>, need: StatusBinding) { cx.facts.insert(RuntimeFact::ExecutionStatus); + if cx.profile.fields().buffer_access == BufferAccess::Addressed { + cx.push.insert(PushField::ExecutionStatusAddress); + return; + } + let access = &mut cx.families.access; + if access.status_binding.is_none() { + cx.descriptors.storage_buffers = cx.descriptors.storage_buffers.saturating_add(1); + } + access.status_binding = access.status_binding.max(Some(need)); +} + +/// Give back a binding of the `ExecutionStatus` buffer that only the cubic mark holds +/// ([`StatusBinding::CubicMark`]) where the stage's descriptors pass a per-stage limit with it: +/// the stage then marks nothing, and states no cubic reach, so the planner refuses a listed cubic +/// sampler beside it (`SamplerBicubicFilter`), as before the binding. Called once the slots' +/// forms are final, before the limits are checked (`lower::select`). +/// +/// The mark is one the stage may need, not one it does: only a cubic sampler that a command +/// later lists in the argument buffer needs it, and that sampler then meets the planner's typed +/// refusal, so giving the binding back hides nothing. Refusing the stage instead would refuse +/// every stage near its limit that samples through an argument buffer, cubic sampler or not. +pub fn finish(cx: &mut SelectCx<'_>) { + if cx.families.access.status_binding != Some(StatusBinding::CubicMark) { + return; + } + if cx + .descriptors + .exceeded(&cx.profile.fields().limits) + .is_none() + { + return; + } + cx.families.access.status_binding = None; + cx.descriptors.storage_buffers = cx.descriptors.storage_buffers.saturating_sub(1); + cx.families.sampler.cubic_reach = false; + cx.facts.remove(&RuntimeFact::ExecutionStatus); + cx.facts + .remove(&RuntimeFact::CubicArgumentSampler { stage: cx.stage }); +} + +/// The binding symbol of `stage`'s `ExecutionStatus` buffer. +pub fn symbol(stage: Stage) -> ResourceSlot { + ResourceSlot { + stage, + kind: ResourceKind::Synthetic(SyntheticBinding::ExecutionStatus), + index: 0, + } +} + +/// Declare the stage's `ExecutionStatus` view, a storage word view at its binding symbol, where +/// it binds the buffer ([`StatusBinding`]). +pub fn declare( + mb: &mut ModuleBuilder, + stage: Stage, + plan: &super::AccessPlan, +) -> BResult> { + match plan.status_binding { + Some(_) => Ok(Some(views::declare_at( + mb, + symbol(stage), + ViewKind::Storage, + )?)), + None => Ok(None), + } } /// Emit absent read `s`, whose result is `vid`: set the bit, and define the result as zero. @@ -168,19 +235,19 @@ pub fn mark(cx: &mut EmitCx<'_>, fb: &mut FunctionBuilder<'_>) -> BResult<()> { mark_bits(cx, fb, StatusBits::ABSENT_ARGUMENT_READ) } -/// Whether the stage can write the command buffer's `ExecutionStatus` word ([`require`]'s needs: -/// the buffer's device address and the stage's stores and atomics), stating the buffer's address -/// for it where it can. +/// Whether the stage can write the command buffer's `ExecutionStatus` word for the cubic mark +/// ([`require`]'s needs: the stage's stores and atomics), stating how it reaches the buffer where +/// it can ([`StatusBinding::CubicMark`]). pub fn status_writable(cx: &mut SelectCx<'_>) -> bool { let writable = status_short(cx).is_none(); if writable { - state_status(cx); + state_status(cx, StatusBinding::CubicMark); } writable } /// Set `bits` in the command buffer's `ExecutionStatus` word, where the open block runs (a -/// relaxed device-scope `OR`); the stage stated the buffer's address ([`require`], +/// relaxed device-scope `OR`); the stage stated how it reaches the buffer ([`require`], /// [`status_writable`]). pub fn mark_bits( cx: &mut EmitCx<'_>, @@ -193,13 +260,21 @@ pub fn mark_bits( Ok(()) } -/// The place of the command buffer's `ExecutionStatus` word `w` (a `u32` by device address); -/// the stage stated the buffer's address ([`state_status`]). +/// The place of the command buffer's `ExecutionStatus` word `w` (a `u32`): through the stage's +/// binding of the buffer where it has one ([`declare`]), else by the buffer's device address; the +/// stage stated which ([`state_status`]). pub fn status_word( cx: &mut EmitCx<'_>, fb: &mut FunctionBuilder<'_>, w: StatusWord, ) -> BResult { + if let Some(view) = cx.decl.families.access.status { + let word = k32(fb, w.byte_offset() / 4)?; + return match views::word_ptr(fb, view, word)? { + Some(ptr) => Ok(ptr), + None => Err(cx.fail("an ExecutionStatus view that is not a storage view")), + }; + } let status = cx.push_field(fb, PushField::ExecutionStatusAddress)?; let address = match w.byte_offset() { 0 => status, diff --git a/crates/metal2vulkan/src/lower/access/mod.rs b/crates/metal2vulkan/src/lower/access/mod.rs index ca1b866b5..9a926aab3 100644 --- a/crates/metal2vulkan/src/lower/access/mod.rs +++ b/crates/metal2vulkan/src/lower/access/mod.rs @@ -783,6 +783,10 @@ pub struct AccessPlan { /// The relaxed atomic loads an exit of a loop holding them depends on ([`atomic::spin`]): each /// acquires its memory. Planned before any instruction is selected. pub spins: BTreeSet, + /// The stage binds the command buffer's `ExecutionStatus` buffer + /// (`SyntheticBinding::ExecutionStatus`), one more storage descriptor, on a device that does + /// not address buffers, and why ([`absent::StatusBinding`]). + pub status_binding: Option, } impl AccessPlan { @@ -835,6 +839,9 @@ pub struct Declared { /// The stage's function-table directory and search and the heap's function-table array, /// when a table is read by its resource id. pub function_tables: Option, + /// The stage's view of the command buffer's `ExecutionStatus` buffer, where it binds the + /// buffer ([`absent::declare`]). + pub status: Option, } /// The module's routines the access family's strategies call, each charged once to the census: the @@ -1694,6 +1701,7 @@ pub fn declare( }, tile: tile::declare(mb, &plan.families.access)?, function_tables: function_table::declare(mb, plan)?, + status: absent::declare(mb, plan.stage, &plan.families.access)?, ..Declared::default() }; for (i, s) in plan.slots.iter().enumerate() { diff --git a/crates/metal2vulkan/src/lower/select.rs b/crates/metal2vulkan/src/lower/select.rs index 15424fd34..42ab7f78d 100644 --- a/crates/metal2vulkan/src/lower/select.rs +++ b/crates/metal2vulkan/src/lower/select.rs @@ -1608,6 +1608,7 @@ fn finish( arith::finish(&mut cx)?; let slots = access::finish_slots(&mut cx, m)?; + access::absent::finish(&mut cx); sync::memory_model::finish_interlock(&mut cx, &slots)?; charge_facts(&cx, fact_bytes, m)?; let descriptors = cx.descriptors; diff --git a/crates/metal2vulkan/src/lower/sync/barrier.rs b/crates/metal2vulkan/src/lower/sync/barrier.rs index fa37186d3..f3eae947e 100644 --- a/crates/metal2vulkan/src/lower/sync/barrier.rs +++ b/crates/metal2vulkan/src/lower/sync/barrier.rs @@ -435,24 +435,15 @@ fn select_fence( pub const SEQ_CST_WORDS: u32 = 48; /// What a sequentially consistent fence needs ([`seq_cst_order`]): the command buffer's -/// `ExecutionStatus` word, by device address, and the stage's atomics; a device without them +/// `ExecutionStatus` word (`absent::state_status`), and the stage's atomics; a device without them /// refuses the fence as `SeqCstFence`, naming what it needs. pub fn require_seq_cst(cx: &mut SelectCx<'_>) -> Result<(), Error> { - use crate::lower::access::absent::{state_status, status_short, StatusShort}; - match status_short(cx) { - Some(StatusShort::Addresses) => Err(Unsupported::needs_any_of( - Feature::SeqCstFence, - vec![cx.profile.addressed_needs()], - ) - .into()), - Some(StatusShort::Stores(f)) => { - Err(Unsupported::needs(Feature::SeqCstFence, Capability::Feature(f)).into()) - } - None => { - state_status(cx); - Ok(()) - } + use crate::lower::access::absent::{state_status, status_short, StatusBinding, StatusShort}; + if let Some(StatusShort::Stores(f)) = status_short(cx) { + return Err(Unsupported::needs(Feature::SeqCstFence, Capability::Feature(f)).into()); } + state_status(cx, StatusBinding::Required); + Ok(()) } /// Order a sequentially consistent fence of `flags`' memories at `scope` with every other such diff --git a/crates/metal2vulkan/src/pipeline/facts.rs b/crates/metal2vulkan/src/pipeline/facts.rs index a0929adb2..0a00b67f0 100644 --- a/crates/metal2vulkan/src/pipeline/facts.rs +++ b/crates/metal2vulkan/src/pipeline/facts.rs @@ -53,8 +53,11 @@ pub enum RuntimeFact { TexelBufferRange { slot: SlotRef }, /// Framebuffer fetch of this color index. FramebufferFetch { color: u32 }, - /// The function writes the command buffer's `ExecutionStatus` buffer: it counts resident-set - /// misses through the buffer's device address. + /// The function writes the command buffer's `ExecutionStatus` buffer (resident-set misses, + /// absent reads, sequentially consistent fences, an argument buffer's cubic sampler): through + /// the buffer's device address (`PushField::ExecutionStatusAddress`), or, on a device that + /// does not address buffers, through the stage's binding of it + /// (`SyntheticBinding::ExecutionStatus`). ExecutionStatus, /// The set-1 heap array of `class` is declared with the default `Float` sampled type because /// some heap group of that class is only queried: nothing structural types it (the @@ -737,8 +740,7 @@ pub enum Mechanism { RegionSelected, /// The indirect-clamp prepass. IndirectClamp, - /// A synthetic binding. No fact maps to it (the `ExecutionStatus` fact is a push field); the - /// variant stays in the artifact encoding. + /// A synthetic binding: the `ExecutionStatus` fact on a device that does not address buffers. SyntheticBinding, /// Graphics state plus the render-pass contract. RenderPassContract, diff --git a/crates/metal2vulkan/src/pipeline/sym.rs b/crates/metal2vulkan/src/pipeline/sym.rs index 94e95db75..8daac0a6e 100644 --- a/crates/metal2vulkan/src/pipeline/sym.rs +++ b/crates/metal2vulkan/src/pipeline/sym.rs @@ -183,9 +183,10 @@ impl HandleClass { pub enum SyntheticBinding { /// Per-stage uniform buffer holding the push fields that did not fit the push window. ArgumentTable, - /// The command buffer's `ExecutionStatus` buffer: the indirect-clamp prepass's status binding. - /// A stage module reaches the buffer by device address ([`PushField::ExecutionStatusAddress`]), - /// never through a binding. + /// The command buffer's `ExecutionStatus` buffer: the product's prepasses' status binding, and + /// a stage module's on a device that does not address buffers, a storage buffer the binder + /// writes as `WriteSource::ExecutionStatus`. A stage module of a device that addresses buffers + /// reaches the buffer by device address ([`PushField::ExecutionStatusAddress`]) instead. ExecutionStatus, /// The resident root table. RootTable, diff --git a/crates/metal2vulkan/src/pipeline/testing.rs b/crates/metal2vulkan/src/pipeline/testing.rs index ec4f4c10e..b75ae2dca 100644 --- a/crates/metal2vulkan/src/pipeline/testing.rs +++ b/crates/metal2vulkan/src/pipeline/testing.rs @@ -76,6 +76,34 @@ pub fn profile(stem: &str, policy: DevicePolicy) -> Result Result { + let path = Path::new(env!("CARGO_MANIFEST_DIR")) + .join("../metal2vulkan-validation/profiles") + .join(format!("{stem}.json")); + let text = std::fs::read_to_string(&path).map_err(|e| format!("{}: {e}", path.display()))?; + let mut desc = + DeviceDescription::from_khronos_json(&text, None).map_err(|e| format!("{stem}: {e}"))?; + desc.limits.max_per_stage_descriptor_storage_buffers = storage; + let dev = Device::new(desc, policy).map_err(|e| format!("{stem}: {e}"))?; + Ok(dev.profile().clone()) +} + +/// The storage-buffer descriptors the stage of `a` declares. +pub fn storage_buffers(a: &FunctionArtifact) -> u32 { + a.interface + .descriptors + .iter() + .filter(|d| d.ty == crate::vk::DescriptorType::STORAGE_BUFFER) + .map(|d| d.count) + .sum() +} + /// The default policy with the translation's routines of Metal's maths /// (`FloatMathsPolicy::Exact`), Metal's `half` rounding (`HalfRoundingPolicy::Exact`), and Metal's /// NaN, minimum and maximum and rounding order (`NanMinMaxPolicy::Exact`, @@ -981,4 +1009,46 @@ pub fn moltenvk_msl_compile(words: &[u32]) -> Result<(), AssembleError> { msl_tool("xcrun", &compile) } +/// How a compiled stage reaches the command buffer's `ExecutionStatus` buffer. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum StatusReach { + /// It does not. + None, + /// By the device address in its push field (`PushField::ExecutionStatusAddress`). + Address, + /// Through its storage-buffer binding (`SyntheticBinding::ExecutionStatus`). + Binding, +} + +/// How the stage of `a` reaches the `ExecutionStatus` buffer: by address or through its binding, +/// never both (a stage with both panics). +pub fn status_reach(a: &FunctionArtifact) -> StatusReach { + use crate::pipeline::sym::{PushField, ResourceKind, SyntheticBinding}; + let address = a + .interface + .push + .fields + .iter() + .any(|f| f.field == PushField::ExecutionStatusAddress); + let binding = a.interface.descriptors.iter().any(|d| { + d.slot.kind == ResourceKind::Synthetic(SyntheticBinding::ExecutionStatus) + && d.ty == crate::vk::DescriptorType::STORAGE_BUFFER + }); + match (address, binding) { + (false, false) => StatusReach::None, + (true, false) => StatusReach::Address, + (false, true) => StatusReach::Binding, + (true, true) => panic!("a stage reaches its status by address and through a binding"), + } +} + +/// The reach of the `ExecutionStatus` buffer a stage that writes it has on `p`: by address where +/// `p` addresses buffers, else through its binding. +pub fn status_reach_on(p: &DeviceProfile) -> StatusReach { + match p.fields().buffer_access { + crate::device::profile::BufferAccess::Addressed => StatusReach::Address, + crate::device::profile::BufferAccess::Floor => StatusReach::Binding, + } +} + mod tests; diff --git a/crates/metal2vulkan/src/spirv/requirements/writes.rs b/crates/metal2vulkan/src/spirv/requirements/writes.rs index 46f919152..56b12cbfe 100644 --- a/crates/metal2vulkan/src/spirv/requirements/writes.rs +++ b/crates/metal2vulkan/src/spirv/requirements/writes.rs @@ -7,12 +7,14 @@ //! and an image write. //! //! The product also writes one buffer the guest never names: the command buffer's -//! `ExecutionStatus` buffer, whose words the resident-miss count updates. Those writes are the -//! product's, wherever lowering places them, so a write whose address derives from that buffer does -//! not count. A stage module reaches the buffer by the device address in the push block's +//! `ExecutionStatus` buffer, whose words the resident-miss count, an absent read's mark and a +//! `seq_cst` fence's order update. Those writes are the product's, wherever lowering places them, +//! so a write whose address derives from that buffer does not count. A stage module of a device +//! that addresses buffers reaches the buffer by the device address in the push block's //! `ExecutionStatusAddress` member, which the placement order always puts in the push block -//! (`lower::push`'s `the_status_address_is_always_placed_in_the_push_block`); the -//! `Synthetic(ExecutionStatus)` storage buffer, the buffer's binding, counts as the buffer too. A +//! (`lower::push`'s `the_status_address_is_always_placed_in_the_push_block`); one of a device that +//! does not reaches it through its `Synthetic(ExecutionStatus)` storage buffer, the buffer's +//! binding, which counts as the buffer too. A //! written pointer is traced back through access chains, `OpConvertUToPtr`, and an `OpIAdd` of a //! constant; it addresses the status buffer exactly when the trace ends at that binding or at a //! load of that member. A pointer that traces anywhere else, or not at all (a phi, a parameter, a diff --git a/crates/metal2vulkan/src/tests/engine_absent_handles.rs b/crates/metal2vulkan/src/tests/engine_absent_handles.rs index e408ac823..c0340c04e 100644 --- a/crates/metal2vulkan/src/tests/engine_absent_handles.rs +++ b/crates/metal2vulkan/src/tests/engine_absent_handles.rs @@ -23,9 +23,9 @@ //! - `ah_sampler_stack`: the present texture `p` sampled through the removed sampler `s`, stored //! into a stack struct and loaded back. //! -//! With `has_t` false each compiles, on every committed profile that addresses buffers, into a -//! kernel that states its absent read and validates, its absent arm marking the status; a profile -//! that does not address buffers refuses it as `FunctionConstantArgument`, naming what it needs. +//! With `has_t` false each compiles, on every committed profile, into a kernel that states its +//! absent read and validates, its absent arm marking the status: by the status buffer's address +//! where the profile addresses buffers, through the stage's binding of it elsewhere. //! With `has_t` true each compiles without an absent read. Previously every one was refused //! `FunctionConstantArgument` while specializing. //! @@ -34,9 +34,9 @@ use std::sync::Arc; use crate::budget::SPIRV_WORDS; -use crate::device::profile::BufferAccess; +use crate::device::requirements::VkLimit; use crate::device::DeviceProfile; -use crate::error::{Error, Feature, Needs}; +use crate::error::{Capability, Error, Feature, Needs}; use crate::library::{FunctionArtifact, FunctionConstantValue, FunctionConstantValues}; use crate::metal::DataType; use crate::pipeline::compile::{compile_bitcode, EntryRef}; @@ -45,7 +45,10 @@ use crate::pipeline::link::{link, LinkInputs}; use crate::pipeline::lower_inputs::LoweringInputs; use crate::pipeline::relocate::relocate; use crate::pipeline::sym::{SlotClass, Stage}; -use crate::pipeline::testing::{llvm_assemble, meter, AssembleError}; +use crate::pipeline::testing::{ + llvm_assemble, meter, profile_with_storage_buffers, status_reach, status_reach_on, + storage_buffers, AssembleError, StatusReach, +}; use crate::spirv::testing::{check_words_valid, committed_profiles}; /// The kernels (module docs). Argument 0 is the removed texture `t` (a table `ts` in @@ -333,55 +336,71 @@ fn texture_slots(a: &FunctionArtifact) -> Vec { .collect() } -/// With `has_t` false, each shape compiles into an absent read where the profile addresses buffers, -/// binds only the present texture a merge may still choose (no slot for the removed one), states -/// the status it marks, and validates; elsewhere it is refused with the addresses it needs. +/// With `has_t` false, each shape compiles into an absent read on every committed profile, binds +/// only the present texture a merge may still choose (no slot for the removed one), states the +/// status it marks, reached by address where the profile addresses buffers and through the +/// stage's binding of it elsewhere, and validates. #[test] fn a_removed_handle_reached_through_any_shape_is_an_absent_read() { let Some(bc) = module() else { return }; - let mut compiled = 0; + let mut bound = 0; for (stem, p) in committed_profiles().expect("profiles") { - let addressed = p.fields().buffer_access == BufferAccess::Addressed; for entry in KERNELS { - match compile(&bc, entry, false, &p) { - Ok(a) => { - assert!( - addressed, - "{stem} {entry}: an absent read without addresses" - ); - assert!(absent(&a), "{stem} {entry}: {:?}", a.facts); - assert!( - a.facts.contains(&RuntimeFact::ExecutionStatus), - "{stem} {entry}: {:?}", - a.facts - ); - // A merge may still choose `p`; a sample through the removed sampler is the - // absent read whatever it samples, so it reads no texture. - let present: &[u32] = match entry { - "ah_select" | "ah_phi" => &[1], - _ => &[], - }; - assert_eq!(texture_slots(&a), present, "{stem} {entry}"); - validate(&a, &p); - compiled += 1; - } - Err(Error::Unsupported(u)) if !addressed => { - assert_eq!( - u.feature, - Feature::FunctionConstantArgument, - "{stem} {entry}" - ); - assert!( - matches!(u.needs, Needs::AnyOf(_)), - "{stem} {entry}: {:?}", - u.needs - ); - } - other => panic!("{stem} {entry}: {:?}", other.map(|_| ())), + let a = + compile(&bc, entry, false, &p).unwrap_or_else(|e| panic!("{stem} {entry}: {e}")); + assert!(absent(&a), "{stem} {entry}: {:?}", a.facts); + assert!( + a.facts.contains(&RuntimeFact::ExecutionStatus), + "{stem} {entry}: {:?}", + a.facts + ); + let reach = status_reach(&a); + assert_eq!(reach, status_reach_on(&p), "{stem} {entry}"); + bound += usize::from(reach == StatusReach::Binding); + // A merge may still choose `p`; a sample through the removed sampler is the + // absent read whatever it samples, so it reads no texture. + let present: &[u32] = match entry { + "ah_select" | "ah_phi" => &[1], + _ => &[], + }; + assert_eq!(texture_slots(&a), present, "{stem} {entry}"); + validate(&a, &p); + } + } + assert!(bound > 0, "no committed profile without buffer addresses"); +} + +/// An absent read's binding of the status counts in the stage's storage buffers: on `vk12-floor` +/// with its limit lowered to what the kernel needs less one, the kernel is refused as +/// `DescriptorCount`, naming the per-stage storage-buffer limit; it never compiles without its +/// mark. +#[test] +fn an_absent_reads_binding_counts_against_the_storage_buffer_limit() { + let Some(bc) = module() else { return }; + let stem = "vk12-floor"; + let policy = crate::device::DevicePolicy::default(); + let full = crate::pipeline::testing::profile(stem, policy).expect("profile"); + for entry in KERNELS { + let a = compile(&bc, entry, false, &full).unwrap_or_else(|e| panic!("{entry}: {e}")); + assert_eq!(status_reach(&a), StatusReach::Binding, "{entry}"); + let need = storage_buffers(&a); + let p = profile_with_storage_buffers(stem, policy, need - 1).expect("profile"); + match compile(&bc, entry, false, &p) { + Err(Error::Unsupported(u)) => { + assert_eq!(u.feature, Feature::DescriptorCount, "{entry}"); + assert_eq!( + u.needs, + Needs::AnyOf(vec![vec![Capability::Limit { + limit: VkLimit::MaxPerStageDescriptorStorageBuffers, + required: u64::from(need), + available: u64::from(need - 1), + }]]), + "{entry}" + ); } + other => panic!("{entry}: {:?}", other.map(|a| status_reach(&a))), } } - assert!(compiled > 0, "no committed profile addresses buffers"); } /// With `has_t` true the same kernels read their textures and samplers: no absent read. diff --git a/crates/metal2vulkan/src/tests/engine_absent_threadgroup.rs b/crates/metal2vulkan/src/tests/engine_absent_threadgroup.rs index 1346bfc6e..c73b1044c 100644 --- a/crates/metal2vulkan/src/tests/engine_absent_threadgroup.rs +++ b/crates/metal2vulkan/src/tests/engine_absent_threadgroup.rs @@ -16,9 +16,9 @@ //! - `at_stores`: `tg[tid] = 5` and `atomic_store(&tg[1], 2)`, then `out[1] = 7`: only writes; //! - `at_compared`: `out[1] = (tg == null)`, a use that is no access. //! -//! With `has_tg` false `at_accesses` compiles, on every committed profile that addresses buffers, -//! into a kernel that states its absent read and validates; a profile that does not address -//! buffers refuses it as `FunctionConstantArgument`, naming what it needs. `at_stores` compiles +//! With `has_tg` false `at_accesses` compiles, on every committed profile, into a kernel that +//! states its absent read and validates, reaching the status by address where the profile +//! addresses buffers and through the stage's binding of it elsewhere. `at_stores` compiles //! everywhere without an absent read: its writes go. `at_compared` stays refused //! `FunctionConstantArgument` while specializing. With `has_tg` true each kernel reads its //! memory, none absent. @@ -28,9 +28,8 @@ use std::sync::Arc; use crate::budget::SPIRV_WORDS; -use crate::device::profile::BufferAccess; use crate::device::DeviceProfile; -use crate::error::{Error, Feature, Needs}; +use crate::error::{Error, Feature}; use crate::library::{FunctionArtifact, FunctionConstantValue, FunctionConstantValues}; use crate::metal::DataType; use crate::pipeline::compile::{compile_bitcode, EntryRef}; @@ -39,7 +38,9 @@ use crate::pipeline::link::{link, LinkInputs}; use crate::pipeline::lower_inputs::LoweringInputs; use crate::pipeline::relocate::relocate; use crate::pipeline::sym::Stage; -use crate::pipeline::testing::{llvm_assemble, meter, AssembleError}; +use crate::pipeline::testing::{ + llvm_assemble, meter, status_reach, status_reach_on, AssembleError, StatusReach, +}; use crate::spirv::testing::{check_words_valid, committed_profiles}; /// The kernels (module docs). Argument 0 is the removed threadgroup memory `tg`, gated by @@ -199,34 +200,26 @@ fn absent(a: &FunctionArtifact) -> bool { }) } -/// With `has_tg` false, the loads and the atomic of `at_accesses` are absent reads where the -/// profile addresses buffers: the kernel states the status it marks and validates; elsewhere it is -/// refused with the addresses it needs. The writes of `at_stores` go, so it marks nothing and -/// compiles on every profile. +/// With `has_tg` false, the loads and the atomic of `at_accesses` are absent reads on every +/// profile: the kernel states the status it marks, reached by address where the profile addresses +/// buffers and through the stage's binding of it elsewhere, and validates. The writes of +/// `at_stores` go, so it marks nothing and reaches no status. #[test] fn absent_threadgroup_memory_marks_its_reads_and_drops_its_writes() { let Some(bc) = module() else { return }; - let mut compiled = 0; + let mut bound = 0; for (stem, p) in committed_profiles().expect("profiles") { - let addressed = p.fields().buffer_access == BufferAccess::Addressed; - match compile(&bc, "at_accesses", false, &p) { - Ok(a) => { - assert!(addressed, "{stem}: an absent read without addresses"); - assert!(absent(&a), "{stem}: {:?}", a.facts); - assert!( - a.facts.contains(&RuntimeFact::ExecutionStatus), - "{stem}: {:?}", - a.facts - ); - validate(&a, &p); - compiled += 1; - } - Err(Error::Unsupported(u)) if !addressed => { - assert_eq!(u.feature, Feature::FunctionConstantArgument, "{stem}"); - assert!(matches!(u.needs, Needs::AnyOf(_)), "{stem}: {:?}", u.needs); - } - other => panic!("{stem}: {:?}", other.map(|_| ())), - } + let a = compile(&bc, "at_accesses", false, &p).unwrap_or_else(|e| panic!("{stem}: {e}")); + assert!(absent(&a), "{stem}: {:?}", a.facts); + assert!( + a.facts.contains(&RuntimeFact::ExecutionStatus), + "{stem}: {:?}", + a.facts + ); + let reach = status_reach(&a); + assert_eq!(reach, status_reach_on(&p), "{stem}"); + bound += usize::from(reach == StatusReach::Binding); + validate(&a, &p); let a = compile(&bc, "at_stores", false, &p).unwrap_or_else(|e| panic!("{stem}: {e}")); assert!(!absent(&a), "{stem}: {:?}", a.facts); assert!( @@ -234,9 +227,10 @@ fn absent_threadgroup_memory_marks_its_reads_and_drops_its_writes() { "{stem}: {:?}", a.facts ); + assert_eq!(status_reach(&a), StatusReach::None, "{stem}"); validate(&a, &p); } - assert!(compiled > 0, "no committed profile addresses buffers"); + assert!(bound > 0, "no committed profile without buffer addresses"); } /// Removed threadgroup memory used other than as an access's address stays refused while diff --git a/crates/metal2vulkan/src/tests/engine_atomics.rs b/crates/metal2vulkan/src/tests/engine_atomics.rs index 0cf1cc657..0161a77eb 100644 --- a/crates/metal2vulkan/src/tests/engine_atomics.rs +++ b/crates/metal2vulkan/src/tests/engine_atomics.rs @@ -38,8 +38,8 @@ use crate::pipeline::sym::{ Axis, PushField, ResourceKind, ResourceSlot, SlotClass, SlotRef, SpecKey, Stage, }; use crate::pipeline::testing::{ - compile, fixtures_dir, link_and_validate, llvm_assemble, meter, profile, typed_module, - AssembleError, + compile, fixtures_dir, link_and_validate, llvm_assemble, meter, profile, status_reach, + status_reach_on, typed_module, AssembleError, }; use crate::spirv::interp::{run, Buffer, Config, InterpError, Order, Resources}; use crate::spirv::ir::TypedModule; @@ -207,8 +207,10 @@ fn resources(plan: &Plan, init: &[Vec], threads: u32) -> Resources { address: Some(TABLE_AT), bytes: table, }); + // At its address, and at the kernel's binding of it where the device does not address + // buffers. buffers.push(Buffer { - slot: None, + slot: Some(crate::lower::access::absent::symbol(Stage::Kernel)), address: Some(STATUS_AT), bytes: vec![0; crate::bind::status::ExecutionStatus::BYTES], }); @@ -1057,8 +1059,8 @@ entry: /// A system-scope LLVM fence is a device-scope `OpMemoryBarrier`; a single-thread fence is nothing; /// both pass L3 on every profile under `GLSL450`. The `seq_cst` one is also ordered through the -/// command buffer's status word (`memory_model.fence.seq_cst`), which a profile without device -/// addresses refuses as `SeqCstFence`. +/// command buffer's status word (`memory_model.fence.seq_cst`), reached by address where the +/// profile addresses buffers and through the kernel's binding of it elsewhere. #[test] fn llvm_fences_lower_to_memory_barriers() { let Some(bc) = assemble("fences", FENCES) else { @@ -1066,14 +1068,9 @@ fn llvm_fences_lower_to_memory_barriers() { }; for stem in PROFILES { let prof = p(stem); - if prof.fields().buffer_access != crate::device::profile::BufferAccess::Addressed { - match compile(&bc, "fences", &prof) { - Err(Error::Unsupported(u)) => assert_eq!(u.feature, Feature::SeqCstFence, "{stem}"), - other => panic!("{stem}: {:?}", other.map(|_| "compiled")), - } - continue; - } l3(&bc, "fences", &prof, stem); + let a = compile(&bc, "fences", &prof).unwrap_or_else(|e| panic!("{stem}: {e}")); + assert_eq!(status_reach(&a), status_reach_on(&prof), "{stem}"); let (plan, m) = typed_module(&bc, "fences", &prof).expect("module"); let census = plan.census(); assert_eq!(census["memory_model.fence"].0, 1, "{stem}"); diff --git a/crates/metal2vulkan/src/tests/engine_binder.rs b/crates/metal2vulkan/src/tests/engine_binder.rs index 07b572191..bfefb682a 100644 --- a/crates/metal2vulkan/src/tests/engine_binder.rs +++ b/crates/metal2vulkan/src/tests/engine_binder.rs @@ -29,7 +29,8 @@ use std::sync::atomic::{AtomicU64, Ordering}; use crate::bind::indirect_clamp; use crate::bind::{ BindState, BoundBuffer, Dispatch, DispatchCommands, ExecutionStatus, IndirectArgs, IndirectRef, - PushHole, ResourceClass, RootTable, StageTable, StatusReport, UsedResource, WriteSource, + PushHole, ResourceClass, RootTable, StageTable, StatusReport, StatusWord, UsedResource, + WriteSource, }; use crate::budget::Budget; use crate::device::requirements::VkFeature; @@ -296,6 +297,7 @@ fn execute( }), Back::Nowhere, ), + WriteSource::ExecutionStatus => (world.status.to_vec(), Back::Status), other => panic!("unexpected write {other:?}"), }; buffers.push(Buffer { @@ -611,6 +613,54 @@ fn dispatch_threads_edges_and_group_splits_compute_metal_grid_builtins() { } } +/// A kernel's `seq_cst` fence orders through the command buffer's status: on a device that does +/// not address buffers (`vk12-floor`, `lunarg-desktop-baseline-2023`) the plan binds it +/// (`WriteSource::ExecutionStatus`) and pushes no status address, and where the device addresses +/// buffers (`moltenvk-m3`) it pushes the address and binds nothing. Either way each of the +/// dispatch's threads increments `StatusWord::SeqCstFences` of the one status the command buffer +/// keeps, and the store after the fence lands. +#[test] +fn a_seq_cst_fence_reaches_the_status_by_binding_or_address_as_the_device_allows() { + let Some(bc) = fixture("dispatch_builtins") else { + return; + }; + for (stem, bound) in [ + ("vk12-floor", true), + ("lunarg-desktop-baseline-2023", true), + ("moltenvk-m3", false), + ] { + let dev = device(stem, |_| {}); + let pipe = pipeline(&dev, &bc, "device_fence_store").expect(stem); + let (_, m) = typed_module(&bc, "device_fence_store", dev.profile()).expect("module"); + let mut w = World::new([(0, Alloc::new(16, 0))]); + let d = Dispatch::Threads { + threads: [24, 1, 1], + threads_per_group: [8, 1, 1], + }; + let c = execute(&dev, &pipe, &m, &mut w, &d).expect(stem); + let plan = pipe.plan(&dev, &w.state().shape()).expect(stem); + let writes = plan + .descriptors + .iter() + .filter(|write| write.source == WriteSource::ExecutionStatus) + .count(); + let holes = c + .push_holes + .iter() + .filter(|hole| matches!(hole, PushHole::ExecutionStatusAddress { .. })) + .count(); + assert_eq!( + (writes, holes), + (usize::from(bound), usize::from(!bound)), + "{stem}" + ); + let at = StatusWord::SeqCstFences.byte_offset() as usize; + let fences = u32::from_le_bytes(w.status[at..at + 4].try_into().expect("a word")); + assert_eq!(fences, 24, "{stem}: one increment a thread"); + assert_eq!(words(&w.buffers[&0].bytes)[0], 42, "{stem}"); + } +} + /// `in` at a nonzero bind offset in a larger allocation, `out` too: the range and the residual /// reach exactly Metal's bytes, robust or not. #[test] diff --git a/crates/metal2vulkan/src/tests/engine_dispatch.rs b/crates/metal2vulkan/src/tests/engine_dispatch.rs index db5e3b0c2..f8c5c667b 100644 --- a/crates/metal2vulkan/src/tests/engine_dispatch.rs +++ b/crates/metal2vulkan/src/tests/engine_dispatch.rs @@ -13,7 +13,6 @@ use std::collections::BTreeMap; -use crate::device::profile::BufferAccess; use crate::device::requirements::VkFeature; use crate::device::subgroup::{self, OpBits, SimdClass, SubgroupRequirement, Tier}; use crate::device::DevicePolicy; @@ -24,7 +23,8 @@ use crate::pipeline::facts::RuntimeFact; use crate::pipeline::interface::PushLoc; use crate::pipeline::sym::{Axis, PushField, ResourceKind, ResourceSlot, SpecKey, Stage}; use crate::pipeline::testing::{ - compile, engine_dir, link_and_validate, llvm_assemble, profile, typed_module, AssembleError, + compile, engine_dir, link_and_validate, llvm_assemble, profile, status_reach, status_reach_on, + typed_module, AssembleError, StatusReach, }; use crate::spirv::interp::{run, Buffer, Config, Order, Resources, SubgroupSize, TrapKind}; use crate::spirv::ir::{Inst, StorageClass, Type, TypedModule}; @@ -116,8 +116,10 @@ fn run_word0(plan: &Plan, m: &TypedModule, d: &Dispatch) -> u32 { address: None, bytes: vec![0; 16], }, + // At its address, and at the kernel's binding of it where the device does not + // address buffers. Buffer { - slot: None, + slot: Some(crate::lower::access::absent::symbol(Stage::Kernel)), address: Some(STATUS_AT), bytes: vec![0; crate::bind::status::ExecutionStatus::BYTES], }, @@ -153,19 +155,15 @@ fn dispatch_kernels_compile_link_and_validate() { .iter() .chain(&["threadgroup_barrier_store", "device_fence_store"]) { - // The `seq_cst` fence needs the status word's device address. - let addressed = p.fields().buffer_access == BufferAccess::Addressed; - if *entry == "device_fence_store" && !addressed { - match compile(&bc, entry, &p) { - Err(Error::Unsupported(u)) => { - assert_eq!(u.feature, Feature::SeqCstFence, "{stem} {entry}") - } - other => panic!("{stem} {entry}: {:?}", other.map(|_| "compiled")), - } - continue; - } let a = compile(&bc, entry, &p).unwrap_or_else(|e| panic!("{stem} {entry}: {e}")); link_and_validate(&a, &p).unwrap_or_else(|e| panic!("{stem} {entry}: {e}")); + // The `seq_cst` fence reaches the status word by address, or through the kernel's + // binding of it where the device does not address buffers. + let reach = match *entry == "device_fence_store" { + true => status_reach_on(&p), + false => StatusReach::None, + }; + assert_eq!(status_reach(&a), reach, "{stem} {entry}"); for f in [ RuntimeFact::ThreadsPerThreadgroup, RuntimeFact::LocalSizeLimits, @@ -358,6 +356,15 @@ fn barrier_kernels_run_on_the_interpreter() { "{entry}: barriers are tangled, fences not" ); } + // The `seq_cst` fence orders through the kernel's binding of the status word where the device + // does not address buffers. + let floor = profile("vk12-floor", DevicePolicy::default()).expect("profile"); + let (plan, m) = typed_module(&bc, "device_fence_store", &floor).expect("device_fence_store"); + assert_eq!( + plan.families.access.status_binding, + Some(crate::lower::access::absent::StatusBinding::Required) + ); + assert_eq!(run_word0(&plan, &m, &single([16, 1, 1], [2, 1, 1])), 42); } /// `store_const` with extra calls before its return (a synthetic kernel: Metal does not expose diff --git a/crates/metal2vulkan/src/tests/engine_function_constant_interface.rs b/crates/metal2vulkan/src/tests/engine_function_constant_interface.rs index c286bd2ac..23df2dbe3 100644 --- a/crates/metal2vulkan/src/tests/engine_function_constant_interface.rs +++ b/crates/metal2vulkan/src/tests/engine_function_constant_interface.rs @@ -9,8 +9,9 @@ //! behaviour's fallout (a store of the value dropped, arithmetic on it NaN, a texture write of it //! zero: the write of `kernel_absent_texture_reads_zero`'s authored case). The kernel sets //! `StatusBits::ABSENT_ARGUMENT_READ` where the read runs and takes zero for it, and states -//! `RuntimeFact::AbsentArgumentRead`; a profile that does not address buffers refuses it as -//! `FunctionConstantArgument` with what it needs. An element of a gated-off texture table, and a +//! `RuntimeFact::AbsentArgumentRead`, reaching the status by address where the profile addresses +//! buffers and through the stage's binding of it elsewhere. An element of a gated-off texture +//! table, and a //! gated-off sampler merged with a present one before the sample, are the absent handle where the //! read reaches them (`src/tests/engine_absent_handles.rs` follows the handle through memory, //! aggregates and merges). A write to (or fence of) the gated-off texture itself is dropped, as @@ -35,9 +36,8 @@ use std::path::Path; use std::sync::Arc; use crate::budget::SPIRV_WORDS; -use crate::device::profile::BufferAccess; use crate::device::{DevicePolicy, DeviceProfile}; -use crate::error::{DescriptorError, Error, Feature, Needs, RuntimeInput}; +use crate::error::{DescriptorError, Error, Feature, RuntimeInput}; use crate::library::{FunctionArtifact, FunctionConstantValue, FunctionConstantValues}; use crate::metal::DataType; use crate::pipeline::compile::{compile_bitcode, EntryRef}; @@ -49,7 +49,8 @@ use crate::pipeline::relocate::relocate; use crate::pipeline::stage_io::{IoRole, StageBuiltin}; use crate::pipeline::sym::{SlotClass, Stage}; use crate::pipeline::testing::{ - engine_dir, fixtures_dir, llvm_assemble, meter, profile, AssembleError, + engine_dir, fixtures_dir, llvm_assemble, meter, profile, status_reach, status_reach_on, + AssembleError, }; use crate::spirv::testing::{check_words_valid, committed_profiles}; @@ -252,16 +253,14 @@ fn compile_result( ) } -/// Assert that `entry` with `bools` set compiles, on every committed profile that addresses -/// buffers, into a kernel that states its absent reads (`AbsentArgumentRead`, and the -/// `ExecutionStatus` address the read marks) and validates, or needs a storage texture's format; -/// and is refused as `FunctionConstantArgument`, needing buffer addresses, on every other. +/// Assert that `entry` with `bools` set compiles, on every committed profile, into a kernel that +/// states its absent reads (`AbsentArgumentRead`, and the `ExecutionStatus` the read marks, +/// reached by address where the profile addresses buffers and through the stage's binding of it +/// elsewhere) and validates, or needs a storage texture's format. fn absent_read(bc: &[u8], entry: &str, bools: &[(u32, bool)]) { for (stem, p) in committed_profiles().expect("profiles") { - let addressed = p.fields().buffer_access == BufferAccess::Addressed; match compile_result(bc, entry, bools, &p) { Ok(a) => { - assert!(addressed, "{stem}: an absent read without buffer addresses"); let fact = RuntimeFact::AbsentArgumentRead { stage: Stage::Kernel, }; @@ -271,12 +270,9 @@ fn absent_read(bc: &[u8], entry: &str, bools: &[(u32, bool)]) { "{stem}: {:?}", a.facts ); + assert_eq!(status_reach(&a), status_reach_on(&p), "{stem}: {entry}"); validate(&a, &p); } - Err(Error::Unsupported(u)) if !addressed => { - assert_eq!(u.feature, Feature::FunctionConstantArgument, "{stem}"); - assert!(matches!(u.needs, Needs::AnyOf(_)), "{stem}: {:?}", u.needs); - } Err(Error::NeedsInput(_)) => {} other => panic!("{stem}: {entry} {bools:?}: {:?}", other.map(|_| ())), } diff --git a/crates/metal2vulkan/src/tests/engine_handles.rs b/crates/metal2vulkan/src/tests/engine_handles.rs index 4b45dce25..9e41602b8 100644 --- a/crates/metal2vulkan/src/tests/engine_handles.rs +++ b/crates/metal2vulkan/src/tests/engine_handles.rs @@ -49,8 +49,9 @@ use crate::pipeline::sym::{ }; use crate::pipeline::testing::EXACT_SAMPLING; use crate::pipeline::testing::{ - compile, engine_dir, fixtures_dir, link_and_validate, llvm_assemble, profile, typed_module, - AssembleError, + compile, engine_dir, fixtures_dir, link_and_validate, llvm_assemble, profile, + profile_with_storage_buffers, status_reach, status_reach_on, storage_buffers, typed_module, + AssembleError, StatusReach, }; use crate::pipeline::{ ComputePipelineDescriptor, FunctionDescriptor, RenderPipelineDescriptor, StageSource, @@ -4608,21 +4609,17 @@ fn argument_buffer_samplers_are_heap_lookups() { } /// A sample through an argument buffer's sampler tests the sampler's entry for a cubic filter -/// (`RuntimeFact::CubicArgumentSampler`) in a kernel wherever the device addresses buffers, the -/// status write's need; a fragment function's never does, whose store would cost it the -/// device's hidden-surface removal (EVs GSM2-crcb-mvk4 and GSM2-crcn-mvk4), so the planner -/// refuses a listed cubic sampler beside it. +/// (`RuntimeFact::CubicArgumentSampler`) in a kernel on every profile with the heap, marking the +/// status by address where the device addresses buffers and through the kernel's binding of it +/// elsewhere; a fragment function's never does, whose store would cost it the device's +/// hidden-surface removal (EVs GSM2-crcb-mvk4 and GSM2-crcn-mvk4), so the planner refuses a listed +/// cubic sampler beside it. #[test] fn only_non_fragment_stages_test_argument_samplers_for_a_cubic_filter() { let Some(bc) = argument_samplers_fixture() else { return; }; - let tests = |a: &FunctionArtifact| { - a.facts - .iter() - .any(|f| matches!(f, RuntimeFact::CubicArgumentSampler { .. })) - }; - let mut compiled = 0; + let (mut compiled, mut bound) = (0, 0); for (stem, p) in committed_exact_profiles().expect("profiles") { let (Ok(kernel), Ok(fragment)) = ( compile(&bc, "argument_sampler_sample", &p), @@ -4631,12 +4628,75 @@ fn only_non_fragment_stages_test_argument_samplers_for_a_cubic_filter() { assert!(!has_sampled_heap(&p), "{stem}"); continue; }; - let addressed = p.fields().buffer_access == crate::device::profile::BufferAccess::Addressed; - assert_eq!(tests(&kernel), addressed, "{stem}: the kernel"); - assert!(!tests(&fragment), "{stem}: the fragment function"); + assert!(tests_cubic(&kernel), "{stem}: the kernel"); + let reach = status_reach(&kernel); + assert_eq!(reach, status_reach_on(&p), "{stem}: the kernel"); + assert!(!tests_cubic(&fragment), "{stem}: the fragment function"); + assert_eq!(status_reach(&fragment), StatusReach::None, "{stem}"); + link_and_validate(&kernel, &p).unwrap_or_else(|e| panic!("{stem}: L3: {e}")); compiled += 1; + bound += usize::from(reach == StatusReach::Binding); } assert!(compiled > 0, "no committed profile has the heap"); + assert!( + bound > 0, + "no committed profile with the heap but no addresses" + ); +} + +/// Whether `a` tests an argument buffer's sampler for a cubic filter. +fn tests_cubic(a: &FunctionArtifact) -> bool { + a.facts + .iter() + .any(|f| matches!(f, RuntimeFact::CubicArgumentSampler { .. })) +} + +/// Where the cubic test's binding of the status would take a kernel past its storage buffers (a +/// device that does not address buffers, `lunarg-desktop-baseline-2023` with its limit lowered +/// step by step), the kernel gives the binding back: it compiles without the test, as a fragment +/// function does, so the planner refuses a listed cubic sampler beside it. Every compile stays +/// within the limit, and at the full kernel's own count of storage buffers the kernel keeps the +/// binding. +#[test] +fn the_cubic_tests_binding_gives_way_to_the_storage_buffer_limit() { + let Some(bc) = argument_samplers_fixture() else { + return; + }; + let stem = "lunarg-desktop-baseline-2023"; + let full = profile(stem, EXACT_SAMPLING).expect("profile"); + assert!(has_sampled_heap(&full), "{stem}"); + let kernel = compile(&bc, "argument_sampler_sample", &full).expect("kernel"); + assert_eq!(status_reach(&kernel), StatusReach::Binding); + let with = storage_buffers(&kernel); + let mut given_back = None; + for limit in (0..=with).rev() { + let p = profile_with_storage_buffers(stem, EXACT_SAMPLING, limit).expect("profile"); + let a = match compile(&bc, "argument_sampler_sample", &p) { + Ok(a) => a, + Err(Error::Unsupported(u)) if u.feature == Feature::DescriptorCount => break, + Err(e) => panic!("limit {limit}: {e}"), + }; + assert!(storage_buffers(&a) <= limit, "limit {limit}"); + match status_reach(&a) { + StatusReach::Binding => { + assert!(tests_cubic(&a), "limit {limit}"); + assert!(given_back.is_none(), "limit {limit}: the binding back"); + } + StatusReach::None => { + assert!(!tests_cubic(&a), "limit {limit}"); + assert!( + !a.facts.contains(&RuntimeFact::ExecutionStatus), + "limit {limit}" + ); + assert!(limit < with, "limit {limit}: given back at the full count"); + given_back.get_or_insert(limit); + } + StatusReach::Address => panic!("limit {limit}: an address without addresses"), + } + link_and_validate(&a, &p).unwrap_or_else(|e| panic!("limit {limit}: L3: {e}")); + } + let limit = given_back.expect("the binding is never given back"); + println!("{stem}: the cubic test's binding given back at {limit} storage buffers of {with}"); } /// Synthetic AIR written for this test: kernel `k` samples the `texture2d` its argument diff --git a/crates/metal2vulkan/src/tests/engine_seq_cst.rs b/crates/metal2vulkan/src/tests/engine_seq_cst.rs index 94dd1581a..60d7540ff 100644 --- a/crates/metal2vulkan/src/tests/engine_seq_cst.rs +++ b/crates/metal2vulkan/src/tests/engine_seq_cst.rs @@ -3,8 +3,8 @@ //! acquire-release increment of the command buffer's `StatusWord::SeqCstFences` at the fence's //! scope, which keeps them in one total order, as Metal's are: Vulkan's `SequentiallyConsistent` is //! `AcquireRelease`, which lets a store-buffering pair both read the old values. An `acq_rel` fence -//! takes no increment, and a device without device addresses refuses the `seq_cst` one as -//! `SeqCstFence`, naming what it needs. +//! takes no increment. The increment reaches the status word by its device address where the device +//! addresses buffers, and through the stage's binding of the status buffer elsewhere. //! //! The kernel is the store-buffering litmus of EV SDX-p1-m3 //! (`metal2vulkan_devtools::litmus::store_buffering`; `runtime_lane::seq_cst_fences` runs it on @@ -13,7 +13,9 @@ use crate::device::profile::BufferAccess; use crate::error::{Error, Feature}; use crate::pipeline::facts::RuntimeFact; -use crate::pipeline::testing::{compile, link_and_validate}; +use crate::pipeline::testing::{ + compile, link_and_validate, status_reach, status_reach_on, StatusReach, +}; use crate::spirv::testing::committed_profiles; use metal2vulkan_devtools::litmus::store_buffering; use metal2vulkan_devtools::{llvm_assemble_text, AssembleError}; @@ -65,12 +67,11 @@ fn increments_and_fences(words: &[u32]) -> (Vec, usize) { (scopes, fences) } -/// On every committed profile with device addresses, each `seq_cst` fence of the store-buffering -/// kernel (`air.atomic.fence` at device and at threadgroup scope, and an LLVM `fence seq_cst`) is -/// an `OpMemoryBarrier` and an increment of the status word at the fence's scope, the module -/// reaching the `ExecutionStatus` buffer; an `acq_rel` fence is the barrier alone. A profile -/// without device addresses refuses the `seq_cst` fences as `SeqCstFence` and compiles the -/// `acq_rel` one. +/// On every committed profile, each `seq_cst` fence of the store-buffering kernel +/// (`air.atomic.fence` at device and at threadgroup scope, and an LLVM `fence seq_cst`) is an +/// `OpMemoryBarrier` and an increment of the status word at the fence's scope, the module reaching +/// the `ExecutionStatus` buffer by address where the profile addresses buffers and through the +/// stage's binding of it elsewhere; an `acq_rel` fence is the barrier alone, reaching no status. #[test] fn a_seq_cst_fence_is_ordered_with_the_command_buffers_others() { let device = " tail call void @air.atomic.fence(i32 1, i32 5, i32 2)"; @@ -91,20 +92,15 @@ fn a_seq_cst_fence_is_ordered_with_the_command_buffers_others() { } let (mut addressed, mut floor) = (0, 0); for (stem, p) in committed_profiles().expect("committed profiles") { - let has_addresses = p.fields().buffer_access == BufferAccess::Addressed; for (fence, scope, bc) in &kernels { let what = format!("{stem}, {}", fence.trim()); - let a = match (compile(bc, "sb", &p), scope, has_addresses) { - (Ok(a), _, true) | (Ok(a), None, false) => a, - (Err(Error::Unsupported(u)), Some(_), false) => { - assert_eq!(u.feature, Feature::SeqCstFence, "{what}"); - continue; - } - (Err(Error::Unsupported(u)), ..) if u.feature != Feature::SeqCstFence => { + let a = match compile(bc, "sb", &p) { + Ok(a) => a, + Err(Error::Unsupported(u)) if u.feature != Feature::SeqCstFence => { eprintln!("{what}: refused for {u:?}"); continue; } - (got, ..) => panic!("{what}: {:?}", got.map(|_| "compiled")), + Err(e) => panic!("{what}: {e}"), }; let (scopes, fences) = increments_and_fences(&a.module.words); assert_eq!(fences, 2, "{what}: one barrier a side"); @@ -112,12 +108,16 @@ fn a_seq_cst_fence_is_ordered_with_the_command_buffers_others() { Some(s) => { assert_eq!(scopes, [*s, *s], "{what}: one increment a side"); assert!(a.facts.contains(&RuntimeFact::ExecutionStatus), "{what}"); + assert_eq!(status_reach(&a), status_reach_on(&p), "{what}"); + } + None => { + assert!(scopes.is_empty(), "{what}: {scopes:?}"); + assert_eq!(status_reach(&a), StatusReach::None, "{what}"); } - None => assert!(scopes.is_empty(), "{what}: {scopes:?}"), } link_and_validate(&a, &p).unwrap_or_else(|e| panic!("{what}: L3: {e}")); } - match has_addresses { + match p.fields().buffer_access == BufferAccess::Addressed { true => addressed += 1, false => floor += 1, } diff --git a/docs/API.md b/docs/API.md index b3c521e17..17ef21c66 100644 --- a/docs/API.md +++ b/docs/API.md @@ -377,7 +377,15 @@ for dependency in &pipeline.dependencies { there. - The layout numbers set 0 densely, in `ResourceSlot` order. Set 1 holds the heap arrays (the resources reached through argument buffers and resource IDs). Push constants carry the values the - binder writes per command. + binder writes per command. A stage that writes the command buffer's `ExecutionStatus` (an absent + argument's read, a `seq_cst` fence, an argument buffer's cubic sampler) reaches it by device + address, a push hole, where the device addresses buffers (`bufferDeviceAddress` and + `shaderInt64`), and through a set-0 storage buffer of its own + (`SyntheticBinding::ExecutionStatus`) where it does not. That binding counts against the + stage's storage-buffer limits: past one, an absent read or a fence is refused + (`DescriptorCount`), and a stage that would bind it only to test its argument samplers for a + cubic filter binds nothing, so the plan refuses a cubic sampler listed beside it + (`SamplerBicubicFilter`). - `dependencies` lists the bind-time state the pipeline depends on (`RuntimeFact`: threadgroup sizes, sampler coordinate modes, buffer ranges, ...) and how this profile honors each (`Mechanism`: a specialization constant, a push field, a plan-time check, a variant). The plan @@ -508,7 +516,9 @@ What you record from `DispatchCommands` or `DrawCommands`: - **The dispatch or draw.** Record `regions` or `draw` as given: the binder has already applied Metal's offsets, bases and clamps. - **Status.** Per command buffer, keep one `ExecutionStatus` buffer for what translated shaders - report (a resident-set miss, for one), and read it when the command buffer completes. + report (a resident-set miss, for one), and read it when the command buffer completes. A plan + binds it as `WriteSource::ExecutionStatus` on a device that does not address buffers: bind the + same buffer there, its `ExecutionStatus::BYTES` bytes. ### Indirect command buffers diff --git a/docs/REFUSALS.md b/docs/REFUSALS.md index 68583b92f..3a9a6cb39 100644 --- a/docs/REFUSALS.md +++ b/docs/REFUSALS.md @@ -14,7 +14,7 @@ Columns: - `none`: no public API path: malformed or non-Metal input, Apple-private calls, or a cap no valid program of ordinary size meets; - `?`: not assessed yet. -Generated at `f28f418da`. +Generated at `43578ea93`. ## Totals @@ -49,23 +49,23 @@ Generated at `f28f418da`. | `LocalSize` | A local size beyond a device limit on this axis (`None` | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan/src/bind/dispatch.rs:481` | `app`: a threadgroup size past a smaller device's limit | | `IrreducibleConvergent` | An irreducible region containing a convergent instruction | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan/src/structurize/irreducible.rs:108` | `rare`: irreducible loops around barriers or simd operations | | `ComputeDerivativesWithSimd` | Compute derivatives in a flattened simd tier | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan/src/lower/dispatch.rs:471` | `rare`: derivatives in a kernel | -| `ComputeDerivatives` | Derivatives outside fragment without compute-derivative support | devices without VkFeature::ComputeDerivativeGroupLinear; every device (no Vulkan mechanism); every device (not implemented) | 4: `crates/metal2vulkan/src/bind/dispatch.rs:320`, `crates/metal2vulkan/src/lower/sync/barrier.rs:495` (+2) | `rare`: derivatives in a kernel | +| `ComputeDerivatives` | Derivatives outside fragment without compute-derivative support | devices without VkFeature::ComputeDerivativeGroupLinear; every device (no Vulkan mechanism); every device (not implemented) | 4: `crates/metal2vulkan/src/bind/dispatch.rs:320`, `crates/metal2vulkan/src/lower/sync/barrier.rs:486` (+2) | `rare`: derivatives in a kernel | | `QuadOperations` | Quad operations in a stage without quad support | devices without VkLimit::MinSubgroupSize; devices without VkProperty::SubgroupQuadOperationsInAllStages | 2: `crates/metal2vulkan/src/device/subgroup.rs:371`, `crates/metal2vulkan/src/device/subgroup.rs:405` | `app`: quad shuffles in kernels on devices without quad operations there | | `SimdgroupMatrix` | Simdgroup matrix operations | every device (not implemented) | 1: `crates/metal2vulkan/src/lower/simd/matrix.rs:83` | `rare`: simdgroup matrix kernels | | `ArgumentBufferPointers` | Argument buffers holding buffer pointers (dynamic roots) | devices without buffer device addresses (`addressed_needs`) | 1: `crates/metal2vulkan/src/device/metal.rs:236` | `app`: argument buffers holding buffer pointers | | `ArgumentBufferTextures` | Argument buffers holding textures or samplers (handle domain) | devices short of a device limit the site names; devices without a capability the site computes (`gaps`); devices without a capability the site computes (`missing`); devices without a capability the site computes (`needs`); every device (not implemented) | 15: `crates/metal2vulkan-runtime/src/families/features.rs:1578`, `crates/metal2vulkan-runtime/src/resource_ids.rs:1075` (+13) | `app`: argument buffers holding textures and samplers (bindless) | -| `ArgumentBufferObjects` | Argument-buffer members that are pipeline states, ICBs, function tables, or acceleration structures | every device (not implemented) | 5: `crates/metal2vulkan/src/lower/access/encode.rs:442`, `crates/metal2vulkan/src/lower/access/encode.rs:487` (+3) | `rare`: pipeline states and ICBs in argument buffers | +| `ArgumentBufferObjects` | Argument-buffer members that are pipeline states, ICBs, function tables, or acceleration structures | every device (not implemented) | 5: `crates/metal2vulkan/src/lower/access/encode.rs:445`, `crates/metal2vulkan/src/lower/access/encode.rs:495` (+3) | `rare`: pipeline states and ICBs in argument buffers | | `DereferenceLoadedPointer` | Dereferencing a pointer loaded from memory or made from an integer | devices short of a Vulkan feature the site names; devices without buffer device addresses (`addressed_needs`); every device (no Vulkan mechanism) | 4: `crates/metal2vulkan/src/lower/access/dynamic.rs:407`, `crates/metal2vulkan/src/lower/access/local.rs:718` (+2) | `app`: pointers loaded from argument buffers | | `PointerToInteger` | Storing a pointer or converting it to an integer | - | via a helper: 1: `crates/metal2vulkan/src/lower/access/dynamic.rs:347` | `rare`: pointer to integer casts | | `PointerCompare` | Comparing pointers with different roots | - | via a helper: 1: `crates/metal2vulkan/src/lower/access/copy.rs:717` | `rare`: comparing pointers of different roots | | `HandleAsPointer` | A resource handle used as a byte pointer, or conflicting handle provenance | every device (no Vulkan mechanism); every device (not implemented) | 6: `crates/metal2vulkan/src/lower/access/handle.rs:311`, `crates/metal2vulkan/src/lower/access/handle.rs:393` (+4) | `rare`: resource handles used as byte pointers | | `ConstantGlobalEscaping` | A constant global whose address escapes | every device (not implemented) | 2: `crates/metal2vulkan/src/memory/plan.rs:1083`, `crates/metal2vulkan/src/memory/plan.rs:1224` | `rare`: a constant global whose address escapes | -| `ThreadgroupMemorySize` | Threadgroup memory above the device limit | devices short of a device limit the site names; devices without VkLimit::MaxComputeSharedMemorySize; every device (no Vulkan mechanism) | 3: `crates/metal2vulkan/src/bind/plan/compute.rs:710`, `crates/metal2vulkan/src/memory/arena.rs:169` (+1) | `rare`: threadgroup memory past a smaller device's limit | +| `ThreadgroupMemorySize` | Threadgroup memory above the device limit | devices short of a device limit the site names; devices without VkLimit::MaxComputeSharedMemorySize; every device (no Vulkan mechanism) | 3: `crates/metal2vulkan/src/bind/plan/compute.rs:712`, `crates/metal2vulkan/src/memory/arena.rs:169` (+1) | `rare`: threadgroup memory past a smaller device's limit | | `CoherentMemory` | `coherent(device)` accesses (Vulkan memory model) | devices short of a Vulkan feature the site names | 1: `crates/metal2vulkan/src/lower/sync/memory_model.rs:152` | `rare`: coherent(device) accesses | | `Int64Atomics` | 64-bit atomics | devices short of a Vulkan feature the site names; devices without buffer device addresses (`addressed_needs`) | 2: `crates/metal2vulkan/src/lower/access/atomic.rs:624`, `crates/metal2vulkan/src/lower/access/atomic.rs:633` | `rare`: 64-bit atomics | | `ImageAtomics` | Image atomics beyond 32-bit integers | devices without a capability the site computes (`gaps`); every device (no Vulkan mechanism) | 3: `crates/metal2vulkan-runtime/src/families/formats.rs:476`, `crates/metal2vulkan-runtime/src/families/formats.rs:480` (+1) | `rare`: texture atomics beyond 32-bit integers | -| `DescriptorCount` | Too many descriptors of one kind in a stage or pipeline | devices short of a device limit the site names; devices without VkLimit::MaxUniformBufferRange | 3: `crates/metal2vulkan/src/lower/access/mod.rs:1640`, `crates/metal2vulkan/src/lower/select.rs:1615` (+1) | `app`: many textures or buffers in one stage on a smaller device | -| `BufferRange` | A buffer window beyond the descriptor range limits | devices without a capability the site computes (`needs`); devices without buffer device addresses (`addressed_needs`); every device (no Vulkan mechanism) | 7: `crates/metal2vulkan-runtime/src/function_table.rs:575`, `crates/metal2vulkan/src/bind/graphics.rs:2911` (+5) | `app`: a buffer window past a device's descriptor range | +| `DescriptorCount` | Too many descriptors of one kind in a stage or pipeline | devices short of a device limit the site names; devices without VkLimit::MaxUniformBufferRange | 3: `crates/metal2vulkan/src/lower/access/mod.rs:1647`, `crates/metal2vulkan/src/lower/select.rs:1616` (+1) | `app`: many textures or buffers in one stage on a smaller device | +| `BufferRange` | A buffer window beyond the descriptor range limits | devices without a capability the site computes (`needs`); devices without buffer device addresses (`addressed_needs`); every device (no Vulkan mechanism) | 7: `crates/metal2vulkan-runtime/src/function_table.rs:575`, `crates/metal2vulkan/src/bind/graphics.rs:2940` (+5) | `app`: a buffer window past a device's descriptor range | | `Int64Arithmetic` | 64-bit integer arithmetic | devices without VkFeature::ShaderInt64 | 2: `crates/metal2vulkan/src/lower/arith/legal.rs:582`, `crates/metal2vulkan/src/lower/select.rs:1117` | `rare`: 64-bit integers on a device without shaderInt64 | | `Float64Arithmetic` | 64-bit float arithmetic | devices without VkFeature::ShaderFloat64 | 2: `crates/metal2vulkan/src/device/metal.rs:230`, `crates/metal2vulkan/src/lower/arith/legal.rs:587` | `rare`: doubles (MSL has none outside Apple's own code) | | `Format` | A pixel format not supported for the required use | devices without VkFeature::ShaderStorageImageExtendedFormats; devices without a capability the site computes; devices without a capability the site computes (`alternatives`); devices without a capability the site computes (`c`); devices without a capability the site computes (`missing`); devices without a capability the site computes (`routes`); devices without a format's usage; every device (no Vulkan mechanism); every device (not implemented) | 107: `crates/metal2vulkan-runtime/src/binding_view.rs:146`, `crates/metal2vulkan-runtime/src/blit_plan.rs:455` (+105) | `system`: pixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them) | @@ -86,21 +86,21 @@ Generated at `f28f418da`. | `RasterOrderGroups` | Raster order groups without fragment shader interlock | devices without VkFeature::FragmentShaderPixelInterlock; devices without VkFeature::FragmentShaderSampleInterlock; devices without a capability the site computes (`alternatives`); every device (not implemented) | 3: `crates/metal2vulkan/src/device/metal.rs:242`, `crates/metal2vulkan/src/lower/fragment/rog.rs:151` (+1) | `rare`: raster order groups | | `FramebufferFetch` | Framebuffer fetch without ordered attachment access under `RequireOrdered`, or in a multisampled pipeline (not implemented) | devices short of a Vulkan property the site names; devices without VkFeature::FragmentShaderPixelInterlock; devices without VkFeature::RasterizationOrderColorAttachmentAccess; devices without VkFeature::SampleRateShading; devices without a capability the site computes; devices without a capability the site computes (`c`); devices without a capability the site computes (`capability`); devices without a capability the site computes (`missing`); devices without a format's usage; drivers with a defect; every device (not implemented) | 23: `crates/metal2vulkan-runtime/src/families/features.rs:1007`, `crates/metal2vulkan-runtime/src/framebuffer_fetch.rs:354` (+21) | `system`: programmable blending (framebuffer fetch); macOS 26.6.2's login reaches it (two WindowServer and RenderBox pipelines fetch RGB10A8_2P_XR10 attachments, the consumer's boots) | | `PrimitiveId` | `primitive_id` in fragment without geometry or tessellation shaders | devices without VkFeature::GeometryShader; devices without VkFeature::TessellationShader | 1: `crates/metal2vulkan/src/device/metal.rs:264` | `rare`: primitive_id on a device without geometry or tessellation shaders | -| `VertexAmplification` | Vertex amplification | devices without VkFeature::Multiview; devices without VkFeature::MultiviewTessellationShader; devices without VkLimit::MaxMultiviewInstanceIndex; every device (not implemented) | 4: `crates/metal2vulkan/src/bind/graphics.rs:3130`, `crates/metal2vulkan/src/lower/tessellation/mod.rs:646` (+2) | `rare`: vertex amplification | +| `VertexAmplification` | Vertex amplification | devices without VkFeature::Multiview; devices without VkFeature::MultiviewTessellationShader; devices without VkLimit::MaxMultiviewInstanceIndex; every device (not implemented) | 4: `crates/metal2vulkan/src/bind/graphics.rs:3159`, `crates/metal2vulkan/src/lower/tessellation/mod.rs:646` (+2) | `rare`: vertex amplification | | `LayeredRendering` | Layered rendering (`render_target_array_index`, `viewport_array_index`) | devices without VkFeature::ImageView2DOn3DImage; devices without VkFeature::ShaderOutputLayer; devices without VkFeature::ShaderOutputViewportIndex | 3: `crates/metal2vulkan-runtime/src/render_pass.rs:1538`, `crates/metal2vulkan/src/lower/mesh/mod.rs:736` (+1) | `rare`: layered rendering on a device without its features | | `ClipDistance` | Clip or cull distances | devices without VkFeature::ShaderClipDistance; devices without VkLimit::MaxClipDistances | 2: `crates/metal2vulkan/src/lower/mesh/mod.rs:892`, `crates/metal2vulkan/src/lower/mesh/mod.rs:900` | `rare`: clip distances on a device without them | | `DualSourceBlending` | Dual-source blending | devices without VkFeature::DualSrcBlend; devices without VkLimit::MaxFragmentDualSrcAttachments | 5: `crates/metal2vulkan-runtime/src/families/formats.rs:398`, `crates/metal2vulkan/src/metal/state.rs:37` (+3) | `rare`: dual-source blending on a device without it | | `Barycentrics` | Barycentric coordinates | drivers with a defect | 1: `crates/metal2vulkan/src/lower/stage_io/plan.rs:1462` | `rare`: barycentric coordinates | -| `StencilExport` | Stencil export | devices without VkExtension::ExtShaderStencilExport; every device (not implemented) | 6: `crates/metal2vulkan-runtime/src/families/features.rs:1091`, `crates/metal2vulkan/src/bind/graphics.rs:2079` (+4) | `rare`: stencil from the shader | +| `StencilExport` | Stencil export | devices without VkExtension::ExtShaderStencilExport; every device (not implemented) | 6: `crates/metal2vulkan-runtime/src/families/features.rs:1091`, `crates/metal2vulkan/src/bind/graphics.rs:2108` (+4) | `rare`: stencil from the shader | | `SampleRateShading` | Per-sample shading | devices without VkFeature::SampleRateShading; devices without a capability the site computes (`needs`); every device (not implemented) | 3: `crates/metal2vulkan/src/pipeline/link/graphics.rs:700`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:702` (+1) | `rare`: per-sample shading | | `PixelCoverageAtSampleRate` | The pixel's coverage (`[[sample_mask]]` read) in a fragment function that runs once per sample | drivers with a defect; every device (no Vulkan mechanism); every device (not implemented) | 3: `crates/metal2vulkan/src/lower/fragment/coverage.rs:291`, `crates/metal2vulkan/src/lower/simd/mod.rs:739` (+1) | `rare`: coverage read at sample rate | | `InterfaceComponents` | Too many interface components or locations | devices short of a device limit the site names; devices without VkLimit::MaxColorAttachments; devices without VkLimit::MaxVertexInputAttributes | 3: `crates/metal2vulkan/src/pipeline/link/graphics.rs:256`, `crates/metal2vulkan/src/pipeline/link/varyings.rs:343` (+1) | `rare`: too many varyings or attachments for a device | | `UnmatchedVarying` | A fragment input without a vertex producer (a Metal link error) | every device (no Vulkan mechanism) | 3: `crates/metal2vulkan/src/pipeline/link/varyings.rs:253`, `crates/metal2vulkan/src/pipeline/link/varyings.rs:439` (+1) | `none`: a Metal link error | | `KernelStageIn` | Kernel `[[stage_in]]` | every device (not implemented) | 3: `crates/metal2vulkan-runtime/src/indirect_execute.rs:337`, `crates/metal2vulkan/src/bind/dispatch.rs:881` (+1) | `rare`: kernel stage-in combinations Metal leaves unestablished | | `Tessellation` | | devices without VkFeature::TessellationShader; devices without VkLimit::MaxPushConstantsSize; devices without VkLimit::MaxTessellationGenerationLevel; every device (not implemented) | 12: `crates/metal2vulkan-air/src/canon/mod.rs:1220`, `crates/metal2vulkan-air/src/canon/mod.rs:1311` (+10) | `rare`: tessellation | -| `MeshShading` | | devices short of a device limit the site names; devices without VkLimit::MaxMeshOutputLayers; devices without VkLimit::MaxTaskPayloadSize; devices without a capability the site computes (`missing`); every device (not implemented) | 7: `crates/metal2vulkan/src/bind/graphics.rs:1117`, `crates/metal2vulkan/src/bind/graphics.rs:2419` (+5) | `rare`: mesh pipelines | +| `MeshShading` | | devices short of a device limit the site names; devices without VkLimit::MaxMeshOutputLayers; devices without VkLimit::MaxTaskPayloadSize; devices without a capability the site computes (`missing`); every device (not implemented) | 7: `crates/metal2vulkan/src/bind/graphics.rs:1144`, `crates/metal2vulkan/src/bind/graphics.rs:2448` (+5) | `rare`: mesh pipelines | | `TileShading` | | devices without VkLimit::MaxStorageBufferRange; devices without a format's usage; every device (not implemented) | 5: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:497`, `crates/metal2vulkan/src/bind/plan/compute.rs:236` (+3) | `rare`: tile shaders (Apple GPU families) | -| `Imageblocks` | | devices without a capability the site computes (`missing`); every device (not implemented) | 7: `crates/metal2vulkan/src/lower/access/imageblock.rs:98`, `crates/metal2vulkan/src/lower/access/mod.rs:879` (+5) | `rare`: imageblocks (Apple GPU families) | +| `Imageblocks` | | devices without a capability the site computes (`missing`); every device (not implemented) | 7: `crates/metal2vulkan/src/lower/access/imageblock.rs:98`, `crates/metal2vulkan/src/lower/access/mod.rs:886` (+5) | `rare`: imageblocks (Apple GPU families) | | `RayTracing` | | devices without a capability the site computes (`missing`); every device (no Vulkan mechanism); every device (not implemented) | 12: `crates/metal2vulkan/src/bind/acceleration.rs:202`, `crates/metal2vulkan/src/bind/acceleration.rs:216` (+10) | `rare`: ray tracing (out of scope by ruling) | | `Tensors` | | every device (not implemented) | 2: `crates/metal2vulkan-air/src/canon/matmul2d/synth.rs:32`, `crates/metal2vulkan/src/lower/select.rs:887` | `rare`: shader tensors | | `RasterizationRateMap` | | every device (not implemented) | 1: `crates/metal2vulkan/src/lower/fragment/mod.rs:875` | `rare`: rasterization rate maps | @@ -117,24 +117,24 @@ Generated at `f28f418da`. | `SamplerAddressMode` | A sampler address mode the device lacks (`MirrorClampToEdge`) | devices without VkFeature::SamplerMirrorClampToEdge; every device (not implemented) | 2: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:176`, `crates/metal2vulkan/src/metal/sampler.rs:248` | `app`: mirror-clamp-to-edge on a device without it | | `AlphaToOne` | `alphaToOneEnabled` | every device (not implemented) | 1: `crates/metal2vulkan/src/pipeline/link/graphics.rs:243` | `rare`: alphaToOneEnabled | | `StageStoresAndAtomics` | Buffer or image stores or atomics in a vertex or fragment function without the stage's store feature (`vertexPipelineStoresAndAtomics`,... | devices without VkFeature::FragmentStoresAndAtomics | 1: `crates/metal2vulkan/src/lower/access/tile_memory.rs:73` | `app`: stores or atomics in vertex or fragment functions on a device without the feature | -| `FunctionConstantArgument` | An observed read of a pointer entry argument that a function-constant predicate removes, other than an absent buffer (which reads as null) or an... | devices short of a Vulkan feature the site names; devices without buffer device addresses (`addressed_needs`); every device (not implemented) | 3: `crates/metal2vulkan-air/src/canon/interface.rs:899`, `crates/metal2vulkan/src/lower/access/absent.rs:102` (+1) | `rare`: a function-constant-removed argument read | -| `SamplerBicubicFilter` | A use of Metal's bicubic filter that no Metal reading establishes | every device (not implemented) | 4: `crates/metal2vulkan/src/bind/heap.rs:977`, `crates/metal2vulkan/src/bind/plan/resources.rs:1768` (+2) | `system`: bicubic filtering forms Metal does not establish; macOS 26.6.2 makes a runtime sampler with MTLSamplerMinMagFilterCubic (the consumer's boots), whose mip-filtered form is refused | +| `FunctionConstantArgument` | An observed read of a pointer entry argument that a function-constant predicate removes, other than an absent buffer (which reads as null) or an... | devices short of a Vulkan feature the site names; every device (not implemented) | 2: `crates/metal2vulkan-air/src/canon/interface.rs:899`, `crates/metal2vulkan/src/lower/access/absent.rs:100` | `rare`: a function-constant-removed argument read | +| `SamplerBicubicFilter` | A use of Metal's bicubic filter that no Metal reading establishes | every device (not implemented) | 5: `crates/metal2vulkan/src/bind/heap.rs:977`, `crates/metal2vulkan/src/bind/plan/resources.rs:1770` (+3) | `system`: bicubic filtering forms Metal does not establish; macOS 26.6.2 makes a runtime sampler with MTLSamplerMinMagFilterCubic (the consumer's boots), whose mip-filtered form is refused | | `GroupCount` | A dispatch whose threadgroup count on `axis` exceeds `maxComputeWorkGroupCount` by more than the binder splits into regions (`None` | every device (no Vulkan mechanism) | 5: `crates/metal2vulkan/src/bind/dispatch.rs:379`, `crates/metal2vulkan/src/bind/dispatch.rs:461` (+3) | `rare`: more threadgroups than a device dispatches, past the binder's split | | `IntersectionFunctionTable` | A ray intersection through intersection functions | every device (no Vulkan mechanism); every device (not implemented) | 9: `crates/metal2vulkan/src/bind/acceleration.rs:177`, `crates/metal2vulkan/src/bind/acceleration.rs:183` (+7) | `rare`: ray tracing (out of scope by ruling) | -| `IndependentBlending` | Color attachments whose write masks or blend states differ, as Metal sets them per attachment, on a device without `independentBlend`, where no... | devices without VkFeature::IndependentBlend | 2: `crates/metal2vulkan-runtime/src/render.rs:5181`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:874` | `rare`: per-attachment blending on a device without independentBlend | +| `IndependentBlending` | Color attachments whose write masks or blend states differ, as Metal sets them per attachment, on a device without `independentBlend`, where no... | devices without VkFeature::IndependentBlend | 2: `crates/metal2vulkan-runtime/src/render.rs:5261`, `crates/metal2vulkan/src/pipeline/link/graphics.rs:874` | `rare`: per-attachment blending on a device without independentBlend | | `RasterSampleCount` | A `rasterSampleCount` outside the device's framebuffer sample counts for the pipeline's attachments (`framebuffer*SampleCounts`), and, for a color... | devices short of a Vulkan property the site names; devices without a capability the site computes | 2: `crates/metal2vulkan-runtime/src/families/limits.rs:1055`, `crates/metal2vulkan/src/pipeline/graphics.rs:467` | `app`: a sample count a device lacks for the attachments | | `TriangleFillLines` | The render encoder's `MTLTriangleFillModeLines` (`polygonMode` `LINE`) on a device without `fillModeNonSolid` | - | via a helper: 1: `crates/metal2vulkan/src/metal/state.rs:339` | `app`: wireframe on a device without fillModeNonSolid | | `DepthClipClamp` | The render encoder's `MTLDepthClipModeClamp` (`depthClampEnable`) on a device without `depthClamp` | - | via a helper: 1: `crates/metal2vulkan/src/metal/state.rs:355` | `app`: depth clamp on a device without depthClamp | | `DepthBiasClamp` | The render encoder's depth bias clamp, nonzero with a nonzero bias, on a device without `depthBiasClamp` | - | via a helper: 1: `crates/metal2vulkan/src/metal/state.rs:453` | `app`: depth bias clamp on a device without depthBiasClamp | | `ConstantAlphaBlendFactor` | `CONSTANT_ALPHA` or `ONE_MINUS_CONSTANT_ALPHA` (Metal's `BlendAlpha` factors) as a color blend factor on a portability-subset device without... | devices without VkFeature::ConstantAlphaColorBlendFactors | 1: `crates/metal2vulkan/src/metal/state.rs:157` | `app`: blend-alpha factors on a portability-subset device without them | -| `SparseTexture` | A sparse texture (`MTLTexture.isSparse`) bound at `slot`, where a function observes the residency of its accesses (`sparse_color::resident()`) and... | - | via a helper: 2: `crates/metal2vulkan/src/bind/plan/slots.rs:460`, `crates/metal2vulkan/src/bind/plan/slots.rs:484` | `rare`: sparse residency reads | +| `SparseTexture` | A sparse texture (`MTLTexture.isSparse`) bound at `slot`, where a function observes the residency of its accesses (`sparse_color::resident()`) and... | - | via a helper: 2: `crates/metal2vulkan/src/bind/plan/slots.rs:469`, `crates/metal2vulkan/src/bind/plan/slots.rs:493` | `rare`: sparse residency reads | | `TextureSize` | A texture whose extent, array layers, or level count is past what the device takes for its format, type, and usage (`Capability::Limit` names the... | devices short of a device limit the site names | 1: `crates/metal2vulkan-runtime/src/image_plan.rs:1062` | `app`: a texture past a device's image limits | | `TextureSampleCount` | A texture sample count the device does not take for its format, type, and usage | devices short of a Vulkan property the site names; devices without VkFeature::MultisampleArrayImage; every device (no Vulkan mechanism) | 3: `crates/metal2vulkan-runtime/src/image_plan.rs:1110`, `crates/metal2vulkan-runtime/src/image_plan.rs:570` (+1) | `app`: a sample count a device lacks for the texture | | `TextureView` | A texture view Vulkan cannot make exactly on this image | every device (no Vulkan mechanism); every device (not implemented) | 5: `crates/metal2vulkan-runtime/src/binding_view.rs:156`, `crates/metal2vulkan-runtime/src/texture/view_shadow.rs:184` (+3) | `app`: a texture view Vulkan cannot make exactly | -| `TextureSwizzle` | A texture swizzle whose Metal behavior is not measured | devices short of a Vulkan feature the site names; every device (not implemented) | 7: `crates/metal2vulkan-runtime/src/binding_view.rs:167`, `crates/metal2vulkan-runtime/src/texture.rs:911` (+5) | `app`: texture swizzles whose Metal behaviour is unmeasured | +| `TextureSwizzle` | A texture swizzle whose Metal behavior is not measured | devices short of a Vulkan feature the site names; every device (not implemented) | 7: `crates/metal2vulkan-runtime/src/binding_view.rs:167`, `crates/metal2vulkan-runtime/src/texture.rs:915` (+5) | `app`: texture swizzles whose Metal behaviour is unmeasured | | `MipmapGeneration` | `generateMipmapsForTexture:` where the device's filter is not shown to give Metal's answer | devices without VkFeature::ShaderInt64; devices without a format's usage; every device (not implemented) | 7: `crates/metal2vulkan-runtime/src/blit_texture.rs:1702`, `crates/metal2vulkan-runtime/src/mipmap_pick.rs:37` (+5) | `app`: generateMipmapsForTexture: where the device's filter is not Metal's | | `HostMemory` | A buffer over the caller's host memory without a copy (`newBufferWithBytesNoCopy:`) | devices without VkExtension::ExtExternalMemoryHost; every device (no Vulkan mechanism); every device (not implemented) | 5: `crates/metal2vulkan-runtime/src/host_memory.rs:329`, `crates/metal2vulkan-runtime/src/host_memory.rs:361` (+3) | `system`: newBufferWithBytesNoCopy: where the device cannot import the memory | -| `GpuTimes` | A command buffer's GPU times (`GPUStartTime`, `GPUEndTime`) on a device whose queue family writes no timestamps (`timestampValidBits` 0) | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:1832` | `rare`: GPU times on a queue without timestamps | +| `GpuTimes` | A command buffer's GPU times (`GPUStartTime`, `GPUEndTime`) on a device whose queue family writes no timestamps (`timestampValidBits` 0) | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:1878` | `rare`: GPU times on a queue without timestamps | | `CountingVisibility` | A `Counting` visibility result (`MTLVisibilityResultModeCounting`) on a device without `occlusionQueryPrecise` | devices without VkFeature::OcclusionQueryPrecise | 1: `crates/metal2vulkan-runtime/src/visibility.rs:447` | `rare`: counting occlusion queries on a device without precise queries | | `ViewFormatReinterpretation` | A texture view whose format has other components, or components of other widths, than its texture's (`RGBA8Unorm` as `R32Uint`), on a device whose... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/view_plan.rs:547` | `app`: a view of another component layout on a portability subset (MoltenVK) | | `SeparateMultisampledDepthStencil` | A render pass whose depth and stencil attachments are separate multisampled textures that it loads or may store, on a device without maintenance8,... | - | via a helper: 5: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:187`, `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:293` (+3) | `rare`: separate multisampled depth and stencil textures | @@ -146,27 +146,27 @@ Generated at `f28f418da`. | `TimelineSemaphores` | Command buffers and events, which the runtime completes and signals through timeline semaphores (core in Vulkan 1.2), on a device whose... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/device/create.rs:1014` | `none`: a device below the runtime's floor | | `Reflection` | Reflection of an argument whose answer Metal's has not been measured for (`reflection`) | every device (not implemented) | 9: `crates/metal2vulkan/src/bind/argument_buffer.rs:628`, `crates/metal2vulkan/src/reflection/derive.rs:179` (+7) | `rare`: reflection of argument kinds Metal's answer is unmeasured for | | `HeapTextureTiling` | A texture of a heap whose memory the device's optimal images do not take (a `Shared` heap on a device whose optimal images take no host-visible... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:548` | `app`: textures in Shared heaps on a device whose optimal images take no host memory | -| `ViewportDepthRange` | A viewport depth range past `[0, 1]` (`setViewport:`), which Metal takes and the runtime draws natively (`VK_EXT_depth_range_unrestricted`) or... | drivers with a defect | 1: `crates/metal2vulkan-runtime/src/render_state.rs:1035` | `rare`: viewport depth outside [0, 1] | +| `ViewportDepthRange` | A viewport depth range past `[0, 1]` (`setViewport:`), which Metal takes and the runtime draws natively (`VK_EXT_depth_range_unrestricted`) or... | drivers with a defect | 1: `crates/metal2vulkan-runtime/src/render_state.rs:1061` | `rare`: viewport depth outside [0, 1] | | `UndeclaredTextureUsage` | A shader write to a texture made without `ShaderWrite` (or `ShaderAtomic`), or a read of one made without `ShaderRead`, which plain Metal runs,... | every device (not implemented) | 2: `crates/metal2vulkan-runtime/src/binding_view.rs:141`, `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs:61` | `app`: a shader write to a texture made without ShaderWrite, which plain Metal runs | | `RenderTargetSize` | A render pass whose render area or layers are past the device's framebuffer limits (`Capability::Limit` names `MaxFramebufferWidth`,... | devices short of a device limit the site names | 1: `crates/metal2vulkan-runtime/src/render_pass.rs:1166` | `rare`: a render area past a device's framebuffer limits | -| `IndirectRenderState` | A render state a function sets on an indirect render command (`render_command::set_cull_mode`, `set_front_facing_winding`,... | every device (not implemented) | 1: `crates/metal2vulkan/src/lower/access/encode.rs:559` | `rare`: render state set by a kernel on an indirect command | +| `IndirectRenderState` | A render state a function sets on an indirect render command (`render_command::set_cull_mode`, `set_front_facing_winding`,... | every device (not implemented) | 1: `crates/metal2vulkan/src/lower/access/encode.rs:567` | `rare`: render state set by a kernel on an indirect command | | `GlobalBuiltinInFragment` | A fragment function's read of a Metal 3.1 program-scope built-in variable that Metal does not lower there | every device (not implemented) | 1: `crates/metal2vulkan/src/lower/select.rs:896` | `rare`: Metal 3.1 global built-ins in fragment functions | | `PrivateRenderState` | A private fixed-function property of Metal's pipeline descriptor (Apple SPI, OpenGL on Metal's) set to a value whose effect the translation has... | every device (not implemented) | 4: `crates/metal2vulkan/src/bind/heap.rs:1278`, `crates/metal2vulkan/src/bind/plan/resources.rs:880` (+2) | `none`: Apple-private pipeline fields of OpenGL on Metal (no public header) | -| `ExtendedRangeBlend` | Metal's blend into an extended-range attachment (`BGRA10_XR`, `BGR10_XR`, `RGB10A8_2P_XR10` and their `_sRGB` twins), which the function computes... | every device (not implemented) | 4: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:276`, `crates/metal2vulkan/src/lower/fragment/fetch.rs:1065` (+2) | `system`: the parts of a blend into an extended-range (XR10) attachment the measured model does not hold (second-source factors, the color blend color difference, a one-color-channel mask, float4 and sRGB outside the measured forms); the consumer's guests blend RGB10A8_2P_XR10 attachments | +| `ExtendedRangeBlend` | Metal's blend into an extended-range attachment (`BGRA10_XR`, `BGR10_XR`, `RGB10A8_2P_XR10` and their `_sRGB` twins), which the function computes... | every device (not implemented) | 4: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:276`, `crates/metal2vulkan/src/lower/fragment/fetch.rs:1055` (+2) | `system`: the parts of a blend into an extended-range (XR10) attachment the measured model does not hold (second-source factors, the color blend color difference, a one-color-channel mask, float4 and sRGB outside the measured forms); the consumer's guests blend RGB10A8_2P_XR10 attachments | | `TileReach` | The tiles a render pass's primitives reach, binned on the device ([`tile_reach_module`](crate::bind::tile_reach_module)), on a device without what... | devices short of a Vulkan feature the site names; devices without a capability the site computes (`vec![int64]`); devices without buffer device addresses (`addressed_needs`); every device (not implemented) | 5: `crates/metal2vulkan/src/bind/tile_reach.rs:272`, `crates/metal2vulkan/src/lower/stage_io/plan.rs:1946` (+3) | `app`: the tiles a pass's draws reach, binned on a device without shaderInt64 | | `CommandPredication` | Metal's private command predication (`encodeStartIf:offset:comparison:referenceValue:` and the rest), whose step module... | devices without buffer device addresses (`addressed_needs`) | 1: `crates/metal2vulkan/src/bind/replay/predication.rs:415` | `none`: Apple-private command predication on a device without buffer device addresses | | `ProgramScopeBinding` | A program-scope buffer binding of MSL 3.2 (macOS 15 and later), `constant T* constant p [[buffer(n)]];` in Apple's `!air.global_bindings` list,... | - | via a helper: 2: `crates/metal2vulkan-air/src/abi/module.rs:77`, `crates/metal2vulkan/src/error/mod.rs:268` | `app`: MSL 3.2 program-scope buffer bindings (macOS 15 and later) | -| `SeqCstFence` | A sequentially consistent fence (`seq_cst` `atomic_thread_fence`, an LLVM `fence seq_cst`, or a `seq_cst` barrier ordering device memory), whose... | devices short of a Vulkan feature the site names; devices without buffer device addresses (`addressed_needs`) | 2: `crates/metal2vulkan/src/lower/sync/barrier.rs:443`, `crates/metal2vulkan/src/lower/sync/barrier.rs:449` | `rare`: a seq_cst fence on a device without buffer device addresses or the stage's stores | +| `SeqCstFence` | A sequentially consistent fence (`seq_cst` `atomic_thread_fence`, an LLVM `fence seq_cst`, or a `seq_cst` barrier ordering device memory), whose... | devices short of a Vulkan feature the site names | 1: `crates/metal2vulkan/src/lower/sync/barrier.rs:443` | `rare`: a seq_cst fence in a vertex or fragment stage without its stores and atomics | ## 2. Runtime gaps (`Error::NotImplemented(RuntimeGap)`) | Variant | What it blocks | Where | Sites | Reach | |---|---|---|---|---| | `Textures` | Textures and texture buffers | every device (runtime piece not built) | 9: `crates/metal2vulkan-runtime/src/blit_texture.rs:159`, `crates/metal2vulkan-runtime/src/buffer_texture.rs:1525` (+7) | `rare`: texture forms the runtime has not built (texture buffers of some forms, X24Stencil8 views) | -| `ResourceHeap` | The resource-ID heap, descriptor set 1 | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/binding.rs:1358` | `rare`: the resource-ID heap's remaining forms | -| `SparseHeaps` | Sparse heaps and their textures | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:458`, `crates/metal2vulkan-runtime/src/texture.rs:1502` (+1) | `rare`: sparse heaps | +| `ResourceHeap` | The resource-ID heap, descriptor set 1 | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/binding.rs:1359` | `rare`: the resource-ID heap's remaining forms | +| `SparseHeaps` | Sparse heaps and their textures | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:458`, `crates/metal2vulkan-runtime/src/texture.rs:1506` (+1) | `rare`: sparse heaps | | `SparseTileMaps` | What the runtime's emulation of sparse textures does not build yet | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/binding.rs:428`, `crates/metal2vulkan-runtime/src/sparse/texture.rs:30` (+1) | `rare`: sparse texture emulation's unbuilt pieces | -| `HeapPastMaxBufferSize` | A heap larger than the device's `maxBufferSize`, which the device can allocate | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/heap.rs:689` | `rare`: a heap past maxBufferSize | +| `HeapPastMaxBufferSize` | A heap larger than the device's `maxBufferSize`, which the device can allocate | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/heap.rs:701` | `rare`: a heap past maxBufferSize | | `HeapTextureAlignment` | A heap texture whose image needs an alignment past the heap memory's base alignment (256 KiB) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:956` | `rare`: a heap texture needing more than 256 KiB alignment | | `HeapTextureMemory` | A heap texture whose image the heap's memory type does not take | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/texture/heap.rs:1279`, `crates/metal2vulkan-runtime/src/texture/heap.rs:1286` (+3) | `app`: a heap texture the heap's memory type does not take | | `FunctionTablePastMaxBufferLength` | A visible-function table of more entries than one buffer of the device's `max_buffer_length` holds words for, or than its size word holds | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/function_table.rs:628` | `none`: a function table past one buffer | @@ -174,24 +174,24 @@ Generated at `f28f418da`. | `IndirectRenderCommands` | What indirect command buffers lack of their render commands | every device (runtime piece not built) | 16: `crates/metal2vulkan-runtime/src/compute.rs:1026`, `crates/metal2vulkan-runtime/src/compute.rs:1076` (+14) | `rare`: indirect render commands' remaining pieces | | `IndirectImageblockSize` | An indirect compute command's imageblock side past 65535, which Metal keeps | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:2654` | `none`: an imageblock side past 65535 | | `CommandReplay` | The device replay of indirect command buffers | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/binding.rs:566`, `crates/metal2vulkan-runtime/src/binding.rs:569` | `rare`: the device replay of indirect command buffers | -| `RenderAttachments` | Render attachments and their binding forms | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/binding.rs:1198` | `rare`: render attachment forms not built | -| `AccelerationStructures` | Acceleration structures | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/binding.rs:1201` | `rare`: ray tracing (out of scope by ruling) | +| `RenderAttachments` | Render attachments and their binding forms | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/binding.rs:1196` | `rare`: render attachment forms not built | +| `AccelerationStructures` | Acceleration structures | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/binding.rs:1199` | `rare`: ray tracing (out of scope by ruling) | | `FeatureEnable` | A feature a created device would enable that the runtime's feature chain has no member for, or whose structure no enabled extension exposes | devices without the feature or extension it names | 1: `crates/metal2vulkan-runtime/src/enables.rs:1127` | `none`: device creation with a feature the runtime's chain lacks | | `ExtensionEnable` | An extension a created device would enable that the device lists under none of the names the runtime knows for it | devices without the feature or extension it names | 1: `crates/metal2vulkan-runtime/src/enables.rs:1118` | `none`: device creation with an extension under an unknown name | -| `Render` | Render pipelines, passes and draws | every device (runtime piece not built) | 22: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:257`, `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:312` (+20) | `system`: render pass, resolve and attachment forms not built (20 sites: see the appendix) | +| `Render` | Render pipelines, passes and draws | every device (runtime piece not built) | 23: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:266`, `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:321` (+21) | `system`: render pass, resolve and attachment forms not built (20 sites: see the appendix) | | `TexelsPastBufferLength` | A 2D array over a buffer whose texels run past the buffer's length, which Metal makes over bytes its buffer's allocation has past the length | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/buffer_texture.rs:253`, `crates/metal2vulkan-runtime/src/texture/surface_depth.rs:104` | `rare`: a 2D array over a buffer past its length | | `OverlappingSurfaceRows` | A texture of an IOSurface plane (`Buffer::new_texture_with_iosurface_plane`, the stand-in for `newTextureWithDescriptor:iosurface:plane:`) whose... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/buffer_texture.rs:255` | `rare`: an IOSurface plane whose rows overlap | | `SamplePositionsAtBegin` | A render pass whose custom sample positions Vulkan takes only through what the runtime does not build | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:144`, `crates/metal2vulkan-runtime/src/render_pass.rs:1717` (+1) | `rare`: custom sample positions Vulkan takes only at begin | | `SharedEventAcrossDevices` | A shared event handle opened on a device other than its event's | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/event.rs:326` | `rare`: a shared event opened on another device | -| `ViewportDepthRange` | A viewport depth range past `[0, 1]`, which Metal takes, on a device without the features to take it natively or by the vertex stage's... | every device (runtime piece not built) | 7: `crates/metal2vulkan-runtime/src/render.rs:7312`, `crates/metal2vulkan-runtime/src/render_state.rs:1027` (+5) | `rare`: viewport depth outside [0, 1] without the device features | -| `NonFiniteDepthBias` | NaN or infinite depth bias factors whose effect differs between flat and sloped triangles, or a draw whose bias adds a clamp that moves a... | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/render_state.rs:1426`, `crates/metal2vulkan-runtime/src/render_state.rs:1429` (+3) | `rare`: NaN or infinite depth bias | +| `ViewportDepthRange` | A viewport depth range past `[0, 1]`, which Metal takes, on a device without the features to take it natively or by the vertex stage's... | every device (runtime piece not built) | 7: `crates/metal2vulkan-runtime/src/render.rs:7400`, `crates/metal2vulkan-runtime/src/render_state.rs:1053` (+5) | `rare`: viewport depth outside [0, 1] without the device features | +| `NonFiniteDepthBias` | NaN or infinite depth bias factors whose effect differs between flat and sloped triangles, or a draw whose bias adds a clamp that moves a... | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/render_state.rs:1452`, `crates/metal2vulkan-runtime/src/render_state.rs:1455` (+3) | `rare`: NaN or infinite depth bias | | `DepthNeverWithoutAttachment` | A draw under a depth compare of `Never` in a pass without a depth attachment, which fails every fragment, whose fragment function writes color... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/depth_stencil.rs:147` | `rare`: depth compare Never with no depth attachment | -| `HiddenDepthStencil` | A draw whose depth/stencil state uses depth or the stencil that the pass lacks, which plain Metal tests against a hidden `float` depth of 1.0 and... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:415`, `crates/metal2vulkan-runtime/src/render.rs:4835` | `app`: a depth-stencil state using depth or stencil the pass lacks | -| `IndirectDrawArguments` | An indirect draw whose arguments the binding plan asks to read on the CPU (`DrawCommands::indirect_needs_arguments`) | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/index_bounds.rs:89`, `crates/metal2vulkan-runtime/src/render.rs:2420` (+3) | `rare`: indirect draws whose arguments the CPU must read | +| `HiddenDepthStencil` | A draw whose depth/stencil state uses depth or the stencil that the pass lacks, which plain Metal tests against a hidden `float` depth of 1.0 and... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:424`, `crates/metal2vulkan-runtime/src/render.rs:4915` | `app`: a depth-stencil state using depth or stencil the pass lacks | +| `IndirectDrawArguments` | An indirect draw whose arguments the binding plan asks to read on the CPU (`DrawCommands::indirect_needs_arguments`) | every device (runtime piece not built) | 5: `crates/metal2vulkan-runtime/src/index_bounds.rs:89`, `crates/metal2vulkan-runtime/src/render.rs:2456` (+3) | `rare`: indirect draws whose arguments the CPU must read | | `DepthStencilResolve` | A depth/stencil resolve no Vulkan resolve mode of the device states | every device (runtime piece not built) | 7: `crates/metal2vulkan-runtime/src/depth_stencil_resolve.rs:441`, `crates/metal2vulkan-runtime/src/resolve.rs:1231` (+5) | `rare`: depth/stencil resolve modes a device lacks | | `TileAtSampleCount` | The tile memory of a render pass of a sample count Apple's GPUs lack (theirs are 1, 2 and 4), which a Vulkan device may have | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:578`, `crates/metal2vulkan-runtime/src/render_pass.rs:1480` | `none`: tile memory at a sample count Apple's GPUs lack | -| `ImageblockMasters` | A draw or tile dispatch whose imageblock is of another size than the pass's, or a draw whose fragment function's layouts are of another alignment... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/render.rs:5855`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:935` | `rare`: imageblocks of mixed sizes in one pass | -| `TileAndFragmentImageblocks` | A render pass that reaches its imageblock storage, from a draw whose fragment function declares an explicit imageblock or a tile dispatch whose... | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/render.rs:5847`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:802` (+1) | `rare`: explicit imageblocks shared by tile and fragment functions | +| `ImageblockMasters` | A draw or tile dispatch whose imageblock is of another size than the pass's, or a draw whose fragment function's layouts are of another alignment... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/render.rs:5936`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:935` | `rare`: imageblocks of mixed sizes in one pass | +| `TileAndFragmentImageblocks` | A render pass that reaches its imageblock storage, from a draw whose fragment function declares an explicit imageblock or a tile dispatch whose... | every device (runtime piece not built) | 3: `crates/metal2vulkan-runtime/src/render.rs:5928`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:802` (+1) | `rare`: explicit imageblocks shared by tile and fragment functions | | `Metal4Api` | Metal 4's API (`MTL4CommandQueue`, `MTL4CommandBuffer`, `MTL4ArgumentTable`, `MTL4Compiler` and the rest), with the features only its programming... (not scheduled) | every device (runtime piece not built) | family audit only: 3: `crates/metal2vulkan-runtime/src/families/features.rs:1431`, `crates/metal2vulkan-runtime/src/families/limits.rs:1018` (+1) | `app`: Metal 4 (the API is missing: METAL-COVERAGE.md) | | `CounterSampleBuffers` | Counter sample buffers (`MTLCounterSampleBuffer`) and the commands that sample into them (not scheduled) | every device (runtime piece not built) | family audit only: 1: `crates/metal2vulkan-runtime/src/families/limits.rs:1009` | `app`: GPU counters and timestamps by sample buffer (missing API) | | `ResidencySets` | Residency sets (`MTLResidencySet`) (not scheduled) | every device (runtime piece not built) | family audit only: 2: `crates/metal2vulkan-runtime/src/families/features.rs:1413`, `crates/metal2vulkan-runtime/src/families/limits.rs:1011` | `app`: residency sets (missing API) | @@ -207,18 +207,18 @@ Generated at `f28f418da`. | `LayeredPass` | A layered render pass (`renderTargetArrayLength` 2 or more) that needs a step of one layer | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/color_resolve.rs:517` | `rare`: layered passes needing a per-layer color resolve | | `FunctionOptions` | A function descriptor's options beyond `CompileToBinary` and `StoreFunctionInMetalPipelinesScript` (`Library::new_function_with_descriptor`) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/library.rs:215` | `rare`: function descriptor options beyond CompileToBinary | | `OverlappingTextureCopies` | A blit copy between overlapping regions of one texture's texels (`copyFromTexture:...` with the source's region meeting the destination's, through... (not scheduled) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/blit_texture.rs:1205` | `rare`: overlapping texture copies (Metal races) | -| `RebindTextures` | `Buffer::rebind_bytes_no_copy` of a no-copy buffer with a live texture over its bytes, given memory at another offset in its page than the old | every device (runtime piece not built) | 10: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:567`, `crates/metal2vulkan-runtime/src/texture.rs:2932` (+8) | `none`: a runtime extension's rebind with a live texture | -| `PvrtcBlockOrder` | A PVRTC texture's blocks in a Metal block order the runtime does not lay out | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture.rs:5714` | `rare`: PVRTC regions off whole levels | +| `RebindTextures` | `Buffer::rebind_bytes_no_copy` of a no-copy buffer with a live texture over its bytes, given memory at another offset in its page than the old | every device (runtime piece not built) | 10: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:567`, `crates/metal2vulkan-runtime/src/texture.rs:2960` (+8) | `none`: a runtime extension's rebind with a live texture | +| `PvrtcBlockOrder` | A PVRTC texture's blocks in a Metal block order the runtime does not lay out | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture.rs:5757` | `rare`: PVRTC regions off whole levels | | `VertexFetchPast4GiB` | A draw (`drawPrimitives:` and its forms, or an indirect command buffer's command) that may read a vertex attribute the pipeline fetches in its... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/render/vertex_reach.rs:72` | `rare`: vertex fetch past 4 GiB of a bind offset | | `StageInFetchPast4GiB` | A dispatch (`dispatchThreads:threadsPerThreadgroup:` and its forms, or an indirect command buffer's command) whose kernel may read a... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/fetch_reach.rs:126` | `rare`: stage-in fetch past 4 GiB of a bind offset | | `MappedTextureSampling` | A command that would sample a texture of an address-mode map (`TextureDescriptor::address_mode_map`) where the runtime cannot map it at bind... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/address_map.rs:158` | `none`: a runtime extension's texture (address_mode_map) sampled where the runtime cannot map it; no Metal API path | | `LibrarySource` | A library compiled from Metal Shading Language source | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/library.rs:107` | `app`: a library compiled from Metal source (newLibraryWithSource:); the runtime takes metallibs and AIR | -| `RestartedStrip` | An indexed strip after `set_primitive_restart_enabled` with an index Vulkan does not restart at, which the runtime draws as a list an index... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/index_rewrite.rs:109`, `crates/metal2vulkan-runtime/src/render.rs:5941` | `none`: a strip after the Apple-private setPrimitiveRestartEnabled:index: whose rewrite pass cannot run as Metal draws | +| `RestartedStrip` | An indexed strip after `set_primitive_restart_enabled` with an index Vulkan does not restart at, which the runtime draws as a list an index... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/index_rewrite.rs:109`, `crates/metal2vulkan-runtime/src/render.rs:6022` | `none`: a strip after the Apple-private setPrimitiveRestartEnabled:index: whose rewrite pass cannot run as Metal draws | | `RotatedTexture` | A rotated texture (`TextureDescriptor::rotation`) where the runtime does not build what Metal does | every device (runtime piece not built) | 9: `crates/metal2vulkan-runtime/src/blit_texture.rs:1521`, `crates/metal2vulkan-runtime/src/buffer_texture.rs:706` (+7) | `rare`: a rotated drawable's views, blits with images over overlapping rows, rows past its buffer | -| `DetachTextures` | A texture over a no-copy buffer's or heap's bytes (a heap's texture, or a texture over the buffer or over one of the heap's buffers) that no... | every device (runtime piece not built) | 9: `crates/metal2vulkan-runtime/src/buffer.rs:2012`, `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:572` (+7) | `none`: a runtime extension's detach with a texture no stand-in presents exactly | +| `DetachTextures` | A texture over a no-copy buffer's or heap's bytes (a heap's texture, or a texture over the buffer or over one of the heap's buffers) that no... | every device (runtime piece not built) | 9: `crates/metal2vulkan-runtime/src/buffer.rs:2023`, `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:572` (+7) | `none`: a runtime extension's detach with a texture no stand-in presents exactly | | `TextureBufferLevels` | A texture buffer of more than one level (`TextureDescriptor::mipmap_level_count`, up to its width's full chain) from the device's, a heap's or the... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:531` | `rare`: a texture buffer of more than one level (public, unusual) | | `WriteSwizzle` | A texture of `TextureDescriptor::write_swizzle_enabled` whose swizzle is not the default, with `ShaderWrite` or `RenderTarget` usage, from the... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:538` | `none`: Apple-private writeSwizzleEnabled with a swizzle that writes | -| `DetachedTexelAccess` | `Texture::replace_region` or `get_bytes` of a texture whose bytes (a no-copy buffer's or heap's) are detached (`detach_backing`) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture.rs:5008` | `none`: CPU texel access while a runtime extension detached the bytes | +| `DetachedTexelAccess` | `Texture::replace_region` or `get_bytes` of a texture whose bytes (a no-copy buffer's or heap's) are detached (`detach_backing`) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture.rs:5051` | `none`: CPU texel access while a runtime extension detached the bytes | | `SurfaceDepthStencil` | A use of a texture of a depth or stencil format (`Depth16Unorm`, `Depth32Float`, `Depth32Float_Stencil8`, `Stencil8`, `X32_Stencil8`) over a plane... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/blit_texture.rs:232`, `crates/metal2vulkan-runtime/src/texture/surface_depth.rs:56` | `rare`: a blit of the stencil of a Depth32Float_Stencil8 texture over a plane of an IOSurface with planes, or a pass on an X32_Stencil8 one's view as Depth32Float_Stencil8 | | `HostHeapUncompressedMultisample` | A multisample texture in a heap over host pages (`Device::new_heap_with_bytes_no_copy`) that Metal keeps uncompressed | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:1734` | `none`: a multisample texture Metal keeps uncompressed in a runtime extension's heap over host pages | | `PredicationUnbalanced` | An unbalanced command-predication record (`ComputeCommandEncoder::encode_end_if` and the other ends, or `encode_start_else`, with no block open;... | every device (runtime piece not built) | 4: `crates/metal2vulkan-runtime/src/predication.rs:354`, `crates/metal2vulkan-runtime/src/predication.rs:386` (+2) | `none`: an unbalanced Apple-private command-predication record, whose dropped work Metal decides by no rule measured | @@ -249,9 +249,9 @@ Generated at `f28f418da`. | `DescriptorRangeExceeded` | A descriptor-form slot's window exceeds the descriptor range limit (Profile F) | at the device's limit | 1: `crates/metal2vulkan/src/bind/instantiate.rs:572` | `app`: a buffer window past a device's descriptor range | | `TexelBufferTooLarge` | A texel buffer exceeds `maxTexelBufferElements` | at the device's limit | 1: `crates/metal2vulkan/src/bind/instantiate.rs:743` | `rare`: a texture buffer past maxTexelBufferElements | | `HeapTooLarge` | The set-1 heap's elements (one per resident texture a handle can name, plus the null element) exceed the pipeline's heap capacity | at the device's limit | 7: `crates/metal2vulkan/src/bind/heap.rs:1726`, `crates/metal2vulkan/src/bind/heap.rs:1841` (+5) | `rare`: more resident textures than the pipeline's heap holds (bindless at scale) | -| `TessellationFactorRange` | The tessellation factors a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`),... | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:2906` | `rare`: tessellation factors past one storage descriptor | -| `PatchIndexRange` | The patch indices a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`) | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:2952` | `rare`: patch indices past one storage descriptor | -| `ControlPointIndexRange` | The control-point indices a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`) | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:2981` | `rare`: control-point indices past one storage descriptor | +| `TessellationFactorRange` | The tessellation factors a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`),... | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:2935` | `rare`: tessellation factors past one storage descriptor | +| `PatchIndexRange` | The patch indices a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`) | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:2981` | `rare`: patch indices past one storage descriptor | +| `ControlPointIndexRange` | The control-point indices a draw reads span more bytes (`needed`) than one storage-buffer descriptor can bind (`limit`, `maxStorageBufferRange`) | at the device's limit | 1: `crates/metal2vulkan/src/bind/graphics.rs:3010` | `rare`: control-point indices past one storage descriptor | | `MissingStageInRegion` | The kernel reads the compute encoder's stage-in region (a `[[stage_in]]` attribute stepping by thread position, or `[[grid_origin]]` or... | at the device's limit | 1: `crates/metal2vulkan/src/bind/dispatch.rs:805` | `none`: a stage-in region never set, which Metal leaves undefined | | `UniformViewAliased` | A `device` buffer slot the pipeline reads through a uniform view (Profile F's per-stage storage-buffer fallback,... | at the device's limit | 1: `crates/metal2vulkan/src/bind/instantiate.rs:526` | `rare`: Profile F's uniform-view fallback aliased by a write | | `MissingDeviceAddress` | A device-address slot received a buffer without a device address | at the device's limit | 1: `crates/metal2vulkan/src/bind/plan/slots.rs:139` | `rare`: a slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses | @@ -312,26 +312,26 @@ Each refusal's sites, with the function that builds it. - `feature::LocalSize`: `crates/metal2vulkan/src/bind/dispatch.rs:481 (regions)` - `feature::IrreducibleConvergent`: `crates/metal2vulkan/src/structurize/irreducible.rs:108 (refuse_tangled)` - `feature::ComputeDerivativesWithSimd`: `crates/metal2vulkan/src/lower/dispatch.rs:471 (plan_kernel)` -- `feature::ComputeDerivatives`: `crates/metal2vulkan/src/bind/dispatch.rs:320 (check_local)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:495 (select_derivative)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:504 (select_derivative)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:508 (select_derivative)` +- `feature::ComputeDerivatives`: `crates/metal2vulkan/src/bind/dispatch.rs:320 (check_local)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:486 (select_derivative)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:495 (select_derivative)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:499 (select_derivative)` - `feature::QuadOperations`: `crates/metal2vulkan/src/device/subgroup.rs:371 (subgroup_tier)`; `crates/metal2vulkan/src/device/subgroup.rs:405 (subgroup_tier)` - `feature::SimdgroupMatrix`: `crates/metal2vulkan/src/lower/simd/matrix.rs:83 (not_implemented)` - `feature::ArgumentBufferPointers`: `crates/metal2vulkan/src/device/metal.rs:236 (unsupported_features)` - `feature::ArgumentBufferTextures`: `crates/metal2vulkan-runtime/src/families/features.rs:1578 (tier2)`; `crates/metal2vulkan-runtime/src/resource_ids.rs:1075 (check_capacity)`; `crates/metal2vulkan/src/bind/heap.rs:1303 (array)`; `crates/metal2vulkan/src/bind/heap.rs:411 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:419 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:455 (member_view)`; `crates/metal2vulkan/src/bind/heap.rs:465 (member_view)`; `crates/metal2vulkan/src/lower/access/handle.rs:708 (select)`; `crates/metal2vulkan/src/lower/sampler/select.rs:2088 (select_one)`; `crates/metal2vulkan/src/lower/sampler/select.rs:333 (select_sampling)`; `crates/metal2vulkan/src/lower/sampler/select.rs:494 (select_heap_sampling)`; `crates/metal2vulkan/src/lower/texture/atomic.rs:140 (select)`; `crates/metal2vulkan/src/lower/texture/slot.rs:465 (declare_heap)`; `crates/metal2vulkan/src/lower/texture/slot.rs:531 (declare_heap)`; `crates/metal2vulkan/src/pipeline/link.rs:832 (heap_set)` -- `feature::ArgumentBufferObjects`: `crates/metal2vulkan/src/lower/access/encode.rs:442 (select_command)`; `crates/metal2vulkan/src/lower/access/encode.rs:487 (select_command)`; `crates/metal2vulkan/src/lower/access/encode.rs:615 (select_command)`; `crates/metal2vulkan/src/memory/provenance.rs:2182 (classify)`; `crates/metal2vulkan/src/memory/provenance.rs:2544 (access)` +- `feature::ArgumentBufferObjects`: `crates/metal2vulkan/src/lower/access/encode.rs:445 (select_command)`; `crates/metal2vulkan/src/lower/access/encode.rs:495 (select_command)`; `crates/metal2vulkan/src/lower/access/encode.rs:623 (select_command)`; `crates/metal2vulkan/src/memory/provenance.rs:2182 (classify)`; `crates/metal2vulkan/src/memory/provenance.rs:2544 (access)` - `feature::DereferenceLoadedPointer`: `crates/metal2vulkan/src/lower/access/dynamic.rs:407 (plan_misses)`; `crates/metal2vulkan/src/lower/access/local.rs:718 (access_ptr)`; `crates/metal2vulkan/src/lower/access/local.rs:740 (threadgroup_constant_refusal)`; `crates/metal2vulkan/src/memory/plan.rs:556 (analyze)` - `feature::PointerToInteger`: `crates/metal2vulkan/src/lower/access/dynamic.rs:347 (require_addresses)` - `feature::PointerCompare`: `crates/metal2vulkan/src/lower/access/copy.rs:717 (addressed)` - `feature::HandleAsPointer`: `crates/metal2vulkan/src/lower/access/handle.rs:311 (domain_kind)`; `crates/metal2vulkan/src/lower/access/handle.rs:393 (element)`; `crates/metal2vulkan/src/lower/access/handle.rs:400 (element)`; `crates/metal2vulkan/src/memory/plan.rs:1819 (reprs)`; `crates/metal2vulkan/src/memory/provenance.rs:2216 (classify)`; `crates/metal2vulkan/src/memory/provenance.rs:2436 (seed)` - `feature::ConstantGlobalEscaping`: `crates/metal2vulkan/src/memory/plan.rs:1083 (blob_nodes)`; `crates/metal2vulkan/src/memory/plan.rs:1224 (serialize)` -- `feature::ThreadgroupMemorySize`: `crates/metal2vulkan/src/bind/plan/compute.rs:710 (plan)`; `crates/metal2vulkan/src/memory/arena.rs:169 (check)`; `crates/metal2vulkan/src/memory/plan.rs:457 (too_large)` +- `feature::ThreadgroupMemorySize`: `crates/metal2vulkan/src/bind/plan/compute.rs:712 (plan)`; `crates/metal2vulkan/src/memory/arena.rs:169 (check)`; `crates/metal2vulkan/src/memory/plan.rs:457 (too_large)` - `feature::CoherentMemory`: `crates/metal2vulkan/src/lower/sync/memory_model.rs:152 (check)` - `feature::Int64Atomics`: `crates/metal2vulkan/src/lower/access/atomic.rs:624 (select)`; `crates/metal2vulkan/src/lower/access/atomic.rs:633 (select)` - `feature::ImageAtomics`: `crates/metal2vulkan-runtime/src/families/formats.rs:476 (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs:480 (atomic_gap)`; `crates/metal2vulkan/src/lower/texture/slot.rs:880 (atomic_format)` -- `feature::DescriptorCount`: `crates/metal2vulkan/src/lower/access/mod.rs:1640 (accept_placement)`; `crates/metal2vulkan/src/lower/select.rs:1615 (finish)`; `crates/metal2vulkan/src/pipeline/link.rs:989 (limit_error)` -- `feature::BufferRange`: `crates/metal2vulkan-runtime/src/function_table.rs:575 (past_storage_buffer_range)`; `crates/metal2vulkan/src/bind/graphics.rs:2911 (patch_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:2957 (patch_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:2986 (patch_draw)`; `crates/metal2vulkan/src/bind/instantiate.rs:578 (bind_buffers)`; `crates/metal2vulkan/src/lower/access/function_table.rs:226 (select)`; `crates/metal2vulkan/src/lower/access/mod.rs:1155 (place_slots)` +- `feature::DescriptorCount`: `crates/metal2vulkan/src/lower/access/mod.rs:1647 (accept_placement)`; `crates/metal2vulkan/src/lower/select.rs:1616 (finish)`; `crates/metal2vulkan/src/pipeline/link.rs:989 (limit_error)` +- `feature::BufferRange`: `crates/metal2vulkan-runtime/src/function_table.rs:575 (past_storage_buffer_range)`; `crates/metal2vulkan/src/bind/graphics.rs:2940 (patch_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:2986 (patch_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:3015 (patch_draw)`; `crates/metal2vulkan/src/bind/instantiate.rs:578 (bind_buffers)`; `crates/metal2vulkan/src/lower/access/function_table.rs:226 (select)`; `crates/metal2vulkan/src/lower/access/mod.rs:1162 (place_slots)` - `feature::Int64Arithmetic`: `crates/metal2vulkan/src/lower/arith/legal.rs:582 (check_scalar)`; `crates/metal2vulkan/src/lower/select.rs:1117 (selector_form)` - `feature::Float64Arithmetic`: `crates/metal2vulkan/src/device/metal.rs:230 (unsupported_features)`; `crates/metal2vulkan/src/lower/arith/legal.rs:587 (check_scalar)` -- `feature::Format`: `crates/metal2vulkan-runtime/src/binding_view.rs:146 (binding_view)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:455 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:469 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:526 (pair_unit)`; `crates/metal2vulkan-runtime/src/blit_texture.rs:1997 (through_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:512 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:576 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:608 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:841 (texture_buffer_texel)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:270 (colour_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:298 (copy_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:344 (copy_unit)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:345 (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:525 (usable_twin)`; `crates/metal2vulkan-runtime/src/families/features.rs:1555 (read_write_tier)`; `crates/metal2vulkan-runtime/src/families/formats.rs:1640 (sparse_missing)`; `crates/metal2vulkan-runtime/src/families/formats.rs:228 (none)`; `crates/metal2vulkan-runtime/src/families/formats.rs:272 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:292 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:307 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:365 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:404 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:486 (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs:520 (lacking)`; `crates/metal2vulkan-runtime/src/families/formats.rs:534 (unsupported)`; `crates/metal2vulkan-runtime/src/image_plan.rs:516 (check_own_memory)`; `crates/metal2vulkan-runtime/src/image_plan.rs:628 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:713 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:826 (plan_held)`; `crates/metal2vulkan-runtime/src/render.rs:5300 (viewing)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1259 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1578 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1657 (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs:926 (check_target)`; `crates/metal2vulkan-runtime/src/resolve.rs:387 (unmodelled_resolve)`; `crates/metal2vulkan-runtime/src/sample_copy.rs:176 (checked_twin)`; `crates/metal2vulkan-runtime/src/sample_copy.rs:204 (plan)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs:295 (interleave_merge)`; `crates/metal2vulkan-runtime/src/shadow.rs:352 (unmerged)`; `crates/metal2vulkan-runtime/src/shadow.rs:359 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:1859 (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs:3881 (two_planes_refused)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1625 (new_heap_texture)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:79 (refused)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:115 (converted_storage)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:275 (ycbcr_write_shadow)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:378 (new_render_shadow)`; `crates/metal2vulkan-runtime/src/two_planes.rs:115 (unmeasured)`; `crates/metal2vulkan-runtime/src/view_plan.rs:359 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:372 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:379 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:389 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:399 (check_format)`; `crates/metal2vulkan-runtime/src/ycbcr.rs:271 (refused)`; `crates/metal2vulkan/src/bind/extended_shadow.rs:184 (extended_shadow_module)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1708 (extended_sampler)`; `crates/metal2vulkan/src/bind/plan/resources.rs:192 (require_filter_features)`; `crates/metal2vulkan/src/bind/plan/resources.rs:953 (plain_texture)`; `crates/metal2vulkan/src/bind/sample_interleave.rs:304 (finish)`; `crates/metal2vulkan/src/bind/unused_bits.rs:545 (unused_bits_module)`; `crates/metal2vulkan/src/lower/access/tile.rs:1029 (storage_format)`; `crates/metal2vulkan/src/lower/fragment/color.rs:154 (select_param)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1358 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1384 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:680 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:701 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:707 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:713 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:738 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:920 (plan)`; `crates/metal2vulkan/src/lower/sampler/select.rs:1004 (select_extended)`; `crates/metal2vulkan/src/lower/sampler/select.rs:716 (texel_in)`; `crates/metal2vulkan/src/lower/stage_io/extended_color.rs:77 (plan)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1795 (entry)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:776 (zeroed_output)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2279 (select)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2893 (cross_class)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3065 (select_image)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3235 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3272 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3596 (select_write)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1015 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1027 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1033 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:733 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:736 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:747 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:761 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:778 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:802 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:813 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:853 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:888 (atomic_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:897 (atomic_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1521 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1523 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1566 (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs:2496 (storage_choice_viewed)`; `crates/metal2vulkan/src/metal/format/mod.rs:2514 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2522 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2594 (held_storage_choice)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:345 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:453 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:830 (reads_alpha_to_coverage)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:847 (reads_alpha_to_coverage)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:956 (extended_write_mask)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:450 (rotated_blend)` +- `feature::Format`: `crates/metal2vulkan-runtime/src/binding_view.rs:146 (binding_view)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:455 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:469 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:526 (pair_unit)`; `crates/metal2vulkan-runtime/src/blit_texture.rs:1997 (through_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:512 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:576 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:608 (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:841 (texture_buffer_texel)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:270 (colour_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:298 (copy_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs:344 (copy_unit)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:345 (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:525 (usable_twin)`; `crates/metal2vulkan-runtime/src/families/features.rs:1555 (read_write_tier)`; `crates/metal2vulkan-runtime/src/families/formats.rs:1640 (sparse_missing)`; `crates/metal2vulkan-runtime/src/families/formats.rs:228 (none)`; `crates/metal2vulkan-runtime/src/families/formats.rs:272 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:292 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:307 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:365 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:404 (answers)`; `crates/metal2vulkan-runtime/src/families/formats.rs:486 (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs:520 (lacking)`; `crates/metal2vulkan-runtime/src/families/formats.rs:534 (unsupported)`; `crates/metal2vulkan-runtime/src/image_plan.rs:516 (check_own_memory)`; `crates/metal2vulkan-runtime/src/image_plan.rs:628 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:713 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:826 (plan_held)`; `crates/metal2vulkan-runtime/src/render.rs:5380 (viewing)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1259 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1578 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1657 (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs:926 (check_target)`; `crates/metal2vulkan-runtime/src/resolve.rs:387 (unmodelled_resolve)`; `crates/metal2vulkan-runtime/src/sample_copy.rs:176 (checked_twin)`; `crates/metal2vulkan-runtime/src/sample_copy.rs:204 (plan)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs:295 (interleave_merge)`; `crates/metal2vulkan-runtime/src/shadow.rs:352 (unmerged)`; `crates/metal2vulkan-runtime/src/shadow.rs:359 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:1863 (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs:3903 (two_planes_refused)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1625 (new_heap_texture)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:79 (refused)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:115 (converted_storage)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:275 (ycbcr_write_shadow)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs:378 (new_render_shadow)`; `crates/metal2vulkan-runtime/src/two_planes.rs:115 (unmeasured)`; `crates/metal2vulkan-runtime/src/view_plan.rs:359 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:372 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:379 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:389 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:399 (check_format)`; `crates/metal2vulkan-runtime/src/ycbcr.rs:271 (refused)`; `crates/metal2vulkan/src/bind/extended_shadow.rs:184 (extended_shadow_module)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1710 (extended_sampler)`; `crates/metal2vulkan/src/bind/plan/resources.rs:192 (require_filter_features)`; `crates/metal2vulkan/src/bind/plan/resources.rs:953 (plain_texture)`; `crates/metal2vulkan/src/bind/sample_interleave.rs:304 (finish)`; `crates/metal2vulkan/src/bind/unused_bits.rs:545 (unused_bits_module)`; `crates/metal2vulkan/src/lower/access/tile.rs:1029 (storage_format)`; `crates/metal2vulkan/src/lower/fragment/color.rs:154 (select_param)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1349 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1375 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:680 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:701 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:707 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:713 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:738 (extended_range_blend)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:920 (plan)`; `crates/metal2vulkan/src/lower/sampler/select.rs:1004 (select_extended)`; `crates/metal2vulkan/src/lower/sampler/select.rs:716 (texel_in)`; `crates/metal2vulkan/src/lower/stage_io/extended_color.rs:77 (plan)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1795 (entry)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:776 (zeroed_output)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2279 (select)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2893 (cross_class)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3065 (select_image)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3235 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3272 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3596 (select_write)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1015 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1027 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:1033 (declare_slot)`; `crates/metal2vulkan/src/lower/texture/slot.rs:733 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:736 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:747 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:761 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:778 (storage_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:802 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:813 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:853 (ulong_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:888 (atomic_format)`; `crates/metal2vulkan/src/lower/texture/slot.rs:897 (atomic_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1521 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1523 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1566 (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs:2496 (storage_choice_viewed)`; `crates/metal2vulkan/src/metal/format/mod.rs:2514 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2522 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2594 (held_storage_choice)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:345 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:453 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:830 (reads_alpha_to_coverage)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:847 (reads_alpha_to_coverage)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:956 (extended_write_mask)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:450 (rotated_blend)` - `feature::DivergentImplicitLod`: `crates/metal2vulkan/src/lower/sampler/select.rs:377 (select_sampling)` - `feature::ImplicitLodOutsideFragment`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:136 (query_min_level)`; `crates/metal2vulkan/src/lower/sampler/select.rs:254 (query_level_measured)`; `crates/metal2vulkan/src/lower/sampler/select.rs:280 (query_min_level)` - `feature::MinLodClamp`: `crates/metal2vulkan/src/lower/sampler/select.rs:1349 (select_one)`; `crates/metal2vulkan/src/lower/sampler/select.rs:891 (min_lod)` @@ -347,27 +347,27 @@ Each refusal's sites, with the function that builds it. - `feature::PixelSamplerCompare`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:115 (lowered)` - `feature::TexelBuffer`: `crates/metal2vulkan/src/bind/instantiate.rs:731 (texel_ranges)`; `crates/metal2vulkan/src/bind/instantiate.rs:737 (texel_ranges)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1113 (plain_texture)` - `feature::RasterOrderGroups`: `crates/metal2vulkan/src/device/metal.rs:242 (unsupported_features)`; `crates/metal2vulkan/src/lower/fragment/rog.rs:151 (mode)`; `crates/metal2vulkan/src/lower/fragment/rog.rs:172 (mode)` -- `feature::FramebufferFetch`: `crates/metal2vulkan-runtime/src/families/features.rs:1007 (state)`; `crates/metal2vulkan-runtime/src/framebuffer_fetch.rs:354 (ordered)`; `crates/metal2vulkan-runtime/src/render.rs:4380 (next_instance)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:110 (lacks)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:137 (new)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:496 (planes_merge)`; `crates/metal2vulkan/src/bind/extended_shadow.rs:190 (extended_shadow_module)`; `crates/metal2vulkan/src/bind/graphics.rs:1034 (plan)`; `crates/metal2vulkan/src/bind/graphics.rs:1071 (plan)`; `crates/metal2vulkan/src/bind/graphics.rs:1090 (plan)`; `crates/metal2vulkan/src/bind/sample_planes.rs:431 (finish)`; `crates/metal2vulkan/src/device/metal.rs:255 (unsupported_features)`; `crates/metal2vulkan/src/lower/fragment/color.rs:208 (select_param)`; `crates/metal2vulkan/src/lower/fragment/color.rs:257 (unordered)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:196 (not_implemented)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:271 (depth_test_form)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:317 (stencil_test_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1209 (plan_sample)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:383 (not_implemented)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:591 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:657 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:693 (extended_range_blend)`; `crates/metal2vulkan/src/pipeline/link/fetch.rs:159 (storage_attachments)` +- `feature::FramebufferFetch`: `crates/metal2vulkan-runtime/src/families/features.rs:1007 (state)`; `crates/metal2vulkan-runtime/src/framebuffer_fetch.rs:354 (ordered)`; `crates/metal2vulkan-runtime/src/render.rs:4460 (next_instance)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:110 (lacks)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:137 (new)`; `crates/metal2vulkan-runtime/src/sample_planes.rs:496 (planes_merge)`; `crates/metal2vulkan/src/bind/extended_shadow.rs:190 (extended_shadow_module)`; `crates/metal2vulkan/src/bind/graphics.rs:1061 (plan)`; `crates/metal2vulkan/src/bind/graphics.rs:1098 (plan)`; `crates/metal2vulkan/src/bind/graphics.rs:1117 (plan)`; `crates/metal2vulkan/src/bind/sample_planes.rs:431 (finish)`; `crates/metal2vulkan/src/device/metal.rs:255 (unsupported_features)`; `crates/metal2vulkan/src/lower/fragment/color.rs:208 (select_param)`; `crates/metal2vulkan/src/lower/fragment/color.rs:257 (unordered)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:196 (not_implemented)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:271 (depth_test_form)`; `crates/metal2vulkan/src/lower/fragment/depth_test.rs:317 (stencil_test_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1200 (plan_sample)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:383 (not_implemented)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:591 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:657 (storage_form)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:693 (extended_range_blend)`; `crates/metal2vulkan/src/pipeline/link/fetch.rs:159 (storage_attachments)` - `feature::PrimitiveId`: `crates/metal2vulkan/src/device/metal.rs:264 (unsupported_features)` -- `feature::VertexAmplification`: `crates/metal2vulkan/src/bind/graphics.rs:3130 (multiview_instances)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:646 (select_param)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:219 (vertex_amplification)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:238 (control_plan)` +- `feature::VertexAmplification`: `crates/metal2vulkan/src/bind/graphics.rs:3159 (multiview_instances)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:646 (select_param)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:219 (vertex_amplification)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:238 (control_plan)` - `feature::LayeredRendering`: `crates/metal2vulkan-runtime/src/render_pass.rs:1538 (target)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:736 (target_index)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:755 (target_index)` - `feature::ClipDistance`: `crates/metal2vulkan/src/lower/mesh/mod.rs:892 (select)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:900 (select)` - `feature::DualSourceBlending`: `crates/metal2vulkan-runtime/src/families/formats.rs:398 (answers)`; `crates/metal2vulkan/src/metal/state.rs:37 (blend_factor)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:1013 (check_outputs)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:464 (rotated_blend)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs:539 (rotated_blend)` - `feature::Barycentrics`: `crates/metal2vulkan/src/lower/stage_io/plan.rs:1462 (input_builtin)` -- `feature::StencilExport`: `crates/metal2vulkan-runtime/src/families/features.rs:1091 (state)`; `crates/metal2vulkan/src/bind/graphics.rs:2079 (shadow_stencil_words)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs:157 (device_form)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs:168 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/stencil.rs:55 (shadow_stencil)`; `crates/metal2vulkan/src/pipeline/link/stencil.rs:73 (shadow_stencil)` +- `feature::StencilExport`: `crates/metal2vulkan-runtime/src/families/features.rs:1091 (state)`; `crates/metal2vulkan/src/bind/graphics.rs:2108 (shadow_stencil_words)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs:157 (device_form)`; `crates/metal2vulkan/src/lower/fragment/stencil.rs:168 (not_implemented)`; `crates/metal2vulkan/src/pipeline/link/stencil.rs:55 (shadow_stencil)`; `crates/metal2vulkan/src/pipeline/link/stencil.rs:73 (shadow_stencil)` - `feature::SampleRateShading`: `crates/metal2vulkan/src/pipeline/link/graphics.rs:700 (sample_invocations)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:702 (sample_invocations)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:789 (sample_invocations)` - `feature::PixelCoverageAtSampleRate`: `crates/metal2vulkan/src/lower/fragment/coverage.rs:291 (finish)`; `crates/metal2vulkan/src/lower/simd/mod.rs:739 (select_param)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:735 (sample_invocations)` - `feature::InterfaceComponents`: `crates/metal2vulkan/src/pipeline/link/graphics.rs:256 (graphics_state)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:343 (assign)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:77 (limit_error)` - `feature::UnmatchedVarying`: `crates/metal2vulkan/src/pipeline/link/varyings.rs:253 (mesh_fragment)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:439 (varyings)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs:450 (varyings)` - `feature::KernelStageIn`: `crates/metal2vulkan-runtime/src/indirect_execute.rs:337 (record)`; `crates/metal2vulkan/src/bind/dispatch.rs:881 (instantiate)`; `crates/metal2vulkan/src/lower/stage_io/stage_in.rs:133 (select)` - `feature::Tessellation`: `crates/metal2vulkan-air/src/canon/mod.rs:1220 (post_check)`; `crates/metal2vulkan-air/src/canon/mod.rs:1311 (post_check)`; `crates/metal2vulkan/src/lower/stage_io/fetch.rs:519 (select)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1330 (input_builtin)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:710 (param)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:100 (not_implemented)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:432 (plan_entry)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs:435 (plan_entry)`; `crates/metal2vulkan/src/metal/vertex.rs:219 (fetch_as)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:222 (control_plan)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:251 (check_fragment)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs:275 (push_offset)` -- `feature::MeshShading`: `crates/metal2vulkan/src/bind/graphics.rs:1117 (plan)`; `crates/metal2vulkan/src/bind/graphics.rs:2419 (mesh_limit)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:459 (check_payload)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:496 (plan_entry)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:530 (plan_entry)`; `crates/metal2vulkan/src/memory/plan.rs:1849 (reprs)`; `crates/metal2vulkan/src/pipeline/link/mesh.rs:72 (records)` +- `feature::MeshShading`: `crates/metal2vulkan/src/bind/graphics.rs:1144 (plan)`; `crates/metal2vulkan/src/bind/graphics.rs:2448 (mesh_limit)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:459 (check_payload)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:496 (plan_entry)`; `crates/metal2vulkan/src/lower/mesh/mod.rs:530 (plan_entry)`; `crates/metal2vulkan/src/memory/plan.rs:1849 (reprs)`; `crates/metal2vulkan/src/pipeline/link/mesh.rs:72 (records)` - `feature::TileShading`: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:497 (scratch)`; `crates/metal2vulkan/src/bind/plan/compute.rs:236 (tile_memory)`; `crates/metal2vulkan/src/lower/access/tile.rs:151 (not_implemented)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:275 (tile_shading)`; `crates/metal2vulkan/src/pipeline/compile/api.rs:607 (tile_pipeline)` -- `feature::Imageblocks`: `crates/metal2vulkan/src/lower/access/imageblock.rs:98 (imageblocks)`; `crates/metal2vulkan/src/lower/access/mod.rs:879 (select_param)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:103 (require)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:85 (not_implemented)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2289 (select)`; `crates/metal2vulkan/src/lower/texture/slice.rs:127 (imageblocks)`; `crates/metal2vulkan/src/pipeline/link/imageblock.rs:46 (fragment_imageblock)` +- `feature::Imageblocks`: `crates/metal2vulkan/src/lower/access/imageblock.rs:98 (imageblocks)`; `crates/metal2vulkan/src/lower/access/mod.rs:886 (select_param)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:103 (require)`; `crates/metal2vulkan/src/lower/fragment/imageblock.rs:85 (not_implemented)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2289 (select)`; `crates/metal2vulkan/src/lower/texture/slice.rs:127 (imageblocks)`; `crates/metal2vulkan/src/pipeline/link/imageblock.rs:46 (fragment_imageblock)` - `feature::RayTracing`: `crates/metal2vulkan/src/bind/acceleration.rs:202 (instance_record)`; `crates/metal2vulkan/src/bind/acceleration.rs:216 (instance_record)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1087 (primitive_data_read)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1202 (instance_count)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1245 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1257 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1282 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1297 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1312 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:344 (slot_of)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:385 (select_param)`; `crates/metal2vulkan/src/lower/select.rs:883 (route_air)` - `feature::Tensors`: `crates/metal2vulkan-air/src/canon/matmul2d/synth.rs:32 (refuse)`; `crates/metal2vulkan/src/lower/select.rs:887 (route_air)` - `feature::RasterizationRateMap`: `crates/metal2vulkan/src/lower/fragment/mod.rs:875 (select)` -- `feature::GpuEncodedIndirectCommands`: `crates/metal2vulkan/src/bind/replay.rs:530 (preprocess)`; `crates/metal2vulkan/src/bind/replay.rs:772 (replay_preprocess_module)`; `crates/metal2vulkan/src/bind/replay/flat.rs:247 (flat_dispatch_module)`; `crates/metal2vulkan/src/lower/access/encode.rs:390 (needs)`; `crates/metal2vulkan/src/lower/access/encode.rs:406 (needs)`; `crates/metal2vulkan/src/lower/access/encode.rs:518 (select_command)`; `crates/metal2vulkan/src/lower/access/mod.rs:1509 (plan_replay)`; `crates/metal2vulkan/src/lower/access/mod.rs:1522 (plan_replay)`; `crates/metal2vulkan/src/lower/access/mod.rs:1525 (plan_replay)`; `crates/metal2vulkan/src/pipeline/compile.rs:1888 (plan_one)`; `crates/metal2vulkan/src/pipeline/compile.rs:1893 (plan_one)` +- `feature::GpuEncodedIndirectCommands`: `crates/metal2vulkan/src/bind/replay.rs:530 (preprocess)`; `crates/metal2vulkan/src/bind/replay.rs:772 (replay_preprocess_module)`; `crates/metal2vulkan/src/bind/replay/flat.rs:247 (flat_dispatch_module)`; `crates/metal2vulkan/src/lower/access/encode.rs:393 (needs)`; `crates/metal2vulkan/src/lower/access/encode.rs:409 (needs)`; `crates/metal2vulkan/src/lower/access/encode.rs:526 (select_command)`; `crates/metal2vulkan/src/lower/access/mod.rs:1516 (plan_replay)`; `crates/metal2vulkan/src/lower/access/mod.rs:1529 (plan_replay)`; `crates/metal2vulkan/src/lower/access/mod.rs:1532 (plan_replay)`; `crates/metal2vulkan/src/pipeline/compile.rs:1888 (plan_one)`; `crates/metal2vulkan/src/pipeline/compile.rs:1893 (plan_one)` - `feature::VulkanVersion`: `crates/metal2vulkan/src/ash_interop/query.rs:898 (query)`; `crates/metal2vulkan/src/device/derive.rs:101 (with_deviations)` - `feature::Constant`: `crates/metal2vulkan-air/src/bitcode/constants.rs:210 (record)`; `crates/metal2vulkan-air/src/bitcode/constants.rs:268 (record)`; `crates/metal2vulkan/src/error/mod.rs:257 (from)` - `feature::Attribute`: `crates/metal2vulkan-air/src/bitcode/attrs.rs:493 (known)`; `crates/metal2vulkan/src/error/mod.rs:258 (from)` @@ -380,24 +380,24 @@ Each refusal's sites, with the function that builds it. - `feature::SamplerAddressMode`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:176`; `crates/metal2vulkan/src/metal/sampler.rs:248 (check_sampler)` - `feature::AlphaToOne`: `crates/metal2vulkan/src/pipeline/link/graphics.rs:243 (graphics_state)` - `feature::StageStoresAndAtomics`: `crates/metal2vulkan/src/lower/access/tile_memory.rs:73 (written)` -- `feature::FunctionConstantArgument`: `crates/metal2vulkan-air/src/canon/interface.rs:899 (absent_values)`; `crates/metal2vulkan/src/lower/access/absent.rs:102 (require)`; `crates/metal2vulkan/src/lower/access/absent.rs:95 (require)` -- `feature::SamplerBicubicFilter`: `crates/metal2vulkan/src/bind/heap.rs:977 (new)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1768 (bicubic_texels)`; `crates/metal2vulkan/src/lower/sampler/bicubic.rs:121 (refuse)`; `crates/metal2vulkan/src/lower/sampler/select.rs:35 (bicubic_refused)` -- `feature::GroupCount`: `crates/metal2vulkan/src/bind/dispatch.rs:379 (product)`; `crates/metal2vulkan/src/bind/dispatch.rs:461`; `crates/metal2vulkan/src/bind/dispatch.rs:963 (instantiate)`; `crates/metal2vulkan/src/bind/graphics.rs:2623 (mesh_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:2674 (emulated_draw)` +- `feature::FunctionConstantArgument`: `crates/metal2vulkan-air/src/canon/interface.rs:899 (absent_values)`; `crates/metal2vulkan/src/lower/access/absent.rs:100 (require)` +- `feature::SamplerBicubicFilter`: `crates/metal2vulkan/src/bind/heap.rs:977 (new)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1770 (bicubic_texels)`; `crates/metal2vulkan/src/bind/plan/slots.rs:397 (cubic_variant)`; `crates/metal2vulkan/src/lower/sampler/bicubic.rs:121 (refuse)`; `crates/metal2vulkan/src/lower/sampler/select.rs:35 (bicubic_refused)` +- `feature::GroupCount`: `crates/metal2vulkan/src/bind/dispatch.rs:379 (product)`; `crates/metal2vulkan/src/bind/dispatch.rs:461`; `crates/metal2vulkan/src/bind/dispatch.rs:963 (instantiate)`; `crates/metal2vulkan/src/bind/graphics.rs:2652 (mesh_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:2703 (emulated_draw)` - `feature::IntersectionFunctionTable`: `crates/metal2vulkan/src/bind/acceleration.rs:177 (geometry_table_offset)`; `crates/metal2vulkan/src/bind/acceleration.rs:183 (geometry_table_offset)`; `crates/metal2vulkan/src/bind/acceleration.rs:188 (geometry_table_offset)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1222 (null_table)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1251 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:1272 (intersect)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:406 (table_of)`; `crates/metal2vulkan/src/lower/raytracing/mod.rs:422 (select_table)`; `crates/metal2vulkan/src/lower/select.rs:869 (route_air)` -- `feature::IndependentBlending`: `crates/metal2vulkan-runtime/src/render.rs:5181 (check_pipeline)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:874 (uniform_blend)` +- `feature::IndependentBlending`: `crates/metal2vulkan-runtime/src/render.rs:5261 (check_pipeline)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs:874 (uniform_blend)` - `feature::RasterSampleCount`: `crates/metal2vulkan-runtime/src/families/limits.rs:1055 (sample_count)`; `crates/metal2vulkan/src/pipeline/graphics.rs:467 (sample_count_properties)` - `feature::TriangleFillLines`: `crates/metal2vulkan/src/metal/state.rs:339 (polygon_mode)` - `feature::DepthClipClamp`: `crates/metal2vulkan/src/metal/state.rs:355 (depth_clamp_enable)` - `feature::DepthBiasClamp`: `crates/metal2vulkan/src/metal/state.rs:453 (depth_bias)` - `feature::ConstantAlphaBlendFactor`: `crates/metal2vulkan/src/metal/state.rs:157 (check_constant_alpha)` -- `feature::SparseTexture`: `crates/metal2vulkan/src/bind/plan/slots.rs:460 (check_sparse_textures)`; `crates/metal2vulkan/src/bind/plan/slots.rs:484 (check_sparse_textures)` +- `feature::SparseTexture`: `crates/metal2vulkan/src/bind/plan/slots.rs:469 (check_sparse_textures)`; `crates/metal2vulkan/src/bind/plan/slots.rs:493 (check_sparse_textures)` - `feature::TextureSize`: `crates/metal2vulkan-runtime/src/image_plan.rs:1062 (check_image_limits)` - `feature::TextureSampleCount`: `crates/metal2vulkan-runtime/src/image_plan.rs:1110 (check_image_limits)`; `crates/metal2vulkan-runtime/src/image_plan.rs:570 (plan_held)`; `crates/metal2vulkan-runtime/src/image_plan.rs:580 (plan_held)` - `feature::TextureView`: `crates/metal2vulkan-runtime/src/binding_view.rs:156 (binding_view)`; `crates/metal2vulkan-runtime/src/texture/view_shadow.rs:184 (apart_refusal)`; `crates/metal2vulkan-runtime/src/view_plan.rs:411 (check_format)`; `crates/metal2vulkan-runtime/src/view_plan.rs:461 (check_view)`; `crates/metal2vulkan-runtime/src/view_plan.rs:483 (check_view)` -- `feature::TextureSwizzle`: `crates/metal2vulkan-runtime/src/binding_view.rs:167 (binding_view)`; `crates/metal2vulkan-runtime/src/texture.rs:911 (view)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1088 (plain_texture)`; `crates/metal2vulkan/src/lower/sampler/select.rs:2313 (select_one)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3300 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3637 (select_write)`; `crates/metal2vulkan/src/lower/texture/slice.rs:294 (select)` +- `feature::TextureSwizzle`: `crates/metal2vulkan-runtime/src/binding_view.rs:167 (binding_view)`; `crates/metal2vulkan-runtime/src/texture.rs:915 (view)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1088 (plain_texture)`; `crates/metal2vulkan/src/lower/sampler/select.rs:2313 (select_one)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3300 (select_read_as)`; `crates/metal2vulkan/src/lower/texture/mod.rs:3637 (select_write)`; `crates/metal2vulkan/src/lower/texture/slice.rs:294 (select)` - `feature::MipmapGeneration`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1702 (generate_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_pick.rs:37 (pick_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:264 (plan_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:272 (plan_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:277 (plan_mipmaps)`; `crates/metal2vulkan-runtime/src/mipmap_plan.rs:306 (plan_mipmaps)`; `crates/metal2vulkan/src/bind/mipmap_filter.rs:915 (mipmap_filter_module)` - `feature::HostMemory`: `crates/metal2vulkan-runtime/src/host_memory.rs:329 (not_importable)`; `crates/metal2vulkan-runtime/src/host_memory.rs:361 (refuse_unwritable)`; `crates/metal2vulkan-runtime/src/host_memory.rs:557 (new)`; `crates/metal2vulkan-runtime/src/host_memory.rs:562 (new)`; `crates/metal2vulkan-runtime/src/host_memory.rs:580 (new)` -- `feature::GpuTimes`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:1832 (gpu_times)` +- `feature::GpuTimes`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs:1878 (gpu_times)` - `feature::CountingVisibility`: `crates/metal2vulkan-runtime/src/visibility.rs:447 (check_mode)` - `feature::ViewFormatReinterpretation`: `crates/metal2vulkan-runtime/src/view_plan.rs:547 (reinterpretation_refused)` - `feature::SeparateMultisampledDepthStencil`: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:187 (sampled_candidate)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:293 (by_draws)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:335 (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:375 (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:776 (plan)` @@ -409,47 +409,47 @@ Each refusal's sites, with the function that builds it. - `feature::TimelineSemaphores`: `crates/metal2vulkan-runtime/src/device/create.rs:1014 (timeline_difference)` - `feature::Reflection`: `crates/metal2vulkan/src/bind/argument_buffer.rs:628 (unmeasured)`; `crates/metal2vulkan/src/reflection/derive.rs:179 (specialized_reads)`; `crates/metal2vulkan/src/reflection/derive.rs:213 (read_attributes)`; `crates/metal2vulkan/src/reflection/derive.rs:240 (gap_at)`; `crates/metal2vulkan/src/reflection/function.rs:172 (unmeasured)`; `crates/metal2vulkan/src/reflection/function.rs:366 (attribute)`; `crates/metal2vulkan/src/reflection/function.rs:437 (module_constants)`; `crates/metal2vulkan/src/reflection/linked.rs:127 (function)`; `crates/metal2vulkan/src/reflection/mod.rs:249 (stage)` - `feature::HeapTextureTiling`: `crates/metal2vulkan-runtime/src/texture/heap.rs:548 (tiling_refusal)` -- `feature::ViewportDepthRange`: `crates/metal2vulkan-runtime/src/render_state.rs:1035 (depth_ranges_refused)` +- `feature::ViewportDepthRange`: `crates/metal2vulkan-runtime/src/render_state.rs:1061 (depth_ranges_refused)` - `feature::UndeclaredTextureUsage`: `crates/metal2vulkan-runtime/src/binding_view.rs:141 (binding_view)`; `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs:61 (refused)` - `feature::RenderTargetSize`: `crates/metal2vulkan-runtime/src/render_pass.rs:1166 (framebuffer_fits)` -- `feature::IndirectRenderState`: `crates/metal2vulkan/src/lower/access/encode.rs:559 (select_command)` +- `feature::IndirectRenderState`: `crates/metal2vulkan/src/lower/access/encode.rs:567 (select_command)` - `feature::GlobalBuiltinInFragment`: `crates/metal2vulkan/src/lower/select.rs:896 (route_air)` - `feature::PrivateRenderState`: `crates/metal2vulkan/src/bind/heap.rs:1278 (array)`; `crates/metal2vulkan/src/bind/plan/resources.rs:880 (write_rounding)`; `crates/metal2vulkan/src/lower/texture/mod.rs:2811 (mode_rounded_write)`; `crates/metal2vulkan/src/pipeline/private_state.rs:47 (refused)` -- `feature::ExtendedRangeBlend`: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:276 (refused)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1065 (plan)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1068 (plan)`; `crates/metal2vulkan/src/lower/fragment/input_blend.rs:154 (plan)` +- `feature::ExtendedRangeBlend`: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs:276 (refused)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1055 (plan)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1058 (plan)`; `crates/metal2vulkan/src/lower/fragment/input_blend.rs:154 (plan)` - `feature::TileReach`: `crates/metal2vulkan/src/bind/tile_reach.rs:272 (tile_reach_module)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1946 (capture)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:1972 (capture)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:2014 (refuse_unaddressed)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs:447 (param)` - `feature::CommandPredication`: `crates/metal2vulkan/src/bind/replay/predication.rs:415 (predication_step_module)` - `feature::ProgramScopeBinding`: `crates/metal2vulkan-air/src/abi/module.rs:77 (decode)`; `crates/metal2vulkan/src/error/mod.rs:268 (from)` -- `feature::SeqCstFence`: `crates/metal2vulkan/src/lower/sync/barrier.rs:443 (require_seq_cst)`; `crates/metal2vulkan/src/lower/sync/barrier.rs:449 (require_seq_cst)` -- `gap::Textures`: `crates/metal2vulkan-runtime/src/blit_texture.rs:159 (check_depth_view)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:1525 (view_usage)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1406 (compile_error)`; `crates/metal2vulkan-runtime/src/texture.rs:1318 (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs:1995 (storage_over_buffer)`; `crates/metal2vulkan-runtime/src/texture.rs:3353 (new_image_starting)`; `crates/metal2vulkan-runtime/src/texture.rs:4363 (image)`; `crates/metal2vulkan-runtime/src/texture.rs:5641 (host_copy)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:206 (new_surface_planes_texture)` -- `gap::ResourceHeap`: `crates/metal2vulkan-runtime/src/binding.rs:1358 (descriptor)` -- `gap::SparseHeaps`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:458 (first_slice)`; `crates/metal2vulkan-runtime/src/texture.rs:1502 (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture.rs:4938 (make_aliasable)` -- `gap::SparseTileMaps`: `crates/metal2vulkan-runtime/src/binding.rs:428 (slot_tile_map)`; `crates/metal2vulkan-runtime/src/sparse/texture.rs:30 (sparse_refusal)`; `crates/metal2vulkan-runtime/src/texture.rs:1527 (plan_sparse_texture)` -- `gap::HeapPastMaxBufferSize`: `crates/metal2vulkan-runtime/src/heap.rs:689 (heap_size)` +- `feature::SeqCstFence`: `crates/metal2vulkan/src/lower/sync/barrier.rs:443 (require_seq_cst)` +- `gap::Textures`: `crates/metal2vulkan-runtime/src/blit_texture.rs:159 (check_depth_view)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:1525 (view_usage)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1406 (compile_error)`; `crates/metal2vulkan-runtime/src/texture.rs:1322 (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs:1999 (storage_over_buffer)`; `crates/metal2vulkan-runtime/src/texture.rs:3375 (new_image_starting)`; `crates/metal2vulkan-runtime/src/texture.rs:4385 (image)`; `crates/metal2vulkan-runtime/src/texture.rs:5684 (host_copy)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:206 (new_surface_planes_texture)` +- `gap::ResourceHeap`: `crates/metal2vulkan-runtime/src/binding.rs:1359 (descriptor)` +- `gap::SparseHeaps`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:458 (first_slice)`; `crates/metal2vulkan-runtime/src/texture.rs:1506 (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture.rs:4970 (make_aliasable)` +- `gap::SparseTileMaps`: `crates/metal2vulkan-runtime/src/binding.rs:428 (slot_tile_map)`; `crates/metal2vulkan-runtime/src/sparse/texture.rs:30 (sparse_refusal)`; `crates/metal2vulkan-runtime/src/texture.rs:1531 (plan_sparse_texture)` +- `gap::HeapPastMaxBufferSize`: `crates/metal2vulkan-runtime/src/heap.rs:701 (heap_size)` - `gap::HeapTextureAlignment`: `crates/metal2vulkan-runtime/src/texture/heap.rs:956 (check_heap_base)` -- `gap::HeapTextureMemory`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1279 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1286 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1729 (host_heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1942 (memory_shadow)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:475 (memory_refusal)` +- `gap::HeapTextureMemory`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1279 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1286 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1729 (host_heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1943 (memory_shadow)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:475 (memory_refusal)` - `gap::FunctionTablePastMaxBufferLength`: `crates/metal2vulkan-runtime/src/function_table.rs:628 (past_limit)` - `gap::IndirectCommandBufferPastMaxBufferLength`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:522 (new_indirect_command_buffer)` -- `gap::IndirectRenderCommands`: `crates/metal2vulkan-runtime/src/compute.rs:1026 (execute_commands_in_buffer)`; `crates/metal2vulkan-runtime/src/compute.rs:1076 (execute_commands_in_buffer_indirect)`; `crates/metal2vulkan-runtime/src/depth_stencil.rs:85 (gpu_resource_id)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:3495 (render_state)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:517 (new_indirect_command_buffer)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1413 (compile_error)`; `crates/metal2vulkan-runtime/src/render.rs:5766 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:6056 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:6335 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:6697 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/executions.rs:1773 (record)`; `crates/metal2vulkan-runtime/src/render/executions.rs:2439 (record)`; `crates/metal2vulkan-runtime/src/render/executions.rs:361 (execute_commands_in_buffer)`; `crates/metal2vulkan-runtime/src/render/executions.rs:419 (execute_commands_in_buffer_indirect)`; `crates/metal2vulkan-runtime/src/render/executions.rs:432 (execute_commands_in_buffer_indirect)`; `crates/metal2vulkan-runtime/src/render/executions.rs:876 (back_memoryless)` +- `gap::IndirectRenderCommands`: `crates/metal2vulkan-runtime/src/compute.rs:1026 (execute_commands_in_buffer)`; `crates/metal2vulkan-runtime/src/compute.rs:1076 (execute_commands_in_buffer_indirect)`; `crates/metal2vulkan-runtime/src/depth_stencil.rs:85 (gpu_resource_id)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:3495 (render_state)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:517 (new_indirect_command_buffer)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs:1413 (compile_error)`; `crates/metal2vulkan-runtime/src/render.rs:5847 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:6140 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:6420 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:6785 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/executions.rs:1774 (record)`; `crates/metal2vulkan-runtime/src/render/executions.rs:2443 (record)`; `crates/metal2vulkan-runtime/src/render/executions.rs:361 (execute_commands_in_buffer)`; `crates/metal2vulkan-runtime/src/render/executions.rs:419 (execute_commands_in_buffer_indirect)`; `crates/metal2vulkan-runtime/src/render/executions.rs:432 (execute_commands_in_buffer_indirect)`; `crates/metal2vulkan-runtime/src/render/executions.rs:876 (back_memoryless)` - `gap::IndirectImageblockSize`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:2654 (set_imageblock_size)` - `gap::CommandReplay`: `crates/metal2vulkan-runtime/src/binding.rs:566 (bind)`; `crates/metal2vulkan-runtime/src/binding.rs:569 (bind)` -- `gap::RenderAttachments`: `crates/metal2vulkan-runtime/src/binding.rs:1198 (unexpected)` -- `gap::AccelerationStructures`: `crates/metal2vulkan-runtime/src/binding.rs:1201 (unexpected)` +- `gap::RenderAttachments`: `crates/metal2vulkan-runtime/src/binding.rs:1196 (unexpected)` +- `gap::AccelerationStructures`: `crates/metal2vulkan-runtime/src/binding.rs:1199 (unexpected)` - `gap::FeatureEnable`: `crates/metal2vulkan-runtime/src/enables.rs:1127 (of)` - `gap::ExtensionEnable`: `crates/metal2vulkan-runtime/src/enables.rs:1118 (of)` -- `gap::Render`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:257 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:312 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:536 (check_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:787 (attachment_twin)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:282 (check_sizes)`; `crates/metal2vulkan-runtime/src/linear_attachment.rs:293 (settle)`; `crates/metal2vulkan-runtime/src/nan_clear.rs:165 (plan)`; `crates/metal2vulkan-runtime/src/pipeline/render.rs:1077 (imageblock_sample_length)`; `crates/metal2vulkan-runtime/src/render.rs:4430 (next_instance)`; `crates/metal2vulkan-runtime/src/render.rs:5231 (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs:6108 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:493 (scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1208 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1545 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1599 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1645 (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1839 (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs:1011 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1075 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:885 (attach)`; `crates/metal2vulkan-runtime/src/resolve.rs:953 (color_copy)`; `crates/metal2vulkan-runtime/src/resolve.rs:994 (destination)` +- `gap::Render`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:266 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:321 (stand_in_as)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:545 (check_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:787 (attachment_twin)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:282 (check_sizes)`; `crates/metal2vulkan-runtime/src/kept_bytes.rs:138 (settle)`; `crates/metal2vulkan-runtime/src/linear_attachment.rs:296 (settle)`; `crates/metal2vulkan-runtime/src/nan_clear.rs:165 (plan)`; `crates/metal2vulkan-runtime/src/pipeline/render.rs:1086 (imageblock_sample_length)`; `crates/metal2vulkan-runtime/src/render.rs:4510 (next_instance)`; `crates/metal2vulkan-runtime/src/render.rs:5311 (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs:6192 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:493 (scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1208 (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1545 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1599 (target)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1645 (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1839 (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs:1011 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:1075 (destination)`; `crates/metal2vulkan-runtime/src/resolve.rs:885 (attach)`; `crates/metal2vulkan-runtime/src/resolve.rs:953 (color_copy)`; `crates/metal2vulkan-runtime/src/resolve.rs:994 (destination)` - `gap::TexelsPastBufferLength`: `crates/metal2vulkan-runtime/src/buffer_texture.rs:253 (refusal_error)`; `crates/metal2vulkan-runtime/src/texture/surface_depth.rs:104 (surface_depth_twin)` - `gap::OverlappingSurfaceRows`: `crates/metal2vulkan-runtime/src/buffer_texture.rs:255 (refusal_error)` - `gap::SamplePositionsAtBegin`: `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs:144 (stencil_scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs:1717 (positioned_stand_in)`; `crates/metal2vulkan-runtime/src/sample_positions.rs:185 (grid)` - `gap::SharedEventAcrossDevices`: `crates/metal2vulkan-runtime/src/event.rs:326 (new_shared_event_with_handle)` -- `gap::ViewportDepthRange`: `crates/metal2vulkan-runtime/src/render.rs:7312 (draw_settings)`; `crates/metal2vulkan-runtime/src/render_state.rs:1027 (depth_ranges_refused)`; `crates/metal2vulkan-runtime/src/render_state.rs:1398 (bias_holds)`; `crates/metal2vulkan-runtime/src/render_state.rs:1417 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:434 (depth_range)`; `crates/metal2vulkan-runtime/src/render_state.rs:656 (compensation)`; `crates/metal2vulkan-runtime/src/render_state.rs:916` -- `gap::NonFiniteDepthBias`: `crates/metal2vulkan-runtime/src/render_state.rs:1426 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:1429 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:278 (set_depth_bias)`; `crates/metal2vulkan-runtime/src/render_state.rs:370 (draw_viewports)`; `crates/metal2vulkan-runtime/src/render_state.rs:512 (compensation)` +- `gap::ViewportDepthRange`: `crates/metal2vulkan-runtime/src/render.rs:7400 (draw_settings)`; `crates/metal2vulkan-runtime/src/render_state.rs:1053 (depth_ranges_refused)`; `crates/metal2vulkan-runtime/src/render_state.rs:1424 (bias_holds)`; `crates/metal2vulkan-runtime/src/render_state.rs:1443 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:434 (depth_range)`; `crates/metal2vulkan-runtime/src/render_state.rs:662 (compensation)`; `crates/metal2vulkan-runtime/src/render_state.rs:942` +- `gap::NonFiniteDepthBias`: `crates/metal2vulkan-runtime/src/render_state.rs:1452 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:1455 (collapses)`; `crates/metal2vulkan-runtime/src/render_state.rs:278 (set_depth_bias)`; `crates/metal2vulkan-runtime/src/render_state.rs:370 (draw_viewports)`; `crates/metal2vulkan-runtime/src/render_state.rs:512 (compensation)` - `gap::DepthNeverWithoutAttachment`: `crates/metal2vulkan-runtime/src/depth_stencil.rs:147 (failing_draw)` -- `gap::HiddenDepthStencil`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:415 (hidden)`; `crates/metal2vulkan-runtime/src/render.rs:4835 (hidden_depth_stencil)` -- `gap::IndirectDrawArguments`: `crates/metal2vulkan-runtime/src/index_bounds.rs:89 (new)`; `crates/metal2vulkan-runtime/src/render.rs:2420 (draw_indexed_primitives_indirect)`; `crates/metal2vulkan-runtime/src/render.rs:5914 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:5968 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:5999 (draw_resident)` +- `gap::HiddenDepthStencil`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs:424 (hidden)`; `crates/metal2vulkan-runtime/src/render.rs:4915 (hidden_depth_stencil)` +- `gap::IndirectDrawArguments`: `crates/metal2vulkan-runtime/src/index_bounds.rs:89 (new)`; `crates/metal2vulkan-runtime/src/render.rs:2456 (draw_indexed_primitives_indirect)`; `crates/metal2vulkan-runtime/src/render.rs:5995 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:6049 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:6080 (draw_resident)` - `gap::DepthStencilResolve`: `crates/metal2vulkan-runtime/src/depth_stencil_resolve.rs:441 (draws_run)`; `crates/metal2vulkan-runtime/src/resolve.rs:1231 (plan)`; `crates/metal2vulkan-runtime/src/resolve.rs:637 (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs:735 (steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:755 (steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:796 (split_steps)`; `crates/metal2vulkan-runtime/src/resolve.rs:808 (split_steps)` - `gap::TileAtSampleCount`: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:578`; `crates/metal2vulkan-runtime/src/render_pass.rs:1480 (layout)` -- `gap::ImageblockMasters`: `crates/metal2vulkan-runtime/src/render.rs:5855 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:935 (dispatch_tiles_resident)` -- `gap::TileAndFragmentImageblocks`: `crates/metal2vulkan-runtime/src/render.rs:5847 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:802 (dispatch_tiles_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:927 (dispatch_tiles_resident)` +- `gap::ImageblockMasters`: `crates/metal2vulkan-runtime/src/render.rs:5936 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:935 (dispatch_tiles_resident)` +- `gap::TileAndFragmentImageblocks`: `crates/metal2vulkan-runtime/src/render.rs:5928 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:802 (dispatch_tiles_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs:927 (dispatch_tiles_resident)` - `gap::Metal4Api`: `crates/metal2vulkan-runtime/src/families/features.rs:1431 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1018 (state)`; `crates/metal2vulkan-runtime/src/families/mod.rs:362 (audit)` - `gap::CounterSampleBuffers`: `crates/metal2vulkan-runtime/src/families/limits.rs:1009 (state)` - `gap::ResidencySets`: `crates/metal2vulkan-runtime/src/families/features.rs:1413 (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs:1011 (state)` @@ -465,18 +465,18 @@ Each refusal's sites, with the function that builds it. - `gap::LayeredPass`: `crates/metal2vulkan-runtime/src/color_resolve.rs:517 (plan)` - `gap::FunctionOptions`: `crates/metal2vulkan-runtime/src/library.rs:215 (new_function_with_descriptor)` - `gap::OverlappingTextureCopies`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1205 (texture_copies_of_bytes)` -- `gap::RebindTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:567 (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/texture.rs:2932 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2948 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2972 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2979 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:3053 (dma_buf_images_again)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2232 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2247 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2258 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2304 (dma_buf_heap_images_again)` -- `gap::PvrtcBlockOrder`: `crates/metal2vulkan-runtime/src/texture.rs:5714 (host_copy)` +- `gap::RebindTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:567 (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/texture.rs:2960 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2973 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2997 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:3004 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:3075 (dma_buf_images_again)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2233 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2248 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2259 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2305 (dma_buf_heap_images_again)` +- `gap::PvrtcBlockOrder`: `crates/metal2vulkan-runtime/src/texture.rs:5757 (host_copy)` - `gap::VertexFetchPast4GiB`: `crates/metal2vulkan-runtime/src/render/vertex_reach.rs:72 (check_vertex_reach)` - `gap::StageInFetchPast4GiB`: `crates/metal2vulkan-runtime/src/fetch_reach.rs:126 (check_stage_in_reach)` - `gap::MappedTextureSampling`: `crates/metal2vulkan-runtime/src/address_map.rs:158 (resolve)` - `gap::LibrarySource`: `crates/metal2vulkan-runtime/src/library.rs:107 (new_library_with_source)` -- `gap::RestartedStrip`: `crates/metal2vulkan-runtime/src/index_rewrite.rs:109 (new)`; `crates/metal2vulkan-runtime/src/render.rs:5941 (draw_resident)` -- `gap::RotatedTexture`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1521 (texel_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:706 (turned_plane)`; `crates/metal2vulkan-runtime/src/rotated.rs:184 (new)`; `crates/metal2vulkan-runtime/src/rotated.rs:200 (new)`; `crates/metal2vulkan-runtime/src/shadow.rs:346 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:5178 (view)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs:102 (check_rotated_reach)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs:317 (copied_image)`; `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs:188 (new_usage_shadow)` -- `gap::DetachTextures`: `crates/metal2vulkan-runtime/src/buffer.rs:2012 (pages_base)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:572 (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:616 (make_texture_over)`; `crates/metal2vulkan-runtime/src/detach.rs:144 (detach_host_pages)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2436 (heap_texture_at)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:143 (new_stand_in)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:248 (stand_in_while_detached)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:297 (stand_ins)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:303 (stand_ins)` +- `gap::RestartedStrip`: `crates/metal2vulkan-runtime/src/index_rewrite.rs:109 (new)`; `crates/metal2vulkan-runtime/src/render.rs:6022 (draw_resident)` +- `gap::RotatedTexture`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1521 (texel_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:706 (turned_plane)`; `crates/metal2vulkan-runtime/src/rotated.rs:184 (new)`; `crates/metal2vulkan-runtime/src/rotated.rs:200 (new)`; `crates/metal2vulkan-runtime/src/shadow.rs:346 (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs:5221 (view)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs:102 (check_rotated_reach)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs:317 (copied_image)`; `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs:188 (new_usage_shadow)` +- `gap::DetachTextures`: `crates/metal2vulkan-runtime/src/buffer.rs:2023 (pages_base)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:572 (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs:616 (make_texture_over)`; `crates/metal2vulkan-runtime/src/detach.rs:144 (detach_host_pages)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2437 (heap_texture_at)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:143 (new_stand_in)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:248 (stand_in_while_detached)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:297 (stand_ins)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs:303 (stand_ins)` - `gap::TextureBufferLevels`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:531 (check_made)` - `gap::WriteSwizzle`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs:538 (check_made)` -- `gap::DetachedTexelAccess`: `crates/metal2vulkan-runtime/src/texture.rs:5008 (refuse_detached_texels)` +- `gap::DetachedTexelAccess`: `crates/metal2vulkan-runtime/src/texture.rs:5051 (refuse_detached_texels)` - `gap::SurfaceDepthStencil`: `crates/metal2vulkan-runtime/src/blit_texture.rs:232 (unit)`; `crates/metal2vulkan-runtime/src/texture/surface_depth.rs:56 (surface_depth_twin)` - `gap::HostHeapUncompressedMultisample`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1734 (host_heap_plan)` - `gap::PredicationUnbalanced`: `crates/metal2vulkan-runtime/src/predication.rs:354 (nil)`; `crates/metal2vulkan-runtime/src/predication.rs:386 (start_else)`; `crates/metal2vulkan-runtime/src/predication.rs:438 (end_if)`; `crates/metal2vulkan-runtime/src/predication.rs:558 (end_loop)` @@ -497,9 +497,9 @@ Each refusal's sites, with the function that builds it. - `bind::DescriptorRangeExceeded`: `crates/metal2vulkan/src/bind/instantiate.rs:572 (bind_buffers)` - `bind::TexelBufferTooLarge`: `crates/metal2vulkan/src/bind/instantiate.rs:743 (texel_ranges)` - `bind::HeapTooLarge`: `crates/metal2vulkan/src/bind/heap.rs:1726 (directory_bytes)`; `crates/metal2vulkan/src/bind/heap.rs:1841 (listed_sampler_tables)`; `crates/metal2vulkan/src/bind/heap.rs:1891 (placed)`; `crates/metal2vulkan/src/bind/heap.rs:2046 (heap_elements)`; `crates/metal2vulkan/src/bind/heap.rs:929 (new)`; `crates/metal2vulkan/src/bind/heap.rs:945 (new)`; `crates/metal2vulkan/src/bind/heap.rs:994 (new)` -- `bind::TessellationFactorRange`: `crates/metal2vulkan/src/bind/graphics.rs:2906 (patch_draw)` -- `bind::PatchIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs:2952 (patch_draw)` -- `bind::ControlPointIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs:2981 (patch_draw)` +- `bind::TessellationFactorRange`: `crates/metal2vulkan/src/bind/graphics.rs:2935 (patch_draw)` +- `bind::PatchIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs:2981 (patch_draw)` +- `bind::ControlPointIndexRange`: `crates/metal2vulkan/src/bind/graphics.rs:3010 (patch_draw)` - `bind::MissingStageInRegion`: `crates/metal2vulkan/src/bind/dispatch.rs:805 (instantiate)` - `bind::UniformViewAliased`: `crates/metal2vulkan/src/bind/instantiate.rs:526 (check_uniform_aliasing)` - `bind::MissingDeviceAddress`: `crates/metal2vulkan/src/bind/plan/slots.rs:139 (plan_buffer)` diff --git a/scripts/refusal-surface/reach.tsv b/scripts/refusal-surface/reach.tsv index 133cded5e..c14fe96b5 100644 --- a/scripts/refusal-surface/reach.tsv +++ b/scripts/refusal-surface/reach.tsv @@ -224,7 +224,7 @@ feature TileReach app the tiles a pass's draws reach, binned on a device without gap HostHeapUncompressedMultisample none a multisample texture Metal keeps uncompressed in a runtime extension's heap over host pages feature CommandPredication none Apple-private command predication on a device without buffer device addresses feature ProgramScopeBinding app MSL 3.2 program-scope buffer bindings (macOS 15 and later) -feature SeqCstFence rare a seq_cst fence on a device without buffer device addresses or the stage's stores +feature SeqCstFence rare a seq_cst fence in a vertex or fragment stage without its stores and atomics gap PredicationUnbalanced none an unbalanced Apple-private command-predication record, whose dropped work Metal decides by no rule measured gap PredicationOpenAtUnitEnd none an Apple-private predication If left open, live, where its unit ends gap PredicationWordPastBuffer none an Apple-private predication condition word past its buffer