diff --git a/crates/metal2vulkan-runtime/src/buffer.rs b/crates/metal2vulkan-runtime/src/buffer.rs index 7969bcc76..44ae3b4ab 100644 --- a/crates/metal2vulkan-runtime/src/buffer.rs +++ b/crates/metal2vulkan-runtime/src/buffer.rs @@ -31,7 +31,7 @@ use super::generated_commands::PREPROCESS_BUFFER; use super::heap::{Heap, HeapType}; use super::host_aliases::Alias; use super::host_memory::{KeepAlive, Release}; -use super::memory::{MemoryClass, Placement}; +use super::memory::{MemoryClass, Placement, BLOCK_BYTES}; use super::rebind::Unexact; use super::resource::{Identity, ObjectId, ResourceKey}; use super::texture::first_move::Filled; @@ -922,16 +922,29 @@ impl Modes { pub(super) const LINEAR_IMAGE_ALIGNMENT: u64 = 256; /// A buffer's memory `requirements`, placed at a multiple of [`LINEAR_IMAGE_ALIGNMENT`] as well -/// (Vulkan's alignments are powers of two, so the larger one is a multiple of both), and taking -/// whole units of that alignment. So the next buffer placed in the pool starts where the last -/// ends: a buffer shorter than the alignment would leave the rest of its unit free, a gap no -/// buffer takes, and the pool's first-fit search (`range.rs`) walks every such gap for each -/// later placement, which made each new buffer cost time in proportion to the buffers before it. +/// (Vulkan's alignments are powers of two, so the larger one is a multiple of both), and, up to +/// half a pooled block, taking whole units of that alignment. So the next buffer placed in the +/// pool starts where the last ends: a buffer shorter than the alignment would leave the rest of +/// its unit free, a gap no buffer takes, and the pool's first-fit search (`range.rs`) walks every +/// such gap for each later placement, which made each new buffer cost time in proportion to the +/// buffers before it. A buffer past half a pooled block keeps its own size: it never lies in a +/// pooled block but takes a block of its own (`memory.rs`'s `place`; a pooled block is +/// [`BLOCK_BYTES`] on every device, whose `maxMemoryAllocationSize` Vulkan puts at 1 GiB or +/// more), where nothing follows it. +/// Rounded up to a heap's 256 KiB (`texture/heap.rs`'s `HEAP_BASE_ALIGNMENT`), the largest heap +/// would ask past the device's `maxMemoryAllocationSize`: 4 GiB on RADV, whose largest allocation +/// is 4 GiB less 4 bytes, and 41,747,218,432 bytes on MoltenVK on an M3 Max, whose largest is +/// 41,747,087,360. pub(super) fn placed(requirements: vk::MemoryRequirements) -> vk::MemoryRequirements { let alignment = requirements.alignment.max(LINEAR_IMAGE_ALIGNMENT); + let size = if requirements.size > BLOCK_BYTES / 2 { + requirements.size + } else { + requirements.size.next_multiple_of(alignment) + }; vk::MemoryRequirements { alignment, - size: requirements.size.next_multiple_of(alignment), + size, ..requirements } } diff --git a/crates/metal2vulkan-runtime/src/error.rs b/crates/metal2vulkan-runtime/src/error.rs index 5dd93ed95..fccddce18 100644 --- a/crates/metal2vulkan-runtime/src/error.rs +++ b/crates/metal2vulkan-runtime/src/error.rs @@ -1087,7 +1087,8 @@ pub enum RuntimeGap { max_buffer_size: u64, }, /// A heap texture whose image needs an alignment past the heap memory's base alignment - /// (64 KiB): no offset in the heap is sure to meet it. + /// (256 KiB): no offset in the heap is sure to meet it. The base is the largest image + /// alignment measured (an RX 7900 XTX's multisample images under RADV). HeapTextureAlignment { /// The alignment the image needs, in bytes. alignment: u64, diff --git a/crates/metal2vulkan-runtime/src/tests/heap.rs b/crates/metal2vulkan-runtime/src/tests/heap.rs index f06d4856f..c54dc08e2 100644 --- a/crates/metal2vulkan-runtime/src/tests/heap.rs +++ b/crates/metal2vulkan-runtime/src/tests/heap.rs @@ -236,6 +236,47 @@ fn a_heap_rounds_to_16_kib_and_fits_one_allocation_and_one_buffer() { ); } +/// A heap's buffer takes whole units of the heap's base alignment in a pooled block, and its own +/// size in a block of its own (`buffer.rs`'s `placed`), so the largest heap of every committed +/// profile asks one allocation of at most `maxMemoryAllocationSize`, and its block's buffer of +/// addresses, as long as the block, at most `maxBufferSize`. In whole units of the base, RADV's +/// largest heap (4 GiB less 16 KiB) would ask 4 GiB of an allocation of at most 4 GiB less 4 bytes, +/// and MoltenVK's 128 KiB past its largest allocation. +#[test] +fn the_largest_heap_asks_one_allocation_of_its_device() { + use crate::buffer::placed; + use crate::memory::BLOCK_BYTES; + use crate::texture::heap::HEAP_BASE_ALIGNMENT; + use ash::vk::MemoryRequirements; + let heap = |size| MemoryRequirements { + size, + alignment: HEAP_BASE_ALIGNMENT, + memory_type_bits: 1, + }; + let half = BLOCK_BYTES / 2; + assert_eq!(placed(heap(16384)).size, HEAP_BASE_ALIGNMENT); + assert_eq!(placed(heap(half - 16384)).size, half); + assert_eq!(placed(heap(half + 16384)).size, half + 16384); + for (stem, description) in committed_descriptions() { + let limits = &description.allocation; + let buffer = match limits.max_buffer_size { + 0 => u64::MAX, + size => size, + }; + let largest = limits.max_memory_allocation_size.min(buffer) / 16384 * 16384; + assert_eq!(heap_size(largest, limits), Ok(largest), "{stem}"); + let asked = placed(heap(largest)); + assert_eq!(asked.alignment, HEAP_BASE_ALIGNMENT, "{stem}"); + assert!( + asked.size <= limits.max_memory_allocation_size && asked.size <= buffer, + "{stem}: the largest heap, {largest} bytes, asks {} bytes of an allocation of at most \ + {} and a buffer of at most {buffer}", + asked.size, + limits.max_memory_allocation_size + ); + } +} + /// The descriptor's defaults are Metal's (probe 1's `defaults`): an automatic heap of size 0 in /// `Private` storage, options 32; heap types carry Metal's raw values. #[test] @@ -404,7 +445,7 @@ fn a_depth_twin_lies_past_its_image_inside_the_heap_texture_s_bytes() { ImagePlacement::new(granularity, &BTreeSet::from([short])) }; let answer = |size, align| SizeAndAlign { size, align }; - // RADV's shape: 64 KiB alignment for the larger images, 4 KiB for the small. + // RADV's shape on the Radeon 780M: 64 KiB alignment for the larger images, 4 KiB for the small. let image = requirements(16512, 4096); let twin = requirements(16384, 65536); let (got, offset) = heap_extent(&image, Some(&twin), pages(1024)); @@ -437,6 +478,42 @@ fn a_depth_twin_lies_past_its_image_inside_the_heap_texture_s_bytes() { ); } +/// A heap's memory starts at a multiple of every image alignment measured, so a heap texture of +/// such an image is placed, not refused: RADV's on an RX 7900 XTX (Mesa 26.0.8), 128 KiB for a +/// `D16`, `D32F` or `D32FS8` image of 8 x 8 texels or more and 256 KiB for a multisample image from +/// about 128 x 128 texels, and the Radeon 780M's 64 KiB under the same driver (the alignments alone +/// were measured; the sizes here stand in). An alignment past the base is refused typed. +#[test] +fn every_image_alignment_measured_fits_a_heap_s_base() { + use crate::error::{Error, RuntimeGap}; + use crate::memory::BLOCK_BYTES; + use crate::texture::heap::{check_heap_base, heap_extent, HEAP_BASE_ALIGNMENT}; + use crate::texture::ImagePlacement; + use ash::vk::MemoryRequirements; + use std::collections::BTreeSet; + let pages = ImagePlacement::new(1, &BTreeSet::new()); + for alignment in [64 << 10, 128 << 10, 256 << 10] { + let image = MemoryRequirements { + size: 4 * alignment, + alignment, + memory_type_bits: 1, + }; + let (answer, _) = heap_extent(&image, None, pages); + assert_eq!(answer.align, alignment); + assert_eq!(check_heap_base(answer.align), Ok(()), "{alignment:#x}"); + } + let past = 2 * HEAP_BASE_ALIGNMENT; + assert_eq!( + check_heap_base(past), + Err(Error::NotImplemented(RuntimeGap::HeapTextureAlignment { + alignment: past + })) + ); + // A heap's buffer takes whole units of the base (`buffer.rs`'s `placed`), so rounding never + // carries one past the size that takes a block of its own (half a pooled block). + assert!((BLOCK_BYTES / 2).is_multiple_of(HEAP_BASE_ALIGNMENT)); +} + /// A heap's depth or stencil texture held as a shadow of the heap's bytes keeps each aspect in /// planes of its own, from the texture's first byte: the depth's levels in order, then the /// stencil's, each level one region of all its layers' texels tightly packed (`Depth16Unorm` 2 diff --git a/crates/metal2vulkan-runtime/src/texture/heap.rs b/crates/metal2vulkan-runtime/src/texture/heap.rs index 7976f761c..e22617718 100644 --- a/crates/metal2vulkan-runtime/src/texture/heap.rs +++ b/crates/metal2vulkan-runtime/src/texture/heap.rs @@ -73,10 +73,14 @@ //! optimized texture's, larger than Metal's, and the device announces //! `optimized-depth-stencil-texture` once. //! - **The heap's memory.** A heap's buffer lies at a multiple of [`HEAP_BASE_ALIGNMENT`] of its -//! memory, of a type optimal images take where its storage class has one, else of one linear -//! images take ([`HeapTypes::heap_memory`], `buffer.rs`), so a texture at any multiple of its -//! answered alignment binds at its offset. A texture whose alignment exceeds that base, or -//! whose image the heap's memory type does not take, is refused typed +//! memory (256 KiB, the largest image alignment measured), of a type optimal images take where +//! its storage class has one, else of one linear images take ([`HeapTypes::heap_memory`], +//! `buffer.rs`), so a texture at any multiple of its answered alignment binds at its offset. Up +//! to half a pooled block it takes whole units of the base of a pooled block; past that, a block +//! of its own of its own size (`buffer.rs`'s `placed`), so the largest heap stays one allocation +//! of the device. A heap over host pages starts at offset 0 of its own import +//! (`HeapProblem::HostMemoryAlignment`), which meets any alignment. A texture whose alignment +//! exceeds that base, or whose image the heap's memory type does not take, is refused typed //! (`RuntimeGap::HeapTextureAlignment`, `HeapTextureMemory`), by the query and the call alike //! where the cause is the descriptor. //! - **Linear images**. A texture whose optimal image does not take the heap's memory (any texture @@ -181,8 +185,12 @@ use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::{Arc, Mutex}; /// The alignment of a heap's memory: a heap texture whose answered alignment exceeds it is -/// refused (`RuntimeGap::HeapTextureAlignment`). -pub(crate) const HEAP_BASE_ALIGNMENT: u64 = 64 << 10; +/// refused (`RuntimeGap::HeapTextureAlignment`, [`check_heap_base`]). It is the largest image +/// alignment measured: RADV on an RX 7900 XTX (Mesa 26.0.8) asks 128 KiB of a `D16`, `D32F` or +/// `D32FS8` image of 8 x 8 texels or more and 256 KiB of a multisample depth, stencil or color +/// image from about 128 x 128 texels, where the Radeon 780M under the same driver asks at most +/// 64 KiB of any. +pub(crate) const HEAP_BASE_ALIGNMENT: u64 = 256 << 10; /// Where a heap texture's image lies: its heap, and its offset and size there. The range has /// this one owner from its allocation on, the texture's image once it is made. The last texture @@ -941,6 +949,17 @@ pub(crate) fn heap_extent( (SizeAndAlign { size, align }, twin_offset) } +/// Whether a heap texture of alignment `align` lies at a multiple of it wherever a heap's memory +/// starts: refused past [`HEAP_BASE_ALIGNMENT`] (`RuntimeGap::HeapTextureAlignment`). +pub(crate) fn check_heap_base(align: u64) -> Result<(), Error> { + if align > HEAP_BASE_ALIGNMENT { + return Err(Error::NotImplemented(RuntimeGap::HeapTextureAlignment { + alignment: align, + })); + } + Ok(()) +} + /// Where a resource of `size` bytes at a multiple of `align` lies in `heap` for `call`: at /// `offset` of a placement heap, refused off the alignment or past the heap's end (`Nil`, as plain /// Metal answers nil, its validation stopping it), or at the lowest offset with room of an @@ -1271,11 +1290,7 @@ impl Device { } size_and_align = metal; } - if size_and_align.align > HEAP_BASE_ALIGNMENT { - return Err(Error::NotImplemented(RuntimeGap::HeapTextureAlignment { - alignment: size_and_align.align, - })); - } + check_heap_base(size_and_align.align)?; // The size answered is the optimized texture's where the driver keeps the layout. self.degrade_optimized_layout(descriptor, &layout); if let Some(metal) = modelled { diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index 2b837426c..1cf410a4b 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -00286faa8dd36994a9eee0689de4f785f15412fb8f251f845352c2ead51ed31a +1ee043f7d07744e154b15ec5ef954f9df4fac116d46b893e734a4462c7555464 diff --git a/crates/metal2vulkan-validation/src/runtime_lane/heaps.rs b/crates/metal2vulkan-validation/src/runtime_lane/heaps.rs index 9f6561a8e..6a46501c6 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/heaps.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/heaps.rs @@ -220,6 +220,58 @@ fn heaps_answer_as_metal_s_do() { }); } +/// The largest heap the device takes (the lower of one allocation and one `VkBuffer`, in whole +/// 16 KiB) lies in one allocation of at most `maxMemoryAllocationSize` bytes, whose block's buffer +/// of addresses, as long as the block, is at most `maxBufferSize` (the validation layer reports +/// nothing): the runtime's memory grows by the heap's size and no more than one allocation. RADV's +/// largest heap is 4 GiB less 16 KiB, of an allocation of at most 4 GiB less 4 bytes. Made where +/// it is at most 4 GiB (RADV, ANV, lavapipe), else not; out of device memory is an answer too. +#[test] +fn the_largest_heap_lies_in_one_allocation() { + on_device(|device| { + let limits = device.compile_device().allocation(); + let buffer = match limits.max_buffer_size { + 0 => u64::MAX, + size => size, + }; + let largest = limits.max_memory_allocation_size.min(buffer) / 16384 * 16384; + if largest > 4 << 30 { + eprintln!("HEAP the largest heap, {largest} bytes, is past 4 GiB: not made"); + return; + } + // A heap first, so that the pools the runtime keeps room in have it before the count. + let _first = heap( + device, + HeapType::Placement, + 16384, + ResourceOptions::private(), + ); + let before = device.work_counts().device_memory_allocated; + let made = device.new_heap(&HeapDescriptor::new( + HeapType::Placement, + largest, + ResourceOptions::private(), + )); + let grown = device.work_counts().device_memory_allocated - before; + match made { + Ok(made) => { + eprintln!("HEAP the largest heap, {largest} bytes, took {grown} bytes of memory"); + assert_eq!(made.size(), largest); + assert!( + (largest..=limits.max_memory_allocation_size).contains(&grown), + "the largest heap, {largest} bytes, took {grown} bytes, past one allocation \ + of {}", + limits.max_memory_allocation_size + ); + } + Err(Error::OutOfMemory(MemoryKind::Device)) => { + eprintln!("HEAP the largest heap, {largest} bytes: out of device memory"); + } + Err(other) => panic!("the largest heap, {largest} bytes: {other:?}"), + } + }); +} + /// A placement heap: offsets at multiples of 256 inside the heap, a buffer's address the heap's /// plus its offset, and its bytes the heap's there, a buffer of length 0 too (probes 1 and 2). fn placement_rules(device: &Device) { diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 7213e9379..452865916 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 398; /// 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 = 1179; +pub const RUNTIME_VERSION: u32 = 1181; /// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex, /// of the manifest, the build script, and exactly the files the crate roots' module tree compiles diff --git a/docs/REFUSALS.md b/docs/REFUSALS.md index e80a744e4..fd89664a8 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 `d612d286c`. +Generated at `6cc8b0870`. ## Totals @@ -68,7 +68,7 @@ Generated at `d612d286c`. | `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:2890` (+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:450` (+105) | `system`: pixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them) | +| `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) | | `DivergentImplicitLod` | Divergent implicit-LOD sampling or LOD query through a multi-candidate handle | every device (not implemented) | 1: `crates/metal2vulkan/src/lower/sampler/select.rs:377` | `app`: implicit-LOD sampling through a dynamically chosen texture | | `ImplicitLodOutsideFragment` | Implicit-LOD sampling outside fragment | every device (not implemented) | 3: `crates/metal2vulkan/src/lower/sampler/constexpr.rs:136`, `crates/metal2vulkan/src/lower/sampler/select.rs:254` (+1) | `rare`: implicit-LOD sampling outside fragment functions | | `MinLodClamp` | `min_lod_clamp` without `shaderResourceMinLod` | devices without VkFeature::ShaderResourceMinLod; every device (not implemented) | 2: `crates/metal2vulkan/src/lower/sampler/select.rs:1311`, `crates/metal2vulkan/src/lower/sampler/select.rs:891` | `rare`: min_lod_clamp on a device without shaderResourceMinLod | @@ -132,7 +132,7 @@ Generated at `d612d286c`. | `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:885` (+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:1689`, `crates/metal2vulkan-runtime/src/mipmap_pick.rs:37` (+5) | `app`: generateMipmapsForTexture: where the device's filter is not Metal's | +| `MipmapGeneration` | `generateMipmapsForTexture:` where the device's filter is not shown to give Metal's answer | devices without VkFeature::ShaderInt64; devices without a format's usage; every device (not implemented) | 7: `crates/metal2vulkan-runtime/src/blit_texture.rs: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:1830` | `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 | @@ -145,7 +145,7 @@ Generated at `d612d286c`. | `SparseMapping` | A sparse texture's mapping update (`updateTextureMapping:` and its array form, or a move of mappings) that covers part of one of the device's... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:466` | `rare`: sparse mappings off the device's blocks | | `TimelineSemaphores` | Command buffers and events, which the runtime completes and signals through timeline semaphores (core in Vulkan 1.2), on a device whose... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/device/create.rs: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:540` | `app`: textures in Shared heaps on a device whose optimal images take no host memory | +| `HeapTextureTiling` | A texture of a heap whose memory the device's optimal images do not take (a `Shared` heap on a device whose optimal images take no host-visible... | every device (no Vulkan mechanism) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:546` | `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] | | `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 | @@ -167,8 +167,8 @@ Generated at `d612d286c`. | `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:1476` (+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 | -| `HeapTextureAlignment` | A heap texture whose image needs an alignment past the heap memory's base alignment (64 KiB) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:1275` | `rare`: a heap texture needing more than 64 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:1260`, `crates/metal2vulkan-runtime/src/texture/heap.rs:1267` (+3) | `app`: a heap texture the heap's memory type does not take | +| `HeapTextureAlignment` | A heap texture whose image needs an alignment past the heap memory's base alignment (256 KiB) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/texture/heap.rs:954` | `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:1277`, `crates/metal2vulkan-runtime/src/texture/heap.rs:1284` (+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 | | `IndirectCommandBufferPastMaxBufferLength` | An indirect command buffer of more commands than one buffer of the device's `max_buffer_length` holds the records of | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs:522` | `none`: an ICB past one buffer | | `IndirectRenderCommands` | What indirect command buffers lack of their render commands | every device (runtime piece not built) | 16: `crates/metal2vulkan-runtime/src/compute.rs:1026`, `crates/metal2vulkan-runtime/src/compute.rs:1076` (+14) | `rare`: indirect render commands' remaining pieces | @@ -206,27 +206,27 @@ Generated at `d612d286c`. | `RateMapRegions` | A draw in a rate-mapped pass that the region path does not draw, for the compile layer's reason (`rate_mapped_pass.rs`) | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs:351` | `rare`: draws in rate-mapped passes the region path does not draw | | `LayeredPass` | A layered render pass (`renderTargetArrayLength` 2 or more) that needs a step of one layer | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/color_resolve.rs: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:1201` | `rare`: overlapping texture copies (Metal races) | +| `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:2696` (+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:5465` | `rare`: PVRTC regions off whole levels | +| `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:5473` | `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:5912` | `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:1508`, `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 | +| `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:1999`, `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:4762` | `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:4767` | `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:1719` | `none`: a multisample texture Metal keeps uncompressed in a runtime extension's heap over host pages | +| `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:1732` | `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 | | `PredicationOpenAtUnitEnd` | A command buffer one of whose units of predication ended with an If still open that no misused record killed, refused at `CommandBuffer::commit` | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/predication.rs:279` | `none`: an Apple-private predication If left open, live, where its unit ends | | `PredicationWordPastBuffer` | A predication condition word (`encode_start_if`'s offset, rounded down to a multiple of 4) past its buffer's end | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/predication.rs:139` | `none`: an Apple-private predication condition word past its buffer | | `PredicatedLoopDepth` | A predicated loop started (`ComputeCommandEncoder::encode_start_while`, `encode_start_do_while`) with three loops already open in its unit | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/predication.rs:466` | `none`: an Apple-private predicated loop four deep | | `PredicatedLoopAcrossEncoders` | A command buffer one of whose live predicated loops started in one compute encoder and ended in a later one of its unit, refused at... | every device (runtime piece not built) | 1: `crates/metal2vulkan-runtime/src/predication.rs:283` | `none`: a live Apple-private predicated loop spanning compute encoders | -| `MultisampledBufferCopy` | A blit copy between a buffer and a multisampled texture (`copyFromBuffer:...toTexture:` into, or `copyFromTexture:...toBuffer:` out of, a texture... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/blit_texture.rs:477`, `crates/metal2vulkan-runtime/src/blit_texture.rs:633` | `rare`: a buffer<->multisampled-texture copy on a device without sample-rate shading, an integer multisample attachment at the count, or the copy format's storage; and, where maintenance8's depth/colour copies are missing or wrong, what the sample-rate draws cannot move: a 16-bit depth, a depth or stencil texture they cannot sample or render to, or a 32-bit float depth on a driver whose fragment depth is unmeasured (emulated elsewhere; the consumer's Maps pans and screensaver make the copy) | +| `MultisampledBufferCopy` | A blit copy between a buffer and a multisampled texture (`copyFromBuffer:...toTexture:` into, or `copyFromTexture:...toBuffer:` out of, a texture... | every device (runtime piece not built) | 2: `crates/metal2vulkan-runtime/src/blit_texture.rs:480`, `crates/metal2vulkan-runtime/src/blit_texture.rs:636` | `rare`: a buffer<->multisampled-texture copy on a device without sample-rate shading, an integer multisample attachment at the count, or the copy format's storage; and, where maintenance8's depth/colour copies are missing or wrong, what the sample-rate draws cannot move: a 16-bit depth, a depth or stencil texture they cannot sample or render to, or a 32-bit float depth on a driver whose fragment depth is unmeasured (emulated elsewhere; the consumer's Maps pans and screensaver make the copy) | ## 3. Apple-only calls (`Error::AppleOnly`) @@ -331,7 +331,7 @@ Each refusal's sites, with the function that builds it. - `feature::BufferRange`: `crates/metal2vulkan-runtime/src/function_table.rs:575 (past_storage_buffer_range)`; `crates/metal2vulkan/src/bind/graphics.rs:2890 (patch_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:2936 (patch_draw)`; `crates/metal2vulkan/src/bind/graphics.rs:2965 (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::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:450 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:464 (check_formats)`; `crates/metal2vulkan-runtime/src/blit_plan.rs:521 (pair_unit)`; `crates/metal2vulkan-runtime/src/blit_texture.rs:1980 (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:5267 (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:1833 (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs:3639 (two_planes_refused)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1610 (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:1705 (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:1299 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1325 (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:857 (plan)`; `crates/metal2vulkan/src/lower/sampler/select.rs:716 (texel_in)`; `crates/metal2vulkan/src/lower/sampler/select.rs:999 (select_extended)`; `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:1500 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1502 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1545 (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs:2475 (storage_choice_viewed)`; `crates/metal2vulkan/src/metal/format/mod.rs:2493 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2501 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2573 (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:5267 (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:1833 (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs:3644 (two_planes_refused)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1623 (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:1705 (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:1299 (select_output)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs:1325 (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:857 (plan)`; `crates/metal2vulkan/src/lower/sampler/select.rs:716 (texel_in)`; `crates/metal2vulkan/src/lower/sampler/select.rs:999 (select_extended)`; `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:1500 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1502 (vk_format)`; `crates/metal2vulkan/src/metal/format/mod.rs:1545 (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs:2475 (storage_choice_viewed)`; `crates/metal2vulkan/src/metal/format/mod.rs:2493 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2501 (held_storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs:2573 (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:1311 (select_one)`; `crates/metal2vulkan/src/lower/sampler/select.rs:891 (min_lod)` @@ -395,7 +395,7 @@ Each refusal's sites, with the function that builds it. - `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:885 (view)`; `crates/metal2vulkan/src/bind/plan/resources.rs:1088 (plain_texture)`; `crates/metal2vulkan/src/lower/sampler/select.rs:2275 (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:1689 (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::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:1830 (gpu_times)` - `feature::CountingVisibility`: `crates/metal2vulkan-runtime/src/visibility.rs:447 (check_mode)` @@ -408,7 +408,7 @@ Each refusal's sites, with the function that builds it. - `feature::SparseMapping`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:466 (splits_a_unit)` - `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:540 (tiling_refusal)` +- `feature::HeapTextureTiling`: `crates/metal2vulkan-runtime/src/texture/heap.rs:546 (tiling_refusal)` - `feature::ViewportDepthRange`: `crates/metal2vulkan-runtime/src/render_state.rs:1035 (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)` @@ -420,13 +420,13 @@ Each refusal's sites, with the function that builds it. - `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:1292 (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs:1969 (storage_over_buffer)`; `crates/metal2vulkan-runtime/src/texture.rs:3111 (new_image_starting)`; `crates/metal2vulkan-runtime/src/texture.rs:4120 (image)`; `crates/metal2vulkan-runtime/src/texture.rs:5395 (host_copy)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs:206 (new_surface_planes_texture)` +- `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:1292 (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs:1969 (storage_over_buffer)`; `crates/metal2vulkan-runtime/src/texture.rs:3116 (new_image_starting)`; `crates/metal2vulkan-runtime/src/texture.rs:4125 (image)`; `crates/metal2vulkan-runtime/src/texture.rs:5400 (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:1476 (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture.rs:4692 (make_aliasable)` +- `gap::SparseHeaps`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs:458 (first_slice)`; `crates/metal2vulkan-runtime/src/texture.rs:1476 (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture.rs:4697 (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:1501 (plan_sparse_texture)` - `gap::HeapPastMaxBufferSize`: `crates/metal2vulkan-runtime/src/heap.rs:689 (heap_size)` -- `gap::HeapTextureAlignment`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1275 (heap_plan)` -- `gap::HeapTextureMemory`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1260 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1267 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1714 (host_heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1927 (memory_shadow)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:467 (memory_refusal)` +- `gap::HeapTextureAlignment`: `crates/metal2vulkan-runtime/src/texture/heap.rs:954 (check_heap_base)` +- `gap::HeapTextureMemory`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1277 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1284 (heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1727 (host_heap_plan)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:1940 (memory_shadow)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:473 (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:5737 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:6027 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:6306 (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs:6668 (draw_resident)`; `crates/metal2vulkan-runtime/src/render/executions.rs:1773 (record)`; `crates/metal2vulkan-runtime/src/render/executions.rs:2438 (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)` @@ -464,27 +464,27 @@ Each refusal's sites, with the function that builds it. - `gap::RateMapRegions`: `crates/metal2vulkan-runtime/src/rate_mapped_pass.rs:351 (refusal)` - `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:1201 (texture_copies_of_bytes)` -- `gap::RebindTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs:567 (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/texture.rs:2696 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2712 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2732 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2746 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2817 (dma_buf_images_again)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2217 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2232 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2243 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2289 (dma_buf_heap_images_again)` -- `gap::PvrtcBlockOrder`: `crates/metal2vulkan-runtime/src/texture.rs:5465 (host_copy)` +- `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:2696 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2712 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2732 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2746 (rebound_alias_images)`; `crates/metal2vulkan-runtime/src/texture.rs:2817 (dma_buf_images_again)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2230 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2245 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2256 (rebound_heap_images)`; `crates/metal2vulkan-runtime/src/texture/heap.rs:2302 (dma_buf_heap_images_again)` +- `gap::PvrtcBlockOrder`: `crates/metal2vulkan-runtime/src/texture.rs:5473 (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:5912 (draw_resident)` -- `gap::RotatedTexture`: `crates/metal2vulkan-runtime/src/blit_texture.rs:1508 (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:4932 (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:1999 (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:2421 (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::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:4937 (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:1999 (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:2434 (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:4762 (refuse_detached_texels)` +- `gap::DetachedTexelAccess`: `crates/metal2vulkan-runtime/src/texture.rs:4767 (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:1719 (host_heap_plan)` +- `gap::HostHeapUncompressedMultisample`: `crates/metal2vulkan-runtime/src/texture/heap.rs:1732 (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)` - `gap::PredicationOpenAtUnitEnd`: `crates/metal2vulkan-runtime/src/predication.rs:279 (commit)` - `gap::PredicationWordPastBuffer`: `crates/metal2vulkan-runtime/src/predication.rs:139 (new)` - `gap::PredicatedLoopDepth`: `crates/metal2vulkan-runtime/src/predication.rs:466 (start_loop)` - `gap::PredicatedLoopAcrossEncoders`: `crates/metal2vulkan-runtime/src/predication.rs:283 (commit)` -- `gap::MultisampledBufferCopy`: `crates/metal2vulkan-runtime/src/blit_texture.rs:477 (copy_from_buffer_to_texture)`; `crates/metal2vulkan-runtime/src/blit_texture.rs:633 (copy_from_texture_to_buffer)` +- `gap::MultisampledBufferCopy`: `crates/metal2vulkan-runtime/src/blit_texture.rs:480 (copy_from_buffer_to_texture)`; `crates/metal2vulkan-runtime/src/blit_texture.rs:636 (copy_from_texture_to_buffer)` - `apple::ProtectedContent`: `crates/metal2vulkan-runtime/src/apple_only.rs:199 (check)` - `apple::LineWidth`: `crates/metal2vulkan-runtime/src/apple_only.rs:201 (check)` - `apple::ProvokingVertexMode`: `crates/metal2vulkan-runtime/src/apple_only.rs:206 (check)` diff --git a/scripts/refusal-surface/reach.tsv b/scripts/refusal-surface/reach.tsv index b5976d8fb..133cded5e 100644 --- a/scripts/refusal-surface/reach.tsv +++ b/scripts/refusal-surface/reach.tsv @@ -128,7 +128,7 @@ gap SparseHeaps rare sparse heaps gap SparseTileMaps rare sparse texture emulation's unbuilt pieces gap HeapPastMaxBufferSize rare a heap past maxBufferSize gap RotatedTexture rare a rotated drawable's views, blits with images over overlapping rows, rows past its buffer -gap HeapTextureAlignment rare a heap texture needing more than 64 KiB alignment +gap HeapTextureAlignment rare a heap texture needing more than 256 KiB alignment gap HeapTextureMemory app a heap texture the heap's memory type does not take gap FunctionTablePastMaxBufferLength none a function table past one buffer gap IndirectCommandBufferPastMaxBufferLength none an ICB past one buffer