diff --git a/crates/metal2vulkan-conformance/known-gaps-rt.tsv b/crates/metal2vulkan-conformance/known-gaps-rt.tsv index cdbd337ee..40be702c8 100644 --- a/crates/metal2vulkan-conformance/known-gaps-rt.tsv +++ b/crates/metal2vulkan-conformance/known-gaps-rt.tsv @@ -2068,23 +2068,27 @@ read-write-tier-held NVIDIA divergent case/MTLPixelFormatBGR10A2Unorm/beyond/tex read-write-tier-held llvmpipe divergent case/MTLPixelFormatBGR10A2Unorm/beyond/texels 229 elements differ (U32), the largest difference 1063106414 Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resource declaring the write, which is outside documented Metal: the write is dropped and the storage read there answers zeros. read-write-tier-held Iris(R) Xe divergent case/MTLPixelFormatBGRA8Unorm/beyond/texels 256 elements differ (U32), the largest difference 1055846127 Known gap (rt README, Known gaps of textures): the kernel reads, through the argument buffer, a texture whose storage element this device cannot read without a format, outside Vulkan's valid usage (VUID-vkCmdDispatch-OpTypeImage-07028); Vulkan does not define what that read returns. read-write-tier-held llvmpipe divergent case/MTLPixelFormatBGRA8Unorm/beyond/texels 109 elements differ (U32), the largest difference 1 The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texel-conversion`. Open: nothing. -read-write-tier-held * divergent case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/stored-bytes 256 elements differ (U8), the largest difference 238 Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resource declaring the write, which is outside documented Metal: the write is dropped and the storage read there answers zeros. -read-write-tier-held * divergent case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/texels 256 elements differ (U32), the largest difference 1055846127 Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resource declaring the write, which is outside documented Metal: the write is dropped and the storage read there answers zeros. +read-write-tier-held Iris(R) Xe divergent case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/texels 256 elements differ (U32), the largest difference 1055846126 Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resource declaring it. Its storage element is its unorm twin's, and the format such a read reaches is unknown when the function is compiled, so nothing decodes it: the read answers the stored codes as linear values, where Metal decodes them. Beyond the read-write tiers, which list no sRGB format. On this device the twin is B8G8R8A8_UNORM, whose storage element ANV on the Iris Xe (before Gfx12.5) cannot read without a format, outside Vulkan's valid usage (VUID-vkCmdDispatch-OpTypeImage-07028); Vulkan does not define what that read returns. +read-write-tier-held NVIDIA divergent case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/texels 192 elements differ (U32), the largest difference 30440712 Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resource declaring it. Its storage element is its unorm twin's, and the format such a read reaches is unknown when the function is compiled, so nothing decodes it: the read answers the stored codes as linear values, where Metal decodes them. Beyond the read-write tiers, which list no sRGB format. +read-write-tier-held RADV divergent case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/texels 192 elements differ (U32), the largest difference 30440712 Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resource declaring it. Its storage element is its unorm twin's, and the format such a read reaches is unknown when the function is compiled, so nothing decodes it: the read answers the stored codes as linear values, where Metal decodes them. Beyond the read-write tiers, which list no sRGB format. +read-write-tier-held llvmpipe divergent case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/texels 219 elements differ (U32), the largest difference 30440712 Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resource declaring it. Its storage element is its unorm twin's, and the format such a read reaches is unknown when the function is compiled, so nothing decodes it: the read answers the stored codes as linear values, where Metal decodes them. Beyond the read-write tiers, which list no sRGB format. read-write-tier-held llvmpipe divergent case/MTLPixelFormatR8Unorm/tier2/texels 27 elements differ (U32), the largest difference 1 The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texel-conversion`. Open: nothing. read-write-tier-held Iris(R) Xe divergent case/MTLPixelFormatRG11B10Float/beyond/texels 256 elements differ (U32), the largest difference 1171783680 Known gap (rt README, Known gaps of textures): the kernel reads, through the argument buffer, a texture whose storage element this device cannot read without a format, outside Vulkan's valid usage (VUID-vkCmdDispatch-OpTypeImage-07028); Vulkan does not define what that read returns. read-write-tier-held llvmpipe divergent case/MTLPixelFormatRG8Unorm/beyond/texels 54 elements differ (U32), the largest difference 1 The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texel-conversion`. Open: nothing. read-write-tier-held llvmpipe divergent case/MTLPixelFormatRGBA8Unorm/tier2/texels 109 elements differ (U32), the largest difference 1 The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texel-conversion`. Open: nothing. -read-write-tier-held * divergent case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/stored-bytes 256 elements differ (U8), the largest difference 238 Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resource declaring the write, which is outside documented Metal: the write is dropped and the storage read there answers zeros. -read-write-tier-held * divergent case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/texels 256 elements differ (U32), the largest difference 1055846127 Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resource declaring the write, which is outside documented Metal: the write is dropped and the storage read there answers zeros. +read-write-tier-held Iris(R) Xe divergent case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/texels 192 elements differ (U32), the largest difference 30440712 Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resource declaring it. Its storage element is its unorm twin's, and the format such a read reaches is unknown when the function is compiled, so nothing decodes it: the read answers the stored codes as linear values, where Metal decodes them. Beyond the read-write tiers, which list no sRGB format. +read-write-tier-held NVIDIA divergent case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/texels 192 elements differ (U32), the largest difference 30440712 Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resource declaring it. Its storage element is its unorm twin's, and the format such a read reaches is unknown when the function is compiled, so nothing decodes it: the read answers the stored codes as linear values, where Metal decodes them. Beyond the read-write tiers, which list no sRGB format. +read-write-tier-held RADV divergent case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/texels 192 elements differ (U32), the largest difference 30440712 Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resource declaring it. Its storage element is its unorm twin's, and the format such a read reaches is unknown when the function is compiled, so nothing decodes it: the read answers the stored codes as linear values, where Metal decodes them. Beyond the read-write tiers, which list no sRGB format. +read-write-tier-held llvmpipe divergent case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/texels 219 elements differ (U32), the largest difference 30440712 Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resource declaring it. Its storage element is its unorm twin's, and the format such a read reaches is unknown when the function is compiled, so nothing decodes it: the read answers the stored codes as linear values, where Metal decodes them. Beyond the read-write tiers, which list no sRGB format. read-write-tier-round-trip-float RX 550 refused case/MTLPixelFormatA8Unorm/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a A8Unorm texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatA8Unorm, so rt binds no such texture to a read_write or write slot. read-write-tier-round-trip-float Iris(R) Xe refused case/MTLPixelFormatBGR10A2Unorm/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a BGR10A2Unorm texture with no storage element on this device, or one it cannot read without a format, is not built")) Known gap (rt README, Known gaps of textures): ANV on the Iris Xe (before Gfx12.5) cannot read this format's storage element without a format, so a read at a slot through its storage image (access::read_write) is Gap::StorageElement. Such a format is outside Metal's read-write tiers. read-write-tier-round-trip-float Iris(R) Xe refused case/MTLPixelFormatBGRA8Unorm/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a BGRA8Unorm texture with no storage element on this device, or one it cannot read without a format, is not built")) Known gap (rt README, Known gaps of textures): ANV on the Iris Xe (before Gfx12.5) cannot read this format's storage element without a format, so a read at a slot through its storage image (access::read_write) is Gap::StorageElement. Such a format is outside Metal's read-write tiers. read-write-tier-round-trip-float llvmpipe divergent case/MTLPixelFormatBGRA8Unorm/beyond/texels 438 elements differ (U32), the largest difference 1 The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texel-conversion`. Open: nothing. -read-write-tier-round-trip-float RX 550 refused case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a BGRA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. +read-write-tier-round-trip-float * refused case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a BGRA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) Known gap (rt README, Known gaps of textures): an access::read_write slot bound to an 8-bit sRGB texture is Gap::StorageElement on every device. The texture's storage element is its unorm twin's, which the runtime writes only through a kernel's sRGB variant at a slot the kernel does not read; Metal's read-write tiers list no sRGB format (this row is beyond them). read-write-tier-round-trip-float Iris(R) Xe refused case/MTLPixelFormatRG11B10Float/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a RG11B10Float texture with no storage element on this device, or one it cannot read without a format, is not built")) Known gap (rt README, Known gaps of textures): ANV on the Iris Xe (before Gfx12.5) cannot read this format's storage element without a format, so a read at a slot through its storage image (access::read_write) is Gap::StorageElement. Such a format is outside Metal's read-write tiers. read-write-tier-round-trip-float llvmpipe divergent case/MTLPixelFormatRG8Unorm/beyond/texels 219 elements differ (U32), the largest difference 1 The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texel-conversion`. Open: nothing. read-write-tier-round-trip-float llvmpipe divergent case/MTLPixelFormatRGBA8Unorm/tier2/texels 438 elements differ (U32), the largest difference 1 The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texel-conversion`. Open: nothing. -read-write-tier-round-trip-float RX 550 refused case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a RGBA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. +read-write-tier-round-trip-float * refused case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a RGBA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) Known gap (rt README, Known gaps of textures): an access::read_write slot bound to an 8-bit sRGB texture is Gap::StorageElement on every device. The texture's storage element is its unorm twin's, which the runtime writes only through a kernel's sRGB variant at a slot the kernel does not read; Metal's read-write tiers list no sRGB format (this row is beyond them). render-then-sample-magnified-linear NVIDIA divergent case/sampled/texels 30 elements differ (U8), the largest difference 1 The device's own answer (rule 1): a linear magnified sample of a rendered 8-bit target, codes a step apart (Metal 0xda, ours 0xd9 at the first differing element): the sample is the device's filter and the target's codes its conversion. Notes `device-sampling` and `device-color-conversion`. Open: `device-sampling`'s bound on this device. resolve-stencil-under-depth-filters * refused case/render-pipeline Err(Error::Unsupported("a render pipeline state with DepthStencilFormats is not built")) refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made). rt builds no render pipeline state with DepthStencilFormats (Gap::RenderPipeline; rt README, Known gaps of render pipeline states). resource-own-getters * refused case/placement-heap-buffer-0-at-1024-shared/fresh Err(Error::Refused("Metal makes no buffer of length 0")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no buffer of length 0: every newBufferWithLength:options:, newBufferWithLength:options:offset: and buffer in a block is 4 bytes or more). A buffer of length 0 in a placement heap: MTLHeap.h and Apple's makeBuffer(length:options:offset:) page state no least length, and The M3 Max (macOS 27.0.1) made one with its API validation off; its validation layer stops it: "Buffer Validation Cannot create buffer of zero length." @@ -6115,16 +6119,6 @@ read-write-tier-round-trip-float NVIDIA refused case/MTLPixelFormatA8Unorm/beyon read-write-tier-round-trip-float Iris(R) Xe refused case/MTLPixelFormatA8Unorm/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a A8Unorm texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatA8Unorm, so rt binds no such texture to a read_write or write slot. read-write-tier-round-trip-float llvmpipe refused case/MTLPixelFormatBGR10A2Unorm/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a BGR10A2Unorm texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGR10A2Unorm, so rt binds no such texture to a read_write or write slot. read-write-tier-round-trip-float NVIDIA refused case/MTLPixelFormatBGR10A2Unorm/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a BGR10A2Unorm texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGR10A2Unorm, so rt binds no such texture to a read_write or write slot. -read-write-tier-round-trip-float llvmpipe refused case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a BGRA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. -read-write-tier-round-trip-float AMD Radeon 780M refused case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a BGRA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. -read-write-tier-round-trip-float RX 7900 XTX refused case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a BGRA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. -read-write-tier-round-trip-float NVIDIA refused case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a BGRA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. -read-write-tier-round-trip-float Iris(R) Xe refused case/MTLPixelFormatBGRA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a BGRA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. -read-write-tier-round-trip-float llvmpipe refused case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a RGBA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. -read-write-tier-round-trip-float AMD Radeon 780M refused case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a RGBA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. -read-write-tier-round-trip-float RX 7900 XTX refused case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a RGBA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. -read-write-tier-round-trip-float NVIDIA refused case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a RGBA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. -read-write-tier-round-trip-float Iris(R) Xe refused case/MTLPixelFormatRGBA8Unorm_sRGB/beyond/read-write Err(Error::Unsupported("texture slot 0, which a function writes or reads as storage, bound to a RGBA8UnormSRGB texture with no storage element on this device, or one it cannot read without a format, is not built")) The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_write or write slot. render-state-heap-residency * refused case/heap Err(Unavailable({call: "sparse_heap"})) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no sparse texture, heap or tile call). The rt side of the suite answers `sparse_heap` Unavailable: rt has no counterpart of the call, and no replay stream makes it. render-state-render-barriers * refused case/pieces/pass Err(Unavailable({call: "render step UseResourceInStages"})) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no useResource:usage:stages: or useHeap:stages:). The rt side of the suite answers `render step UseResourceInStages` Unavailable: rt has no counterpart of the call, and no replay stream makes it. render-state-texture-accesses * refused case/pipeline Err(Unavailable({call: "render_pipeline_with_reflection"})) refused: the consumer's own (MTLComputePipelineReflection, MTLRenderPipelineReflection, MTLPipelineOptionFailOnBinaryArchiveMiss, MTLPipelineOptionArgumentInfo, MTLPipelineOptionBufferTypeInfo, MTLPipelineOptionBindingInfo). rt builds no reflection and acts on no pipeline option; its consumer builds reflection from the library's AIR. diff --git a/crates/metal2vulkan-runtime/src/tests/srgb_twin.rs b/crates/metal2vulkan-runtime/src/tests/srgb_twin.rs index d5a3669bc..8aaa77712 100644 --- a/crates/metal2vulkan-runtime/src/tests/srgb_twin.rs +++ b/crates/metal2vulkan-runtime/src/tests/srgb_twin.rs @@ -16,7 +16,8 @@ //! device's map of contents: a dispatch onto the other format's twin, or onto an `RGBA8Unorm` //! texture, lowers nothing; filled past a cap of 2, the map holds 2, and a variant it forgot //! is lowered again at its kernel's next dispatch onto a twin (on a device whose textures have -//! their twins' storage views). +//! their twins' storage views). It prints the translation time of the float kernel's state and +//! of its variant. //! //! `llvm-as` assembles the fixture; without it the tests skip visibly. @@ -292,17 +293,20 @@ mod on_device { let counters = device.counters(); let entries = || counters.gauges().kernel_entries; let lowered = || counters.metrics().translations; + let nanos = || counters.metrics().translation_nanos; let mut buffers = Buffers::new(&device); let width = buffers.of(&device, &WIDTH.to_le_bytes()); + let begun = nanos(); let float = state(&device, &library, "fpv_srgb_write"); + let plain = nanos() - begun; let values = buffers.of(&device, &written("fpv_srgb_write").0); let run = |state: &ComputePipelineState, texture: &Texture| { (dispatch(&device, state, texture, &values, &width)) .unwrap_or_else(|error| panic!("{name}: {error}")); }; - let start = lowered(); + let (start, begun) = (lowered(), nanos()); run(&float, &rgba); - let each = lowered() - start; + let (each, variant) = (lowered() - start, nanos() - begun); assert!( each > 0, "{name}: the variant lowered at its first dispatch" @@ -330,7 +334,8 @@ mod on_device { drop((float, half, rgba, bgra, unorm)); println!( "{name}: one sRGB variant a kernel, kept in a map of 2 filled past its cap, a \ - forgotten one lowered again" + forgotten one lowered again; fpv_srgb_write's state took {plain} ns of \ + translation, its sRGB variant {variant} ns" ); }); } diff --git a/docs/CONFORMANCE-COVERAGE.md b/docs/CONFORMANCE-COVERAGE.md index 1090b4d58..ccf020777 100644 --- a/docs/CONFORMANCE-COVERAGE.md +++ b/docs/CONFORMANCE-COVERAGE.md @@ -42,7 +42,7 @@ Its limits, measured rather than asserted: | committed recordings | 1336 | | distinct SDK items the Metal leg reaches, of any status | 812 | | of those, reached only where this cannot name the family | 5 | -| ledger rows (a case whose gap is recorded) | 7984 | +| ledger rows (a case whose gap is recorded) | 7978 | | declared crossings of the option space (pairs put to Metal at once) | 26 | | declared crossings that are no pair of it (a boolean or numeric field, or one type in two slots) | 30 | @@ -4163,23 +4163,27 @@ A case whose difference from Metal is recorded rather than compared away. The le | `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resou… | | `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel reads, through the argument buffer, a texture whose storage element this device cannot read without a … | | `read-write-tier-held` | The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texe… | -| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resou… | -| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resou… | +| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resou… | +| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resou… | +| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resou… | +| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resou… | | `read-write-tier-held` | The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texe… | | `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel reads, through the argument buffer, a texture whose storage element this device cannot read without a … | | `read-write-tier-held` | The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texe… | | `read-write-tier-held` | The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texe… | -| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resou… | -| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resou… | +| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resou… | +| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resou… | +| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resou… | +| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel reads an 8-bit sRGB texture through the argument buffer's access::read_write member, with no use_resou… | | `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatA8Unorm, so rt binds no such texture to a read_write or w… | | `read-write-tier-round-trip-float` | Known gap (rt README, Known gaps of textures): ANV on the Iris Xe (before Gfx12.5) cannot read this format's storage element without a format, so a read at a sl… | | `read-write-tier-round-trip-float` | Known gap (rt README, Known gaps of textures): ANV on the Iris Xe (before Gfx12.5) cannot read this format's storage element without a format, so a read at a sl… | | `read-write-tier-round-trip-float` | The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texe… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_wr… | +| `read-write-tier-round-trip-float` | Known gap (rt README, Known gaps of textures): an access::read_write slot bound to an 8-bit sRGB texture is Gap::StorageElement on every device. The texture's s… | | `read-write-tier-round-trip-float` | Known gap (rt README, Known gaps of textures): ANV on the Iris Xe (before Gfx12.5) cannot read this format's storage element without a format, so a read at a sl… | | `read-write-tier-round-trip-float` | The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texe… | | `read-write-tier-round-trip-float` | The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texe… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_wr… | +| `read-write-tier-round-trip-float` | Known gap (rt README, Known gaps of textures): an access::read_write slot bound to an 8-bit sRGB texture is Gap::StorageElement on every device. The texture's s… | | `render-then-sample-magnified-linear` | The device's own answer (rule 1): a linear magnified sample of a rendered 8-bit target, codes a step apart (Metal 0xda, ours 0xd9 at the first differing element… | | `resolve-stencil-under-depth-filters` | refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made).… | | `resource-own-getters` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no buffer of length 0: every newBufferWithLength… | @@ -8158,16 +8162,6 @@ A case whose difference from Metal is recorded rather than compared away. The le | `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatA8Unorm, so rt binds no such texture to a read_write or w… | | `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGR10A2Unorm, so rt binds no such texture to a read_write… | | `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGR10A2Unorm, so rt binds no such texture to a read_write… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_wr… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_wr… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_wr… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_wr… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatBGRA8Unorm_sRGB, so rt binds no such texture to a read_wr… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_wr… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_wr… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_wr… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_wr… | -| `read-write-tier-round-trip-float` | The device's own answer (rule 2): this device's format queries offer no storage image of MTLPixelFormatRGBA8Unorm_sRGB, so rt binds no such texture to a read_wr… | | `render-state-heap-residency` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no sparse texture, heap or tile call). The rt si… | | `render-state-render-barriers` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no useResource:usage:stages: or useHeap:stages:)… | | `render-state-texture-accesses` | refused: the consumer's own (MTLComputePipelineReflection, MTLRenderPipelineReflection, MTLPipelineOptionFailOnBinaryArchiveMiss, MTLPipelineOptionArgumentInfo,… |