diff --git a/crates/metal2vulkan-runtime/src/tests/host_pages_placement.rs b/crates/metal2vulkan-runtime/src/tests/host_pages_placement.rs index 1378324d5..47105a0d3 100644 --- a/crates/metal2vulkan-runtime/src/tests/host_pages_placement.rs +++ b/crates/metal2vulkan-runtime/src/tests/host_pages_placement.rs @@ -10,7 +10,8 @@ //! buffer's length. By pointer, on the device the cfg selects once its check settled, and under //! `HostPageTexturePolicy::Shadow`; as dma-bufs on Linux, on a device made without //! `VK_EXT_external_memory_host` (`tests/no_pointer_import.rs`), where `/dev/udmabuf` opens. Each -//! pre-import answer makes no `VkImage` (`WorkCounts::vk_images_made`). +//! pre-import answer makes no `VkImage` on the asking thread +//! (`ObjectChurn::vk_images_made_this_thread`). //! //! A device test: compiled only under the GPU safety cfgs (`m2v_gpu`, `m2v_cpu_icd`), on the kind //! of device the cfg selects. Printed (`HOST-PAGES-PLACEMENT`): each shape's two answers. @@ -77,7 +78,7 @@ fn ask_each( descriptor.usage = usage; descriptor.resource_options = ResourceOptions::default(); let plane = IoSurfacePlane::new(offset, bytes_per_row, false); - let made = || device.work_counts().vk_images_made; + let made = || device.work_counts().object_churn.vk_images_made_this_thread; let images = made(); let before = (device.host_pages_texture_placement(backing, &descriptor, plane, start, length)) diff --git a/crates/metal2vulkan/tests/api_signatures.tsv b/crates/metal2vulkan/tests/api_signatures.tsv index bf688bbd3..cdc4a2007 100644 --- a/crates/metal2vulkan/tests/api_signatures.tsv +++ b/crates/metal2vulkan/tests/api_signatures.tsv @@ -8433,6 +8433,7 @@ method metal2vulkan-runtime::Device::fresh_pages_pay pub fn fresh_pages_pay(&sel method metal2vulkan-runtime::Device::from_raw pub unsafe fn from_raw(raw: RawDevice, policy: DevicePolicy) -> Result method metal2vulkan-runtime::Device::heap_buffer_size_and_align pub fn heap_buffer_size_and_align(&self, length: u64, _options: ResourceOptions) -> SizeAndAlign method metal2vulkan-runtime::Device::heap_texture_size_and_align pub fn heap_texture_size_and_align(&self, descriptor: &TextureDescriptor) -> Result +method metal2vulkan-runtime::Device::host_pages_texture_placement pub fn host_pages_texture_placement(&self, backing: HostBacking, descriptor: &TextureDescriptor, plane: IoSurfacePlane, start: u64, length: u64) -> Result method metal2vulkan-runtime::Device::host_range_remapped pub fn host_range_remapped(&self, bytes: NonNull, length: u64) method metal2vulkan-runtime::Device::identities_with pub fn identities_with(options: &DeviceOptions) -> Result, Error> method metal2vulkan-runtime::Device::imports_shared_host_pointers pub fn imports_shared_host_pointers(&self) -> Result @@ -12670,6 +12671,7 @@ variant metal2vulkan-runtime::Problem::ForeignObject ForeignObject variant metal2vulkan-runtime::Problem::FunctionTable FunctionTable(FunctionTableProblem) variant metal2vulkan-runtime::Problem::HandlerAfterCommit HandlerAfterCommit variant metal2vulkan-runtime::Problem::Heap Heap(HeapProblem) +variant metal2vulkan-runtime::Problem::HostPagesBacking HostPagesBacking variant metal2vulkan-runtime::Problem::HostRam HostRam variant metal2vulkan-runtime::Problem::ImageblockSize ImageblockSize { width: u64, height: u64 } variant metal2vulkan-runtime::Problem::IndexOutOfRange IndexOutOfRange { index: u32, limit: u32 } diff --git a/docs/REFUSALS.md b/docs/REFUSALS.md index 3bf33449b..5b7bbe03e 100644 --- a/docs/REFUSALS.md +++ b/docs/REFUSALS.md @@ -34,7 +34,7 @@ Columns: | Translation caps | 14 | 14 | 0 | 0 | 7 | 7 | 0 | | Rate maps the compile layer does not compile | 5 | 5 | 0 | 0 | 4 | 1 | 0 | | The translation deadline | 1 | 1 | 0 | 0 | 0 | 1 | 0 | -| What a call did wrong | 70 | 70 | 0 | 0 | 0 | 0 | 0 | +| What a call did wrong | 71 | 71 | 0 | 0 | 0 | 0 | 0 | | What a call did wrong, in detail | 168 | 151 | 0 | 0 | 0 | 0 | 0 | ## Totals by basis @@ -48,7 +48,7 @@ Columns: | Translation caps | 0 | 0 | 0 | 0 | 14 | 0 | 0 | 0 | | Rate maps the compile layer does not compile | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | | The translation deadline | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | -| What a call did wrong | 22 | 3 | 5 | 0 | 15 | 8 | 17 | 0 | +| What a call did wrong | 22 | 3 | 5 | 0 | 16 | 8 | 17 | 0 | | What a call did wrong, in detail | 60 | 26 | 23 | 0 | 33 | 26 | 0 | 0 | ## 1. Translator and front-end refusals (`Unsupported`: a `Feature` and its `Needs`) @@ -208,7 +208,7 @@ Columns: | `Render` | Render pipelines, passes and draws | every device (runtime piece not built) | `ours` | 27: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (check_copies)`, `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (stand_in_as, 2 sites)` (+19) | `system`: render pass, resolve and attachment forms not built (20 sites: see the appendix) | | `TexelsPastBufferLength` | A texture over a plane of a surface with planes whose rows or GPU texels run past the buffer standing for the surface, which Metal makes, of a... | every device (runtime piece not built) | `ours` | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)`, `crates/metal2vulkan-runtime/src/buffer_texture.rs (turned_plane)` (+1) | `rare`: a YCbCr, two-plane, 4:2:2, depth, BC or rotated texture over an IOSurface plane past its surface | | `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) | `ours` | 4: `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_texels_rows_copy)`, `crates/metal2vulkan-runtime/src/blit_texture.rs (buffer_into_texture)` (+2) | `rare`: an IOSurface plane whose rows overlap | -| `MemorylessSurfacePlane` | 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) | `ours` | 2: `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)`, `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)` | `rare`: a memoryless texture over an IOSurface plane | +| `MemorylessSurfacePlane` | 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) | `ours` | 2: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)`, `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)` | `rare`: a memoryless texture over an IOSurface plane | | `SurfacePlaneShape` | A texture over a plane of an IOSurface with planes (`Buffer::new_texture_with_iosurface_plane`, the stand-in for... | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)` | `rare`: a texture over an IOSurface plane past one 2D image of its rows, or a BC one of 16-byte blocks off 16 | | `IndirectCommandPastSize` | A command of an indirect command buffer at or past its size (`indirectComputeCommandAtIndex:`, `indirectRenderCommandAtIndex:`) | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (command_at)` | `none`: an indirect command at or past the buffer's size | | `ExecutionRangePastBuffer` | An `MTLIndirectCommandBufferExecutionRange` whose 8 bytes run past the buffer it is read from (`execute_commands_in_buffer_indirect`, a compute... | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/indirect_execute.rs (check_range_buffer)` | `rare`: an execution range whose 8 bytes run past its buffer | @@ -257,7 +257,7 @@ Columns: | `WideLines` | A line or triangle strip at a width other than 1 (Apple's `setLineWidth:`), the triangle strip in fill mode `Lines`, drawn as the band variant... | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/render/restart.rs (gap)` | `none`: under the Apple-private setLineWidth: at a width other than 1, a line strip drawn as the band whose list of segments the runtime cannot draw (past what a u32 counts or one storage range binds, or indices an unordered draw wrote) | | `PrimitiveIdIndices` | An indexed draw (`drawIndexedPrimitives:`) of a pipeline whose fragment function reads `[[primitive_id]]` on a device whose fragment stage cannot... | every device (runtime piece not built) | `ours` | 1: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)` | `rare`: an indexed draw of a primitive_id pipeline, on a device without geometry or tessellation shaders, whose indices the encoder wrote since its last barrier | | `RotatedTexture` | A rotated texture (`TextureDescriptor::rotation`) where the runtime does not build what Metal does | every device (runtime piece not built) | `ours` | 8: `crates/metal2vulkan-runtime/src/buffer_texture.rs (turned_plane)`, `crates/metal2vulkan-runtime/src/rotated.rs (new, 2 sites)` (+5) | `rare`: a rotated drawable's views, 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) | `ours` | 7: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`, `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)` (+4) | `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) | `ours` | 7: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`, `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)` (+4) | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `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) | `ours` | 1: `crates/metal2vulkan-runtime/src/texture.rs (refuse_detached_texels)` | `none`: CPU texel access while a runtime extension detached the bytes | @@ -339,6 +339,7 @@ Columns: | `ForeignObject` | An object made by another device | every device (a public call's own check of its arguments) | `unknown`: Metal's answer for an object another device made is unmeasured | 1: `crates/metal2vulkan-runtime/src/device/line.rs (foreign)` | `-` | | `DmaBuf` | Dma-bufs a `DmaBufSource` returned (a runtime extension | every device (a public call's own check of its arguments) | `ours`: a runtime extension's own contract: Metal imports no dma-buf | 3: `crates/metal2vulkan-runtime/src/dma_buf.rs (import_from_source)`, `crates/metal2vulkan-runtime/src/dma_buf.rs (ram_runs_as_dma_buf)` (+1) | `-` | | `HostRam` | Guest RAM, or a run resolver's answer, that breaks its runtime extension's contract (`HostRam::new`, `Device::use_host_ram`,... | every device (a public call's own check of its arguments) | `ours`: a runtime extension's own contract: Metal imports no guest RAM | 5: `crates/metal2vulkan-runtime/src/host_ram.rs (new)`, `crates/metal2vulkan-runtime/src/host_ram.rs (ram_use_on)` (+3) | `-` | +| `HostPagesBacking` | A placement asked of host pages not imported yet (`Device::host_pages_texture_placement`, a runtime extension) for a backing other than... | every device (a public call's own check of its arguments) | `ours`: a runtime extension's own contract: Metal has no such query | 1: `crates/metal2vulkan-runtime/src/buffer_texture.rs (host_pages_texture_placement_now)` | `-` | | `WrappedImage` | An image the caller made that cannot be wrapped as a texture of the descriptor (`new_texture_with_vk_image`) | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal wraps no Vulkan image | 2: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)`, `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image_plane)` | `-` | | `NotShareable` | A handle of a texture that is not shareable, for which Metal answers nil, an [`Error::Nil`] | every device (a public call's own check of its arguments) | `unknown`: Metal's nil for a texture that is not shareable is unmeasured | 1: `crates/metal2vulkan-runtime/src/texture/shared.rs (new_shared_texture_handle)` | `-` | | `Semaphore` | A semaphore that cannot be one of the caller's binary semaphores | every device (a public call's own check of its arguments) | `ours`: a runtime extension: Metal has no binary semaphores | 1: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (binary_command)` | `-` | @@ -350,7 +351,7 @@ Columns: | `ImageblockSize` | An imageblock size of more than 1024 cells over more than one row and column, or with a side past 65536, at a compute encoder's... | every device (a public call's own check of its arguments) | `unknown`: plain Metal is held to run the compute form, and the indirect form rests on Metal's API validation; neither measured on a named device | 3: `crates/metal2vulkan-runtime/src/compute.rs (imageblock_size, 2 sites)`, `crates/metal2vulkan-runtime/src/compute.rs (validated_imageblock_size)` | `-` | | `EmptyThreadgroup` | A tile dispatch's threadgroup with no threads along an axis (a compute dispatch of one runs nothing, as plain Metal's) | every device (a public call's own check of its arguments) | `unknown`: Metal's answer for a tile dispatch of no threads along an axis is unmeasured | 1: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)` | `-` | | `SizeOutOfRange` | A size past what the call can state | every device (a public call's own check of its arguments) | `unknown`: Metal's answer for a tile dispatch's or mesh draw's axis past 32 bits is unmeasured | 2: `crates/metal2vulkan-runtime/src/render/mesh.rs`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)` | `-` | -| `BufferLength` | A buffer of no bytes, or more than the device can hold in one | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max: newBufferWithLength:0 answers nil | 15: `crates/metal2vulkan-runtime/src/buffer.rs (buffer_of_length)`, `crates/metal2vulkan-runtime/src/buffer.rs (fresh_pages_check_buffer)` (+12) | `-` | +| `BufferLength` | A buffer of no bytes, or more than the device can hold in one | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max: newBufferWithLength:0 answers nil | 16: `crates/metal2vulkan-runtime/src/buffer.rs (buffer_of_length)`, `crates/metal2vulkan-runtime/src/buffer.rs (fresh_pages_check_buffer)` (+13) | `-` | | `UndefinedValue` | A raw value Metal does not define for this type | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max: setPurgeableState:99, a value MTLPurgeableState does not define, answers 2, and neither plain Metal nor its API validation refuses it | 8: `crates/metal2vulkan-runtime/src/attributes.rs (from_raw)`, `crates/metal2vulkan-runtime/src/degradation.rs (refuse_private_bit)` (+5) | `-` | | `StorageMode` | A storage mode this call does not take (`Memoryless` for a buffer, for one) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max: a buffer of the Memoryless mode asserts "Invalid storageMode", the API validation layer off | 15: `crates/metal2vulkan-runtime/src/argument_encoder.rs (target)`, `crates/metal2vulkan-runtime/src/buffer.rs (buffer_class)` (+13) | `-` | | `HandlerAfterCommit` | A handler added after the command buffer was committed | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "Completed handler provided after commit call" | 5: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_completed_handler)`, `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_completion_seen_handler)` (+3) | `-` | @@ -362,7 +363,7 @@ Columns: | `RangeOutOfBounds` | `offset..offset + size` runs past a resource of `length` bytes | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: didModifyRange of 0+512 and of 240+64 on a buffer of 256 bytes both return; Metal's API validation alone refuses them | 4: `crates/metal2vulkan-runtime/src/argument_encoder.rs (target_offset)`, `crates/metal2vulkan-runtime/src/blit.rs (out_of_bounds)` (+2) | `-` | | `ShaderCacheCapacity` | A shader cache capacity, on disk or in memory, of zero | every device (a public call's own check of its arguments) | `ours`: this crate's shader caches: Metal exposes no capacity | 1: `crates/metal2vulkan-runtime/src/shader_cache/mod.rs (of)` | `-` | | `MaxCommandBufferCount` | A command queue's `maxCommandBufferCount` of zero | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max: Metal's command queue creation asserts "invalid descriptor.maxCommandBufferCount value 0", with and without API validation | 2: `crates/metal2vulkan-runtime/src/queue.rs (new_command_queue_unshared_now)`, `crates/metal2vulkan-runtime/src/queue.rs (new_command_queue_with_max_command_buffer_count_now)` | `-` | -| `Texture` | A texture descriptor Metal stops (`Invalid`), or plain Metal answers nil for (`Nil`) | every device (a public call's own check of its arguments) | `delegated`: TextureProblem, section 9 | 7: `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)`, `crates/metal2vulkan-runtime/src/texture.rs (image_error)` (+3) | `-` | +| `Texture` | A texture descriptor Metal stops (`Invalid`), or plain Metal answers nil for (`Nil`) | every device (a public call's own check of its arguments) | `delegated`: TextureProblem, section 9 | 7: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`, `crates/metal2vulkan-runtime/src/texture.rs (image_error)` (+3) | `-` | | `TextureView` | A texture view Metal stops, or a use of a texture its usage does not allow | every device (a public call's own check of its arguments) | `delegated`: ViewProblem, section 9 | 6: `crates/metal2vulkan-runtime/src/texture.rs (subview, 2 sites)`, `crates/metal2vulkan-runtime/src/texture.rs (view_as, 2 sites)` (+1) | `-` | | `Copy` | A texture copy Metal stops | every device (a public call's own check of its arguments) | `delegated`: CopyProblem, section 9 | 25: `crates/metal2vulkan-runtime/src/blit_texture.rs (buffer_into_texture)`, `crates/metal2vulkan-runtime/src/blit_texture.rs (check_slice_level)` (+17) | `-` | | `Mipmap` | A `generate_mipmaps` Metal stops | every device (a public call's own check of its arguments) | `delegated`: MipmapProblem, section 9 | 1: `crates/metal2vulkan-runtime/src/blit_texture.rs (mipmaps)` | `-` | @@ -435,13 +436,13 @@ Columns: | `TextureProblem::ExtentOverflow` | An extent or count past what any device can hold (`u32`) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "has width (4294967296) greater than the maximum allowed size of 16384" | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` | | `TextureProblem::TypeForFormat` | A texture type the pixel format does not take | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal asserts "depth/stencil pixel formats require texture type of `MTLTextureType2D[Array]` or `MTLTextureTypeCube[Array]`" for a depth texture buffer, and the same for a compressed one | 7: `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture)`, `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)` (+2) | `-` | | `TextureProblem::ViewOnlyFormat` | `X24_Stencil8` | every device (a public call's own check of its arguments) | `unknown`: whether plain Metal makes a texture of `X24_Stencil8` from a descriptor is unmeasured: an Apple GPU's Metal describes none of that format, so `NotAFormat` answers there first | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (type_for_format)` | `-` | -| `TextureProblem::ExtentForFormat` | An extent the pixel format does not take | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a PVRTC texture that is not square and for a 4:2:2 texture of odd width is unmeasured; the odd two-plane render target's nil is the one measured part | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)`, `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` (+1) | `-` | +| `TextureProblem::ExtentForFormat` | An extent the pixel format does not take | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a PVRTC texture that is not square and for a 4:2:2 texture of odd width is unmeasured; the odd two-plane render target's nil is the one measured part | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`, `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` (+1) | `-` | | `TextureProblem::UsageForFormat` | A usage the pixel format does not take | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M4, macOS 27.0.1: plain Metal's descriptor validation asserts over `ShaderAtomic` of an extended-range format | 3: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 3 sites)` | `-` | | `TextureProblem::Unspecialized` | `Unspecialized`, of which Metal makes no texture, an [`Error::Nil`] | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 26.7: plain Metal answers nil for a texture of `Unspecialized` in every storage mode and usage, as the consumer reported | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` | | `TextureProblem::Rotation` | A rotation past 4 (Metal's descriptor validation asserts, plain too) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal's descriptor validation ends the process, SIGABRT, "rotation is not a valid MTLTextureRotation", at `heapTextureSizeAndAlignWithDescriptor:` and at `newTextureWithDescriptor:iosurface:plane:` of a rotation of 5, where a rotation of 4 beside it answers a size and makes the texture, the API validation layer off | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` | | `TextureProblem::RotationWithoutFramebufferOnly` | A rotation other than 0 without `framebuffer_only` (Metal's descriptor validation asserts, plain too) | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal's descriptor validation ends the process, SIGABRT, "MTLTextureDescriptor has a non-zero rotation set but is not marked as framebufferOnly", for a rotation of 1 without it, where a rotation of 0 without it answers a size and a rotation of 1 with it makes the texture, the API validation layer off | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` | -| `TextureProblem::FramebufferOnly` | `framebuffer_only` for a creator that makes no such texture | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "framebufferOnly == NO" | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)`, `crates/metal2vulkan-runtime/src/texture.rs (texture_as)` (+1) | `-` | -| `TextureProblem::NoTextureOfFormat` | A format of which Metal makes no texture from a descriptor alone | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M4, macOS 27.0.1, and an M3 Max under 26.7: plain Metal answers nil from the device, a heap and a buffer, for every texture type the format takes | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)`, `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)` | `-` | +| `TextureProblem::FramebufferOnly` | `framebuffer_only` for a creator that makes no such texture | every device (a public call's own check of its arguments) | `metal-documented`: Metal asserts "framebufferOnly == NO" | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`, `crates/metal2vulkan-runtime/src/texture.rs (texture_as)` (+1) | `-` | +| `TextureProblem::NoTextureOfFormat` | A format of which Metal makes no texture from a descriptor alone | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M4, macOS 27.0.1, and an M3 Max under 26.7: plain Metal answers nil from the device, a heap and a buffer, for every texture type the format takes | 3: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`, `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)` | `-` | | `TextureProblem::PastLargestSide` | A width, height or depth past the largest side Metal makes the type with, `max` | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal asserts "MTLTextureDescriptor has width (16385) greater than the maximum allowed size of 16384", the layer off, where the side itself is made | 1: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` | `-` | | `ViewProblem::NotAFormat` | [`PixelFormat::Invalid`] or [`PixelFormat::Unspecialized`] | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 26.7: plain Metal makes no such view and answers nil, as the consumer reported | 1: `crates/metal2vulkan-runtime/src/view_plan.rs (check_format)` | `-` | | `ViewProblem::FormatIncompatible` | A format Metal never views the texture's as | every device (a public call's own check of its arguments) | `metal-documented`: Metal aborts "source texture pixelFormat not compatible with texture view pixelFormat" | 5: `crates/metal2vulkan-runtime/src/texture.rs (view_as)`, `crates/metal2vulkan-runtime/src/view_plan.rs (check_format, 4 sites)` | `-` | @@ -616,7 +617,7 @@ Each refusal's sites, with the function that builds it. - `feature::BufferRange`: `crates/metal2vulkan-runtime/src/function_table.rs (past_storage_buffer_range)`; `crates/metal2vulkan/src/bind/graphics.rs (patch_binding, 3 sites)`; `crates/metal2vulkan/src/bind/graphics.rs (rebind_with)`; `crates/metal2vulkan/src/bind/instantiate.rs (bind_buffers)`; `crates/metal2vulkan/src/lower/access/function_table.rs (select)`; `crates/metal2vulkan/src/lower/access/mod.rs (place_slots)` - `feature::Int64Arithmetic`: `crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar)`; `crates/metal2vulkan/src/lower/select.rs (selector_form)` - `feature::Float64Arithmetic`: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`; `crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar)` -- `feature::Format`: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view)`; `crates/metal2vulkan-runtime/src/blit_fill.rs (fill)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (check_formats, 3 sites)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (pair_unit)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_levels_copy)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (through_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over, 3 sites)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (texture_buffer_texel)`; `crates/metal2vulkan-runtime/src/color_resolve.rs (of_attachment)`; `crates/metal2vulkan-runtime/src/copy_plan.rs (colour_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs (copy_unit, 2 sites)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (usable_twin)`; `crates/metal2vulkan-runtime/src/families/features.rs (read_write_tier)`; `crates/metal2vulkan-runtime/src/families/formats.rs (answers, 3 sites)`; `crates/metal2vulkan-runtime/src/families/formats.rs (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs (lacking)`; `crates/metal2vulkan-runtime/src/families/formats.rs (none)`; `crates/metal2vulkan-runtime/src/families/formats.rs (probe, 2 sites)`; `crates/metal2vulkan-runtime/src/families/formats.rs (sparse_missing)`; `crates/metal2vulkan-runtime/src/families/formats.rs (unsupported)`; `crates/metal2vulkan-runtime/src/image_plan.rs (plan_held, 3 sites)`; `crates/metal2vulkan-runtime/src/render.rs (viewing)`; `crates/metal2vulkan-runtime/src/render_pass.rs (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs (check_target)`; `crates/metal2vulkan-runtime/src/render_pass.rs (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs (target)`; `crates/metal2vulkan-runtime/src/resolve.rs (unmodelled_resolve)`; `crates/metal2vulkan-runtime/src/sample_copy.rs (checked_twin)`; `crates/metal2vulkan-runtime/src/sample_copy.rs (plan)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs (interleave_merge)`; `crates/metal2vulkan-runtime/src/shadow.rs (unmerged, 2 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture.rs (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs (two_planes_refused)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs (astc_texels)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs (etc_texels)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs (with_decoded_twin)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs (refused)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (converted_storage)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (new_render_shadow)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (ycbcr_write_shadow)`; `crates/metal2vulkan-runtime/src/two_planes.rs (unmeasured)`; `crates/metal2vulkan-runtime/src/view_plan.rs (check_format, 5 sites)`; `crates/metal2vulkan-runtime/src/ycbcr.rs (refused)`; `crates/metal2vulkan/src/bind/extended_shadow.rs (extended_shadow_module)`; `crates/metal2vulkan/src/bind/plan/resources.rs (extended_sampler)`; `crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture, 2 sites)`; `crates/metal2vulkan/src/bind/plan/resources.rs (require_filter_features)`; `crates/metal2vulkan/src/bind/sample_interleave.rs (finish)`; `crates/metal2vulkan/src/bind/sample_interleave.rs (interleave_split_module)`; `crates/metal2vulkan/src/bind/shadow_copy_in.rs (shadow_copy_in_module)`; `crates/metal2vulkan/src/lower/access/tile.rs (storage_format)`; `crates/metal2vulkan/src/lower/fragment/color.rs (select_param, 3 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (extended_range_blend, 5 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (select_output, 3 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (select_read)`; `crates/metal2vulkan/src/lower/fragment/input_blend.rs (rotated)`; `crates/metal2vulkan/src/lower/sampler/select.rs (select_extended)`; `crates/metal2vulkan/src/lower/sampler/select.rs (texel_in)`; `crates/metal2vulkan/src/lower/stage_io/extended_color.rs (plan)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (entry)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (zeroed_output)`; `crates/metal2vulkan/src/lower/stage_io/word_color.rs (plan)`; `crates/metal2vulkan/src/lower/texture/mod.rs (cross_class)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_image)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_read_as, 2 sites)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_write)`; `crates/metal2vulkan/src/lower/texture/slot.rs (atomic_format, 2 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (declare_slot, 3 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (storage_format, 5 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (ulong_format, 3 sites)`; `crates/metal2vulkan/src/metal/format/mod.rs (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs (held_storage_choice, 3 sites)`; `crates/metal2vulkan/src/metal/format/mod.rs (storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs (vk_format, 2 sites)`; `crates/metal2vulkan/src/pipeline/color_writes.rs (rotated_blend_in_shader)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (extended_write_mask, 2 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state, 2 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (reads_alpha_to_coverage, 2 sites)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs (alpha_in_red_blend)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs (rotated_blend)` +- `feature::Format`: `crates/metal2vulkan-runtime/src/binding_view.rs (binding_view)`; `crates/metal2vulkan-runtime/src/blit_fill.rs (fill)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (check_formats, 3 sites)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (pair_unit)`; `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_levels_copy)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (through_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over, 3 sites)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (texture_buffer_texel)`; `crates/metal2vulkan-runtime/src/color_resolve.rs (of_attachment)`; `crates/metal2vulkan-runtime/src/copy_plan.rs (colour_unit)`; `crates/metal2vulkan-runtime/src/copy_plan.rs (copy_unit, 2 sites)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (scratch)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (usable_twin)`; `crates/metal2vulkan-runtime/src/families/features.rs (read_write_tier)`; `crates/metal2vulkan-runtime/src/families/formats.rs (answers, 3 sites)`; `crates/metal2vulkan-runtime/src/families/formats.rs (atomic_gap)`; `crates/metal2vulkan-runtime/src/families/formats.rs (lacking)`; `crates/metal2vulkan-runtime/src/families/formats.rs (none)`; `crates/metal2vulkan-runtime/src/families/formats.rs (probe, 2 sites)`; `crates/metal2vulkan-runtime/src/families/formats.rs (sparse_missing)`; `crates/metal2vulkan-runtime/src/families/formats.rs (unsupported)`; `crates/metal2vulkan-runtime/src/image_plan.rs (plan_held, 3 sites)`; `crates/metal2vulkan-runtime/src/render.rs (viewing)`; `crates/metal2vulkan-runtime/src/render_pass.rs (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs (check_target)`; `crates/metal2vulkan-runtime/src/render_pass.rs (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs (target)`; `crates/metal2vulkan-runtime/src/resolve.rs (unmodelled_resolve)`; `crates/metal2vulkan-runtime/src/sample_copy.rs (checked_twin)`; `crates/metal2vulkan-runtime/src/sample_copy.rs (plan)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs (interleave_merge)`; `crates/metal2vulkan-runtime/src/shadow.rs (unmerged, 2 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture.rs (texture_as)`; `crates/metal2vulkan-runtime/src/texture.rs (two_planes_refused)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs (astc_texels)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs (etc_texels)`; `crates/metal2vulkan-runtime/src/texture/decoded_twin.rs (with_decoded_twin)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs (refused)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (converted_storage)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (new_render_shadow)`; `crates/metal2vulkan-runtime/src/texture/ycbcr_image.rs (ycbcr_write_shadow)`; `crates/metal2vulkan-runtime/src/two_planes.rs (unmeasured)`; `crates/metal2vulkan-runtime/src/view_plan.rs (check_format, 5 sites)`; `crates/metal2vulkan-runtime/src/ycbcr.rs (refused)`; `crates/metal2vulkan/src/bind/extended_shadow.rs (extended_shadow_module)`; `crates/metal2vulkan/src/bind/plan/resources.rs (extended_sampler)`; `crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture, 2 sites)`; `crates/metal2vulkan/src/bind/plan/resources.rs (require_filter_features)`; `crates/metal2vulkan/src/bind/sample_interleave.rs (finish)`; `crates/metal2vulkan/src/bind/sample_interleave.rs (interleave_split_module)`; `crates/metal2vulkan/src/bind/shadow_copy_in.rs (shadow_copy_in_module)`; `crates/metal2vulkan/src/lower/access/tile.rs (storage_format)`; `crates/metal2vulkan/src/lower/fragment/color.rs (select_param, 3 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (extended_range_blend, 5 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (select_output, 3 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (select_read)`; `crates/metal2vulkan/src/lower/fragment/input_blend.rs (rotated)`; `crates/metal2vulkan/src/lower/sampler/select.rs (select_extended)`; `crates/metal2vulkan/src/lower/sampler/select.rs (texel_in)`; `crates/metal2vulkan/src/lower/stage_io/extended_color.rs (plan)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (entry)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (zeroed_output)`; `crates/metal2vulkan/src/lower/stage_io/word_color.rs (plan)`; `crates/metal2vulkan/src/lower/texture/mod.rs (cross_class)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_image)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_read_as, 2 sites)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_write)`; `crates/metal2vulkan/src/lower/texture/slot.rs (atomic_format, 2 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (declare_slot, 3 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (storage_format, 5 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (ulong_format, 3 sites)`; `crates/metal2vulkan/src/metal/format/mod.rs (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs (held_storage_choice, 3 sites)`; `crates/metal2vulkan/src/metal/format/mod.rs (storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs (vk_format, 2 sites)`; `crates/metal2vulkan/src/pipeline/color_writes.rs (rotated_blend_in_shader)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (extended_write_mask, 2 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state, 2 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (reads_alpha_to_coverage, 2 sites)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs (alpha_in_red_blend)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs (rotated_blend)` - `feature::DivergentImplicitLod`: `crates/metal2vulkan/src/lower/sampler/select.rs (tangled)` - `feature::ImplicitLodOutsideFragment`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (query_min_level)`; `crates/metal2vulkan/src/lower/sampler/select.rs (query_level_measured)`; `crates/metal2vulkan/src/lower/sampler/select.rs (query_min_level)` - `feature::MinLodClamp`: `crates/metal2vulkan/src/lower/sampler/select.rs (min_lod)`; `crates/metal2vulkan/src/lower/sampler/select.rs (select_one)` @@ -727,7 +728,7 @@ Each refusal's sites, with the function that builds it. - `gap::Render`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (check_copies)`; `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (stand_in_as, 2 sites)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (attachment_twin)`; `crates/metal2vulkan-runtime/src/color_resolve.rs (of_resolve)`; `crates/metal2vulkan-runtime/src/color_resolve.rs (plan, 2 sites)`; `crates/metal2vulkan-runtime/src/depth_stencil_scratch.rs (check_sizes)`; `crates/metal2vulkan-runtime/src/kept_bytes.rs (settle, 2 sites)`; `crates/metal2vulkan-runtime/src/linear_attachment.rs (settle)`; `crates/metal2vulkan-runtime/src/pipeline/render.rs (imageblock_sample_length)`; `crates/metal2vulkan-runtime/src/render.rs (check_pipeline)`; `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`; `crates/metal2vulkan-runtime/src/render.rs (next_instance)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (scratch)`; `crates/metal2vulkan-runtime/src/render_pass.rs (attachment_format)`; `crates/metal2vulkan-runtime/src/render_pass.rs (depth_stencil)`; `crates/metal2vulkan-runtime/src/render_pass.rs (layout)`; `crates/metal2vulkan-runtime/src/render_pass.rs (target, 2 sites)`; `crates/metal2vulkan-runtime/src/resolve.rs (attach)`; `crates/metal2vulkan-runtime/src/resolve.rs (color_copy)`; `crates/metal2vulkan-runtime/src/resolve.rs (destination, 3 sites)`; `crates/metal2vulkan-runtime/src/resolve.rs (keep_samples)` - `gap::TexelsPastBufferLength`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (turned_plane)`; `crates/metal2vulkan-runtime/src/texture/surface_depth.rs (surface_depth_twin)` - `gap::OverlappingSurfaceRows`: `crates/metal2vulkan-runtime/src/blit_plan.rs (plan_texels_rows_copy)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (buffer_into_texture)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (texel_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)` -- `gap::MemorylessSurfacePlane`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)` +- `gap::MemorylessSurfacePlane`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)` - `gap::SurfacePlaneShape`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (refusal_error)` - `gap::IndirectCommandPastSize`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (command_at)` - `gap::ExecutionRangePastBuffer`: `crates/metal2vulkan-runtime/src/indirect_execute.rs (check_range_buffer)` @@ -776,7 +777,7 @@ Each refusal's sites, with the function that builds it. - `gap::WideLines`: `crates/metal2vulkan-runtime/src/render/restart.rs (gap)` - `gap::PrimitiveIdIndices`: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)` - `gap::RotatedTexture`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (turned_plane)`; `crates/metal2vulkan-runtime/src/rotated.rs (new, 2 sites)`; `crates/metal2vulkan-runtime/src/shadow.rs (unmerged)`; `crates/metal2vulkan-runtime/src/texture.rs (view_as)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs (check_rotated_reach)`; `crates/metal2vulkan-runtime/src/texture/rotation.rs (copied_image)`; `crates/metal2vulkan-runtime/src/texture/usage_shadow.rs (new_usage_shadow)` -- `gap::DetachTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)`; `crates/metal2vulkan-runtime/src/detach.rs (detach_host_pages)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs (new_stand_in)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs (stand_in_while_detached)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs (stand_ins, 2 sites)` +- `gap::DetachTextures`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`; `crates/metal2vulkan-runtime/src/detach.rs (detach_host_pages)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs (new_stand_in)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs (stand_in_while_detached)`; `crates/metal2vulkan-runtime/src/texture/stand_in.rs (stand_ins, 2 sites)` - `gap::TextureBufferLevels`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` - `gap::WriteSwizzle`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` - `gap::DetachedTexelAccess`: `crates/metal2vulkan-runtime/src/texture.rs (refuse_detached_texels)` @@ -828,6 +829,7 @@ Each refusal's sites, with the function that builds it. - `invalid::ForeignObject`: `crates/metal2vulkan-runtime/src/device/line.rs (foreign)` - `invalid::DmaBuf`: `crates/metal2vulkan-runtime/src/dma_buf.rs (import_from_source)`; `crates/metal2vulkan-runtime/src/dma_buf.rs (ram_runs_as_dma_buf)`; `crates/metal2vulkan-runtime/src/dma_buf.rs (ram_span_as_dma_buf)` - `invalid::HostRam`: `crates/metal2vulkan-runtime/src/host_ram.rs (new)`; `crates/metal2vulkan-runtime/src/host_ram.rs (ram_use_on)`; `crates/metal2vulkan-runtime/src/host_ram.rs (route_runs)`; `crates/metal2vulkan-runtime/src/host_ram/copy.rs (record_host_ram_copy)`; `crates/metal2vulkan-runtime/src/host_ram/copy.rs (record_regions)` +- `invalid::HostPagesBacking`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (host_pages_texture_placement_now)` - `invalid::WrappedImage`: `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)`; `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image_plane)` - `invalid::NotShareable`: `crates/metal2vulkan-runtime/src/texture/shared.rs (new_shared_texture_handle)` - `invalid::Semaphore`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (binary_command)` @@ -839,7 +841,7 @@ Each refusal's sites, with the function that builds it. - `invalid::ImageblockSize`: `crates/metal2vulkan-runtime/src/compute.rs (imageblock_size, 2 sites)`; `crates/metal2vulkan-runtime/src/compute.rs (validated_imageblock_size)` - `invalid::EmptyThreadgroup`: `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)` - `invalid::SizeOutOfRange`: `crates/metal2vulkan-runtime/src/render/mesh.rs`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)` -- `invalid::BufferLength`: `crates/metal2vulkan-runtime/src/buffer.rs (buffer_of_length)`; `crates/metal2vulkan-runtime/src/buffer.rs (fresh_pages_check_buffer)`; `crates/metal2vulkan-runtime/src/buffer.rs (placed_new_buffer)`; `crates/metal2vulkan-runtime/src/buffer.rs (pooled_check_buffer)`; `crates/metal2vulkan-runtime/src/buffer.rs (unzeroed_buffer_with)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (buffer_over_host_parts)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (copied_buffer)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (host_window)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (one_copy_buffer)`; `crates/metal2vulkan-runtime/src/exported_memory.rs (exportable_buffer, 2 sites)`; `crates/metal2vulkan-runtime/src/heap.rs (check_length)`; `crates/metal2vulkan-runtime/src/heap.rs (new_buffer)`; `crates/metal2vulkan-runtime/src/managed_copy.rs (two_copy_buffer)`; `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (new_buffer_with_vk_buffer)` +- `invalid::BufferLength`: `crates/metal2vulkan-runtime/src/buffer.rs (buffer_of_length)`; `crates/metal2vulkan-runtime/src/buffer.rs (fresh_pages_check_buffer)`; `crates/metal2vulkan-runtime/src/buffer.rs (placed_new_buffer)`; `crates/metal2vulkan-runtime/src/buffer.rs (pooled_check_buffer)`; `crates/metal2vulkan-runtime/src/buffer.rs (unzeroed_buffer_with)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (buffer_over_host_parts)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (copied_buffer)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (host_window)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (one_copy_buffer)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (host_pages_texture_placement_now)`; `crates/metal2vulkan-runtime/src/exported_memory.rs (exportable_buffer, 2 sites)`; `crates/metal2vulkan-runtime/src/heap.rs (check_length)`; `crates/metal2vulkan-runtime/src/heap.rs (new_buffer)`; `crates/metal2vulkan-runtime/src/managed_copy.rs (two_copy_buffer)`; `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (new_buffer_with_vk_buffer)` - `invalid::UndefinedValue`: `crates/metal2vulkan-runtime/src/attributes.rs (from_raw)`; `crates/metal2vulkan-runtime/src/degradation.rs (refuse_private_bit)`; `crates/metal2vulkan-runtime/src/heap.rs (from_raw)`; `crates/metal2vulkan-runtime/src/render_values.rs (undefined)`; `crates/metal2vulkan-runtime/src/sparse/mod.rs (undefined)`; `crates/metal2vulkan-runtime/src/values.rs (undefined)`; `crates/metal2vulkan-runtime/src/visibility.rs (from_raw, 2 sites)` - `invalid::StorageMode`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (target)`; `crates/metal2vulkan-runtime/src/buffer.rs (buffer_class)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (one_copy_buffer)`; `crates/metal2vulkan-runtime/src/heap.rs (heap_with_token)`; `crates/metal2vulkan-runtime/src/heap.rs (new_sparse_heap)`; `crates/metal2vulkan-runtime/src/heap.rs (no_copy_heap_with_token)`; `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (new_indirect_command_buffer_now)`; `crates/metal2vulkan-runtime/src/rate_map.rs (copy_parameter_data_to_buffer)`; `crates/metal2vulkan-runtime/src/texture.rs (check_viewable)`; `crates/metal2vulkan-runtime/src/texture.rs (host_copy)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (heap_layout)`; `crates/metal2vulkan-runtime/src/texture/shared.rs (new_shared_texture_now)`; `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image)`; `crates/metal2vulkan-runtime/src/texture/wrapped.rs (new_texture_with_vk_image_plane)`; `crates/metal2vulkan-runtime/src/wrapped_buffer.rs (new_buffer_with_vk_buffer)` - `invalid::HandlerAfterCommit`: `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_completed_handler)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_completion_seen_handler)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_scheduled_handler)`; `crates/metal2vulkan-runtime/src/command_buffer/mod.rs (add_submission_handler)`; `crates/metal2vulkan-runtime/src/executed_commands.rs (add_executed_commands_handler)` @@ -851,7 +853,7 @@ Each refusal's sites, with the function that builds it. - `invalid::RangeOutOfBounds`: `crates/metal2vulkan-runtime/src/argument_encoder.rs (target_offset)`; `crates/metal2vulkan-runtime/src/blit.rs (out_of_bounds)`; `crates/metal2vulkan-runtime/src/managed.rs (did_modify_range)`; `crates/metal2vulkan-runtime/src/rate_map.rs (copy_parameter_data_to_buffer)` - `invalid::ShaderCacheCapacity`: `crates/metal2vulkan-runtime/src/shader_cache/mod.rs (of)` - `invalid::MaxCommandBufferCount`: `crates/metal2vulkan-runtime/src/queue.rs (new_command_queue_unshared_now)`; `crates/metal2vulkan-runtime/src/queue.rs (new_command_queue_with_max_command_buffer_count_now)` -- `invalid::Texture`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)`; `crates/metal2vulkan-runtime/src/texture.rs (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs (texture_as)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture, 2 sites)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (error, 2 sites)` +- `invalid::Texture`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`; `crates/metal2vulkan-runtime/src/texture.rs (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs (texture_as)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture, 2 sites)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (error, 2 sites)` - `invalid::TextureView`: `crates/metal2vulkan-runtime/src/texture.rs (subview, 2 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (view_as, 2 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (view_error, 2 sites)` - `invalid::Copy`: `crates/metal2vulkan-runtime/src/blit_texture.rs (buffer_into_texture)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (check_slice_level)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (copy_error)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (copy_from_texture_to_buffer)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (copy_texture_slices)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (multisampled_region)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (plan_copy, 2 sites)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (plane_copy)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (region)`; `crates/metal2vulkan-runtime/src/blit_texture.rs (texel_copies)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (bytes)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (past_runs)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (write_past)`; `crates/metal2vulkan-runtime/src/sample_interleave.rs (plan, 2 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (copy_error)`; `crates/metal2vulkan-runtime/src/texture.rs (get_bytes)`; `crates/metal2vulkan-runtime/src/texture.rs (host_copy, 5 sites)`; `crates/metal2vulkan-runtime/src/texture.rs (replace)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (contents)` - `invalid::Mipmap`: `crates/metal2vulkan-runtime/src/blit_texture.rs (mipmaps)` @@ -907,13 +909,13 @@ Each refusal's sites, with the function that builds it. - `subproblem::TextureProblem::ExtentOverflow`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` - `subproblem::TextureProblem::TypeForFormat`: `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (type_for_format, 2 sites)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (type_refused, 2 sites)` - `subproblem::TextureProblem::ViewOnlyFormat`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (type_for_format)` -- `subproblem::TextureProblem::ExtentForFormat`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (extent_for_format)` +- `subproblem::TextureProblem::ExtentForFormat`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (extent_for_format)` - `subproblem::TextureProblem::UsageForFormat`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 3 sites)` - `subproblem::TextureProblem::Unspecialized`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` - `subproblem::TextureProblem::Rotation`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` - `subproblem::TextureProblem::RotationWithoutFramebufferOnly`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` -- `subproblem::TextureProblem::FramebufferOnly`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)`; `crates/metal2vulkan-runtime/src/texture.rs (texture_as)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture)` -- `subproblem::TextureProblem::NoTextureOfFormat`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (make_texture_over)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)` +- `subproblem::TextureProblem::FramebufferOnly`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`; `crates/metal2vulkan-runtime/src/texture.rs (texture_as)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (planned_heap_texture)` +- `subproblem::TextureProblem::NoTextureOfFormat`: `crates/metal2vulkan-runtime/src/buffer_texture.rs (shape_over)`; `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made, 2 sites)` - `subproblem::TextureProblem::PastLargestSide`: `crates/metal2vulkan-runtime/src/texture_descriptor.rs (check_made)` - `subproblem::ViewProblem::NotAFormat`: `crates/metal2vulkan-runtime/src/view_plan.rs (check_format)` - `subproblem::ViewProblem::FormatIncompatible`: `crates/metal2vulkan-runtime/src/texture.rs (view_as)`; `crates/metal2vulkan-runtime/src/view_plan.rs (check_format, 4 sites)`