diff --git a/crates/metal2vulkan-conformance/known-gaps-rt.tsv b/crates/metal2vulkan-conformance/known-gaps-rt.tsv index bc1aaaec3..3cb6a754c 100644 --- a/crates/metal2vulkan-conformance/known-gaps-rt.tsv +++ b/crates/metal2vulkan-conformance/known-gaps-rt.tsv @@ -192,10 +192,10 @@ astc-8x6-srgb RX 550 refused case/zero-blocks/texture Err(Error::Unsupported("no astc-8x8-ldr RX 550 refused case/zero-blocks/texture Err(Error::Unsupported("no texture of ASTC8x8LDR is made on this device for the usage")) The device's own answer (rule 2): this device's format queries offer no image of MTLPixelFormatASTC_8x8_LDR with the usage the case asks, so rt makes no such texture (Gap::TextureFormat, or the creator's NotMade). astc-8x8-srgb Iris(R) Xe divergent case/seeded-blocks/texels 256 elements differ (F32), the largest difference 0.0018463432788848877 The device's own answer (rule 1): ANV's decode of the case's sRGB blocks, read through the device's decode (notes `compressed-texel-decode` and `srgb-texel-decode`). The catalogue states compressed-texel-decode's bound for the linear forms; the sRGB forms' bound is unmeasured. Open: that bound. astc-8x8-srgb RX 550 refused case/zero-blocks/texture Err(Error::Unsupported("no texture of ASTC8x8SRGB is made on this device for the usage")) The device's own answer (rule 2): this device's format queries offer no image of MTLPixelFormatASTC_8x8_sRGB with the usage the case asks, so rt makes no such texture (Gap::TextureFormat, or the creator's NotMade). -attribute-stride-buffer * refused case/pipeline Err(Error::Translation("the translator made no pipeline: unsupported: IdentityDomains (an encoder value the function reads as StageInStride(1)); needs NotImplemented")) 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). The translator refuses the state (IdentityDomains: a form the identity domains do not lower); rt README, Known gaps of pipeline states. -attribute-stride-buffer-offset * refused case/pipeline Err(Error::Translation("the translator made no pipeline: unsupported: IdentityDomains (an encoder value the function reads as StageInStride(1)); needs NotImplemented")) 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). The translator refuses the state (IdentityDomains: a form the identity domains do not lower); rt README, Known gaps of pipeline states. -attribute-stride-inline-bytes * refused case/pipeline Err(Error::Translation("the translator made no pipeline: unsupported: IdentityDomains (an encoder value the function reads as StageInStride(1)); needs NotImplemented")) 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). The translator refuses the state (IdentityDomains: a form the identity domains do not lower); rt README, Known gaps of pipeline states. -attribute-stride-plural-buffers * refused case/pipeline Err(Error::Translation("the translator made no pipeline: unsupported: IdentityDomains (an encoder value the function reads as StageInStride(1)); needs NotImplemented")) 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). The translator refuses the state (IdentityDomains: a form the identity domains do not lower); rt README, Known gaps of pipeline states. +attribute-stride-buffer * refused case/pipeline Err(Error::Unsupported("a kernel's stage input of a form not built yet: DynamicStride")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil). rt refuses the state at its creation (Gap::StageIn, StageInKind::DynamicStride: a layout of MTLBufferLayoutStrideDynamic the kernel reads, whose stride the compute encoder's attributeStride setters would bind, which it does not have); rt README, Known gaps of compute. +attribute-stride-buffer-offset * refused case/pipeline Err(Error::Unsupported("a kernel's stage input of a form not built yet: DynamicStride")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil). rt refuses the state at its creation (Gap::StageIn, StageInKind::DynamicStride: a layout of MTLBufferLayoutStrideDynamic the kernel reads, whose stride the compute encoder's attributeStride setters would bind, which it does not have); rt README, Known gaps of compute. +attribute-stride-inline-bytes * refused case/pipeline Err(Error::Unsupported("a kernel's stage input of a form not built yet: DynamicStride")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil). rt refuses the state at its creation (Gap::StageIn, StageInKind::DynamicStride: a layout of MTLBufferLayoutStrideDynamic the kernel reads, whose stride the compute encoder's attributeStride setters would bind, which it does not have); rt README, Known gaps of compute. +attribute-stride-plural-buffers * refused case/pipeline Err(Error::Unsupported("a kernel's stage input of a form not built yet: DynamicStride")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil). rt refuses the state at its creation (Gap::StageIn, StageInKind::DynamicStride: a layout of MTLBufferLayoutStrideDynamic the kernel reads, whose stride the compute encoder's attributeStride setters would bind, which it does not have); rt README, Known gaps of compute. attribute-stride-vertex-buffer * refused case/pipeline Err(Error::Unsupported("a render pipeline state with DynamicState 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 DynamicState (Gap::RenderPipeline; rt README, Known gaps of render pipeline states). attribute-stride-vertex-bytes * refused case/pipeline Err(Error::Unsupported("a render pipeline state with DynamicState 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 DynamicState (Gap::RenderPipeline; rt README, Known gaps of render pipeline states). border-swizzles-rgba8unorm RX 550 divergent case/01rg/black/words 2 elements differ (U32), the largest difference 1065353216 The device's own answer (rule 1), a known gap of the runtime (its README, Known gaps of textures): a runtime sampler of an opaque-black border, clamp to border on `s` and `t`, sampled past the texture's edge; the sample of a RGBA8Unorm texture under the `01rg` swizzle, whose view's component mapping is not the identity, on a device that does not report `borderColorSwizzleFromImage` (the RX 550's driver, RADV on Polaris 12, lists no `VK_EXT_border_color_swizzle`): Vulkan leaves that border texel undefined, and the driver's differs from Metal's, which reads the border colour in the format's channels and then the swizzle. A sampler in the arrays meets every view, so no create info names the view's mapping. The first differing element is at [image 0, row 1, 10] (U32, byte 120): Metal 0 (0x0), ours 1065353216 (0x3f800000). Note `swizzled-opaque-black-border`. @@ -5384,51 +5384,6 @@ astc-8x8-srgb llvmpipe refused case/zero-blocks/texture Err(Error::Unsupported(" astc-8x8-srgb AMD Radeon 780M refused case/zero-blocks/texture Err(Error::Unsupported("no texture of ASTC8x8SRGB is made on this device for the usage")) The device's own answer (rule 2): this device's format queries offer no image of MTLPixelFormatASTC_8x8_sRGB with the usage the case asks, so rt makes no such texture (Gap::TextureFormat, or the creator's NotMade). astc-8x8-srgb RX 7900 XTX refused case/zero-blocks/texture Err(Error::Unsupported("no texture of ASTC8x8SRGB is made on this device for the usage")) The device's own answer (rule 2): this device's format queries offer no image of MTLPixelFormatASTC_8x8_sRGB with the usage the case asks, so rt makes no such texture (Gap::TextureFormat, or the creator's NotMade). astc-8x8-srgb NVIDIA refused case/zero-blocks/texture Err(Error::Unsupported("no texture of ASTC8x8SRGB is made on this device for the usage")) The device's own answer (rule 2): this device's format queries offer no image of MTLPixelFormatASTC_8x8_sRGB with the usage the case asks, so rt makes no such texture (Gap::TextureFormat, or the creator's NotMade). -attribute-format-class-crossings * refused case/MTLAttributeFormatChar Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatChar2 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatChar3 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatChar4 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatShort Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatShort2 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatShort3 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatShort4 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatUChar Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatUChar2 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatUChar3 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatUChar4 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatUShort Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatUShort2 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatUShort3 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-class-crossings * refused case/MTLAttributeFormatUShort4 Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatChar2Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatChar3Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatChar4Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatCharNormalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatFloat/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatFloat2/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatFloat3/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatFloat4/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatFloatRG11B10/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatFloatRGB9E5/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatHalf/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatHalf2/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatHalf3/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatHalf4/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatInt1010102Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatShort2Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatShort3Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatShort4Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatShortNormalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatUChar2Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatUChar3Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatUChar4Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatUChar4Normalized_BGRA/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatUCharNormalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatUInt1010102Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatUShort2Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatUShort3Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatUShort4Normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -attribute-format-fetches * refused case/MTLAttributeFormatUShortNormalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. blit-copy-indirect-command-buffer * refused case/pipeline Err(Error::Unsupported("indirect command buffers of ComputeCommands are not built")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every pipeline descriptor's supportIndirectCommandBuffers NO). Gap::IndirectCommandBuffers, IndirectCommandsKind::ComputeCommands: a compute pipeline state for indirect command buffers is refused on every device; compute commands are not built (the runtime README, Known gaps of indirect command buffers). blit-generated-mipmaps-bgr10xr * refused case/work Err({refused: Error::Unsupported("no texture of BGR10XR is made on this device for the usage"), resource: 0 (0x0)}) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no texture or view of MTLPixelFormatBGR10_XR). rt makes no texture of MTLPixelFormatBGR10_XR for the usage the case asks on any venue (Gap::TextureFormat, or the creator's NotMade). blit-generated-mipmaps-bgra10xr * refused case/work Err({refused: Error::Unsupported("no texture of BGRA10XR is made on this device for the usage"), resource: 0 (0x0)}) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no texture or view of MTLPixelFormatBGRA10_XR). rt makes no texture of MTLPixelFormatBGRA10_XR for the usage the case asks on any venue (Gap::TextureFormat, or the creator's NotMade). @@ -6704,43 +6659,6 @@ sparse-tile-size-multisample * refused case/MTLPixelFormatRGBA8Unorm/Type2DMulti sparse-tile-size-multisample * refused case/MTLPixelFormatRGBA8Unorm/Type2DMultisampleArray/samples-4/page-16 Err(Unavailable({call: "sparse_tile_size"})) 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_tile_size` Unavailable: rt has no counterpart of the call, and no replay stream makes it. sparse-tile-size-multisample * refused case/MTLPixelFormatRGBA8Unorm/Type2DMultisampleArray/samples-4/page-256 Err(Unavailable({call: "sparse_tile_size"})) 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_tile_size` Unavailable: rt has no counterpart of the call, and no replay stream makes it. sparse-tile-size-multisample * refused case/MTLPixelFormatRGBA8Unorm/Type2DMultisampleArray/samples-4/page-64 Err(Unavailable({call: "sparse_tile_size"})) 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_tile_size` Unavailable: rt has no counterpart of the call, and no replay stream makes it. -stage-in-region-clamps * refused case/x_r8_g8/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/a-constant-step-beside-a-y-step/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/an-indexed-step-beside-a-dynamic-stride/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/an-unset-attribute-beside-a-set-one/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/an-unset-attribute-on-a-zero-stride-layout/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/buffer-source/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/buffer-spare-a/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/buffer-spare-b/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/format-float4/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/format-half2/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/format-int4/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/format-invalid/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/format-short2/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/format-u-char4-normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/format-u-int/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/format-u-int1010102-normalized/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/index-buffer-3/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/index-type-uint16/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/index-type-uint32/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/inside-the-read-buffer/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/no-unread-attributes/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/offset-0/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/offset-32/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/offset-4/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/offset-48/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/step-constant/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/step-grid-x-indexed/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/step-grid-x-rate-3/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/step-grid-x/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/step-grid-y-indexed/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/step-grid-y/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/stride-dynamic/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/stride-fixed-16/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/stride-fixed-64/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/three-unread-over-three-buffers/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/unread-at-attribute-15/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. -stage-in-unread-attributes * refused case/widest-format-at-the-furthest-offset/pipeline Err(Error::Unsupported("the kernel reads an input the compute encoder does not supply yet: StageIn")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDescriptor nil, so no kernel reads `[[stage_in]]`; the encoder's setStageInRegion:, which five streams call, is supplied). rt refuses it (the kernel reads an input the compute encoder does not supply yet), and no replay stream asks it. texture-buffer-fill-groups * refused case/work Err({refused: Unavailable({call: "fillTexture:level:slice:region:bytes:length:"}), step: 0 (0x0)}) refused: this side's own gap: it answers no `fillTexture:level:slice:region:bytes:length:` yet (`Unavailable`), the program's first step, now that the runtime makes the texture buffer the program fills. Open: this side's answer of the call. texture-buffer-fill-streams * refused case/work Err({refused: Unavailable({call: "fillTexture:level:slice:region:bytes:length:"}), step: 0 (0x0)}) refused: this side's own gap: it answers no `fillTexture:level:slice:region:bytes:length:` yet (`Unavailable`), the program's first step, now that the runtime makes the texture buffer the program fills. Open: this side's answer of the call. texture-buffer-long-fills * refused case/work Err({refused: Unavailable({call: "fillTexture:level:slice:region:bytes:length:"}), step: 0 (0x0)}) refused: this side's own gap: it answers no `fillTexture:level:slice:region:bytes:length:` yet (`Unavailable`), the program's first step, now that the runtime makes the texture buffer the program fills. Open: this side's answer of the call. @@ -8079,3 +7997,4 @@ pixel-samplers-rgba16f-nearest-edge Iris(R) Xe divergent case/output/norm the di pixel-samplers-rgba16f-nearest-zero NVIDIA divergent case/output/norm the digest is 3288187d8ade9557ef4b727bf31750abd8136d15c98b6d29b17ccf6423c0d497 on Metal and 18ed16e2998cc7c3d87dee548216bd6f3bdff85329f9a3ce3025330f3bcd0c0f here The device's own answer (rule 1): `norm` differs from Metal's (`arg`, `const` and `slot` read Metal's answer). The device's nearest filter at the normalized coordinate over the size (`norm`, the case's control), where the sources that hand the device a texel's centre or the coordinate itself read Metal's texels. Note `device-sampling`. The site records a digest alone, so the run names no coordinate. pixel-samplers-rgba16f-nearest-zero RX 550 divergent case/output/norm the digest is 3288187d8ade9557ef4b727bf31750abd8136d15c98b6d29b17ccf6423c0d497 on Metal and 181213b4f4895852c79d14b069dde19b045933de9743eec64b2aff176b053e70 here The device's own answer (rule 1): `norm` differs from Metal's (`arg`, `const` and `slot` read Metal's answer). The device's nearest filter at the normalized coordinate over the size (`norm`, the case's control), where the sources that hand the device a texel's centre or the coordinate itself read Metal's texels. Note `device-sampling`. The site records a digest alone, so the run names no coordinate. pixel-samplers-rgba16f-nearest-zero Iris(R) Xe divergent case/output/norm the digest is 3288187d8ade9557ef4b727bf31750abd8136d15c98b6d29b17ccf6423c0d497 on Metal and 18ed16e2998cc7c3d87dee548216bd6f3bdff85329f9a3ce3025330f3bcd0c0f here The device's own answer (rule 1): `norm` differs from Metal's (`arg`, `const` and `slot` read Metal's answer). The device's nearest filter at the normalized coordinate over the size (`norm`, the case's control), where the sources that hand the device a texel's centre or the coordinate itself read Metal's texels. Note `device-sampling`. The site records a digest alone, so the run names no coordinate. +stage-in-region-clamps * refused case/x_ind_r6_g8/dispatch Err(Error::Unsupported("a kernel's stage input of a form not built yet: IndirectRegion")) refused: no stream uses it yet (four-case census, m3-max-62954..62957: 35 streams, no setStageInRegionWithIndirectBuffer:indirectBufferOffset:). rt refuses the call (Gap::StageIn, StageInKind::IndirectRegion: a stage-in region the GPU reads is not built); rt README, Known gaps of compute. diff --git a/crates/metal2vulkan-conformance/src/cases/stage_in_regions.rs b/crates/metal2vulkan-conformance/src/cases/stage_in_regions.rs index 03ca9ac4e..47a24c4b9 100644 --- a/crates/metal2vulkan-conformance/src/cases/stage_in_regions.rs +++ b/crates/metal2vulkan-conformance/src/cases/stage_in_regions.rs @@ -21,8 +21,8 @@ //! every fetch inside its buffer. use crate::case::{ - call, made, Abort, Bindings, Case, Failure, Handle, Input, MetalSource, Side, StageInAttribute, - StageInLayout, StageInRegion, StageInput, + call, made, probe, Abort, Bindings, Case, Failure, Handle, Input, MetalSource, Side, + StageInAttribute, StageInLayout, StageInRegion, StageInput, }; use crate::fixture::{Fixture, METAL_TEXT, RUNTIME_TEXT}; use crate::recording::ShaderRef; @@ -559,11 +559,18 @@ impl Case for StageInRegions { for row in ROWS { let at = |site: &str| format!("{}/{site}", row.name); - let pipeline = made( + // A pipeline or a dispatch either side refuses is recorded at its own site and the + // sweep carries on, so one refused row compares as a refusal there while every other + // row still compares. The row stops at its refusal: the sites after it are the other + // side's alone, which the comparison folds under the refusal (`compare`'s walk). + let Some(pipeline) = probe( sites, &at("pipeline"), side.compute_pipeline_with_stage_input(library, row.entry(), &row.stage_input()), - )?; + |_| Value::Absent, + ) else { + continue; + }; let output = made( sites, &at("buffer/0"), @@ -576,7 +583,7 @@ impl Case for StageInRegions { )?; let mut bound = vec![output]; bound.extend(&sources); - let command_buffer = made( + let Some(command_buffer) = probe( sites, &at("dispatch"), side.dispatch_threads( @@ -586,7 +593,10 @@ impl Case for StageInRegions { [row.grid[0], row.grid[1], 1], [row.group[0], row.group[1], 1], ), - )?; + |_| Value::Absent, + ) else { + continue; + }; call( sites, &at("status"), diff --git a/crates/metal2vulkan-conformance/src/rt_side.rs b/crates/metal2vulkan-conformance/src/rt_side.rs index 1ad52a3db..2e83ab683 100644 --- a/crates/metal2vulkan-conformance/src/rt_side.rs +++ b/crates/metal2vulkan-conformance/src/rt_side.rs @@ -1357,18 +1357,28 @@ impl Side for RtSide<'_> { grid: [u32; 3], threads: [u32; 3], ) -> Answer { + /// One region call: a region, or the buffer and offset an indirect one reads. + enum Set { + Direct(rt::Region), + Indirect(rt::Buffer, u64), + } let mut regions = Vec::with_capacity(stage_in.len()); for region in stage_in { - match *region { - StageInRegion::Direct { origin, size } => regions.push(rt::Region { origin, size }), - StageInRegion::Indirect { .. } => { - return Err(Failure::unavailable("set_stage_in_region_indirect")) + regions.push(match *region { + StageInRegion::Direct { origin, size } => Set::Direct(rt::Region { origin, size }), + StageInRegion::Indirect { buffer, offset } => { + Set::Indirect(self.held(buffer)?.clone(), offset) } - } + }); } self.encode(pipeline, bindings, |encoder| { - for ®ion in ®ions { - encoder.set_stage_in_region(region); + for region in ®ions { + match region { + Set::Direct(region) => encoder.set_stage_in_region(*region), + Set::Indirect(buffer, offset) => { + encoder.set_stage_in_region_with_indirect_buffer(buffer, *offset)? + } + } } encoder.dispatch_threads(grid, threads) }) diff --git a/crates/metal2vulkan-harness/src/tests.rs b/crates/metal2vulkan-harness/src/tests.rs index 6ebe00ea4..63d4f2b94 100644 --- a/crates/metal2vulkan-harness/src/tests.rs +++ b/crates/metal2vulkan-harness/src/tests.rs @@ -1171,7 +1171,7 @@ fn a_row_is_judged_by_host_time_never_its_gpu_time() { fn the_new_runtime_refuses_by_its_gaps_and_limits_alone() { let refused = |error: RtError| rt::error(error).downcast::().is_ok(); assert!(refused(RtError::Unsupported(Gap::KernelInput { - kind: KernelInputKind::StageIn + kind: KernelInputKind::Slot }))); assert!(refused(RtError::Limit(Limit::BlockIds))); assert!(!refused(RtError::Quiesced)); diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 823433f7a..cccd2f7b1 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -2346,8 +2346,15 @@ while the driver's exit handler waited on a lock, with every runtime thread alre - `set_stage_in_region` (`setStageInRegion:`) sets the region a kernel's `[[grid_origin]]` and `[[grid_size]]` read, pushed at each later dispatch. A dispatch of a kernel that reads it on an encoder that set none is `Gap::NoStageInRegion`: what Metal's kernel reads then is not - established. A kernel with a `[[stage_in]]` argument, which fetches by the region, is - `Gap::KernelInput` of `KernelInputKind::StageIn` at its state's creation. + established. A kernel's `[[stage_in]]` attributes, under its descriptor's + `stageInputDescriptor`, are fetched in the shader from the buffer bound at each layout's + `bufferIndex`, at its pushed address, for every step function a kernel may use (`Constant`, + `ThreadPositionInGridX` and `Y`, and their `Indexed` forms at step rate 1, whose indices are + read from the buffer at `indexBufferIndex`). A thread-position step's element is the region's + origin plus the thread's position over the step rate, clamped to the region's last element, so a + thread past the region, whose fetch Metal leaves undefined, reads that element (the Metal + recordings of `stage-in-region-clamps`, Apple M3 Max). Each fetch keeps its reach check: an + element past the first 2^32 bytes from its bind offset reads zero. - A kernel whose private memory passes the translator's 16 KiB floor (its arrays a thread indexes at run time: Metal holds such a kernel's thread memory itself) keeps it in the runtime's device memory, the private arena (`RuntimeFact::PrivateArena`): one slot of the kernel's bytes, @@ -3279,11 +3286,19 @@ cache is answered compile-required on both. layout and its pipeline cache cost nothing measurable there. The cost is paid once per driver cache: the driver keeps compiled pipelines across processes, and the same modules compiled again in a new process took 45 to 48 µs. -- A kernel that reads anything the encoder does not supply yet, a function table, a `[[stage_in]]` - fetch, or a sampler or texture state the translator would take from the bound object rather than - from its resource ID, is refused (`Gap::KernelInput`, whose `KernelInputKind` names what the - runtime found: `Slot` for a function table, `StageIn` for a `[[stage_in]]` fetch). So is a state - for indirect command buffers (`Gap::IndirectCommandBuffers`, `IndirectCommandsKind::ComputeCommands`). +- A kernel that reads anything the encoder does not supply yet, a function table, or a sampler or + texture state the translator would take from the bound object rather than from its resource ID, + is refused (`Gap::KernelInput`, whose `KernelInputKind` names what the runtime found: `Slot` for + a function table). So is a state for indirect command buffers (`Gap::IndirectCommandBuffers`, + `IndirectCommandsKind::ComputeCommands`). +- Three forms of a kernel's `[[stage_in]]` are refused, each as `Gap::StageIn` naming its + `StageInKind`: `set_stage_in_region_with_indirect_buffer` + (`setStageInRegionWithIndirectBuffer:indirectBufferOffset:`, a region the GPU reads), + `IndirectRegion`; an attribute the kernel reads through a thread-position layout of + `MTLBufferLayoutStrideDynamic`, whose stride the `setBuffer:offset:attributeStride:atIndex:` + family would bind (the compute encoder has none of it), `DynamicStride`, at the state's + creation; and one it reads through an indexed step at a step rate other than 1, whose Metal + answer is not measured, `IndexedStepRate`, at the state's creation. A kernel that encodes indexed triangle draws into an indirect command buffer is built (Indirect command buffers, below); one that encodes anything else the translator refuses (`Unsupported{GpuEncodedIndirectCommands, NotImplemented}`). diff --git a/crates/metal2vulkan-runtime/src/encoder.rs b/crates/metal2vulkan-runtime/src/encoder.rs index 1b0228b8d..aa3fd4cf9 100644 --- a/crates/metal2vulkan-runtime/src/encoder.rs +++ b/crates/metal2vulkan-runtime/src/encoder.rs @@ -5,7 +5,7 @@ use crate::buffer::{Buffer, BufferInner, BufferObject}; use crate::command::{Building, CommandBuffer}; use crate::counters::Metric; use crate::device::Core; -use crate::error::{Error, Gap, Limit, Refusal}; +use crate::error::{Error, Gap, Limit, Refusal, StageInKind}; use crate::fence::Fence; use crate::floor; use crate::hazard::Access; @@ -642,11 +642,15 @@ impl ComputeCommandEncoder { self.set_sampler_state(sampler, index) } - /// `setStageInRegion:`: the region a kernel's `[[grid_origin]]` and `[[grid_size]]` read, - /// pushed at every later dispatch of the encoder as the origin and the size, each a `uvec4` - /// with a zero `w`. A dispatch of a kernel that reads the region on an encoder that set none - /// is [`Gap::NoStageInRegion`]. A kernel with a `[[stage_in]]` argument, which fetches by the - /// region, is [`Gap::KernelInput`] at its state's creation. + /// `setStageInRegion:`: the region a kernel's `[[grid_origin]]` and `[[grid_size]]` read and + /// its `[[stage_in]]` attributes of a thread-position step fetch by, pushed at every later + /// dispatch of the encoder as the origin and the size, each a `uvec4` with a zero `w`. Such an + /// attribute's element is the region's origin plus the thread's position on the step's axis + /// over the step rate, clamped to the region's size less 1 (a size of 0 clamps nothing); an + /// indexed step's is the origin plus the index its index buffer holds at the clamped position. + /// A thread past the region, whose fetch Metal leaves undefined, so reads the region's last + /// element. A dispatch of a kernel that reads the region on an encoder that set none is + /// [`Gap::NoStageInRegion`]. pub fn set_stage_in_region(&mut self, region: Region) { let mut bytes = [0; 32]; let words = @@ -657,6 +661,20 @@ impl ComputeCommandEncoder { self.stage_in_region = Some(bytes); } + /// `setStageInRegionWithIndirectBuffer:indirectBufferOffset:`: a stage-in region the GPU + /// reads from `buffer` at `offset`, in `MTLStageInRegionIndirectArguments`' layout. Not built: + /// always [`Gap::StageIn`] of [`StageInKind::IndirectRegion`], and the encoder's region stays + /// the one it had. + pub fn set_stage_in_region_with_indirect_buffer( + &mut self, + _buffer: &Buffer, + _offset: u64, + ) -> Result<(), Error> { + Err(Error::Unsupported(Gap::StageIn { + kind: StageInKind::IndirectRegion, + })) + } + /// `setBufferOffset:atIndex:`. /// /// Err: [`Refusal::BufferIndex`] for an index of 31 or more; [`Refusal::NoBufferAtIndex`] diff --git a/crates/metal2vulkan-runtime/src/error.rs b/crates/metal2vulkan-runtime/src/error.rs index 59a39bfd4..ebcb8187c 100644 --- a/crates/metal2vulkan-runtime/src/error.rs +++ b/crates/metal2vulkan-runtime/src/error.rs @@ -1069,20 +1069,34 @@ pub enum Gap { kind: IndirectCommandsKind, }, /// A kernel that reads something the compute encoder does not supply yet, `kind` naming what: - /// a function table, a `[[stage_in]]` fetch, an explicit imageblock, a parameter the runtime - /// does not fill, or a specialization the runtime does not set, among others. Buffers, - /// `setBytes` data, textures and sampler states by their resource IDs, constexpr samplers by - /// their indices, an integer write's channel widths, threadgroup memory lengths, the - /// dispatch's grid, the stage-in region and a pinned subgroup size are supplied. Metal's - /// counterpart is the compute pipeline state's make - /// (`newComputePipelineStateWithDescriptor:options:reflection:error:` and its siblings), - /// which makes each. + /// a function table, an explicit imageblock, a parameter the runtime does not fill, or a + /// specialization the runtime does not set, among others. Buffers, `setBytes` data, textures + /// and sampler states by their resource IDs, constexpr samplers by their indices, an integer + /// write's channel widths, threadgroup memory lengths, the dispatch's grid, the stage-in region, + /// `[[stage_in]]` attributes of a fixed layout stride and a pinned subgroup size are supplied. + /// Metal's counterpart is the compute pipeline state's make + /// (`newComputePipelineStateWithDescriptor:options:reflection:error:` and its siblings), which + /// makes each. /// /// Basis: ours (the encoder supplies only those). KernelInput { /// What the kernel reads, named where the runtime found it. kind: KernelInputKind, }, + /// A form of a kernel's `[[stage_in]]` that is not built, `kind` naming which: a stage-in + /// region the GPU reads, a layout of `MTLBufferLayoutStrideDynamic` a read attribute steps + /// through, or an indexed step at a step rate other than 1. Metal's counterpart is + /// `setStageInRegionWithIndirectBuffer:indirectBufferOffset:`, the + /// `setBuffer:offset:attributeStride:atIndex:` family, and the compute pipeline state's make of + /// such a `stageInputDescriptor`. + /// + /// Basis: ours (no replay stream makes a compute state with a stage-input descriptor or sets a + /// stage-in region indirectly; what Metal reads at an indexed step's rate past 1 is not + /// measured). + StageIn { + /// The form, named where the runtime found it. + kind: StageInKind, + }, /// An imageblock length Metal answers that no case measures: a compute state's /// `imageblockMemoryLengthForDimensions:` where its kernel declares an imageblock it never /// reaches, or its compile kept no reflection to tell whether it declares one (a kernel that @@ -1129,8 +1143,8 @@ pub enum Gap { /// The threadgroup size asked for. threads_per_threadgroup: [u32; 3], }, - /// A dispatch of a kernel that reads the stage-in region (`[[grid_origin]]`, `[[grid_size]]`) - /// on an encoder that never set one + /// A dispatch of a kernel that reads the stage-in region (`[[grid_origin]]`, `[[grid_size]]`, + /// a `[[stage_in]]` attribute of a thread-position step) on an encoder that never set one /// ([`ComputeCommandEncoder::set_stage_in_region`](crate::ComputeCommandEncoder::set_stage_in_region)): /// what such a kernel reads on Metal is not established, and is not invented. /// @@ -1636,10 +1650,6 @@ pub enum KernelInputKind { /// pushes each one's resource ID. Metal's counterpart is a texture or sampler the kernel /// reads, which Metal resolves by its `gpuResourceID`. HandleTranslation, - /// A `[[stage_in]]` argument, which fetches by the stage-in region - /// (`PipelineInterface::stage_in`). Metal's counterpart is the descriptor's - /// `stageInputDescriptor`. - StageIn, /// A descriptor set of the pipeline's layout that is not the device's: a binding of set 1 /// that is not one of the device's texture and sampler arrays, or a binding of another set. /// Metal has no counterpart: it binds every argument by its index. @@ -1696,6 +1706,28 @@ pub enum KernelInputKind { EntryPoint, } +/// The form of a kernel's `[[stage_in]]` the runtime does not build ([`Gap::StageIn`]). Every +/// variant names its Metal counterpart. +#[non_exhaustive] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] +pub enum StageInKind { + /// A stage-in region the GPU reads from a buffer, in `MTLStageInRegionIndirectArguments`' + /// layout + /// ([`ComputeCommandEncoder::set_stage_in_region_with_indirect_buffer`](crate::ComputeCommandEncoder::set_stage_in_region_with_indirect_buffer)). + /// Metal's counterpart is `setStageInRegionWithIndirectBuffer:indirectBufferOffset:`. + IndirectRegion, + /// An attribute the kernel reads through a layout of `MTLBufferLayoutStrideDynamic` that + /// steps by thread position, whose stride the encoder would bind with the buffer. Metal's + /// counterpart is the `setBuffer:offset:attributeStride:atIndex:` family, which the compute + /// encoder does not have. + DynamicStride, + /// An attribute the kernel reads through a layout of an indexed step + /// (`MTLStepFunctionThreadPositionInGridXIndexed` or `...YIndexed`) at a step rate other than + /// 1. Metal's counterpart is the compute pipeline state's make of that + /// `stageInputDescriptor`. + IndexedStepRate, +} + /// What a draw asks that the runtime does not build ([`Gap::Draw`]). #[non_exhaustive] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] @@ -2650,6 +2682,9 @@ impl fmt::Display for Gap { f, "the kernel reads an input the compute encoder does not supply yet: {kind:?}" ), + Gap::StageIn { kind } => { + write!(f, "a kernel's stage input of a form not built yet: {kind:?}") + } Gap::ImageblockLength => { f.write_str("the state's imageblock length is not measured against Metal's") } diff --git a/crates/metal2vulkan-runtime/src/error/basis.rs b/crates/metal2vulkan-runtime/src/error/basis.rs index 122ba0254..ff8ed308c 100644 --- a/crates/metal2vulkan-runtime/src/error/basis.rs +++ b/crates/metal2vulkan-runtime/src/error/basis.rs @@ -129,6 +129,7 @@ impl Gap { match self { Gap::IndirectCommandBuffers { .. } => RefusalBasis::Ours, Gap::KernelInput { .. } => RefusalBasis::Ours, + Gap::StageIn { .. } => RefusalBasis::Ours, Gap::ImageblockLength => RefusalBasis::Ours, Gap::PartialSimdgroups { .. } => RefusalBasis::Ours, Gap::PartialThreadgroups { .. } => RefusalBasis::Ours, diff --git a/crates/metal2vulkan-runtime/src/lib.rs b/crates/metal2vulkan-runtime/src/lib.rs index 9cd212166..497084025 100644 --- a/crates/metal2vulkan-runtime/src/lib.rs +++ b/crates/metal2vulkan-runtime/src/lib.rs @@ -81,7 +81,8 @@ pub use device::{Device, DeviceOptions, RawDevice}; pub use encoder::{ComputeCommandEncoder, Dispatch, DispatchType, Resource, ResourceUsage}; pub use error::{ DrawKind, Error, Gap, IndirectCommandsKind, KernelInputKind, Limit, LinearPlanePassKind, - Refusal, RefusalBasis, RenderPassKind, RenderPipelineKind, StageGap, TextureViewKind, + Refusal, RefusalBasis, RenderPassKind, RenderPipelineKind, StageGap, StageInKind, + TextureViewKind, }; pub use event::{Event, SharedEvent}; pub use export::{Export, ExportHandle}; diff --git a/crates/metal2vulkan-runtime/src/pipeline.rs b/crates/metal2vulkan-runtime/src/pipeline.rs index 94ce5bd88..0d140a7a2 100644 --- a/crates/metal2vulkan-runtime/src/pipeline.rs +++ b/crates/metal2vulkan-runtime/src/pipeline.rs @@ -63,7 +63,7 @@ use crate::device::{lock, Core}; use crate::encoder::{ decide, size_checked, threadgroup_memory, Dispatch, Lengths, Module, BUFFER_SLOTS, }; -use crate::error::{Error, Gap, IndirectCommandsKind, KernelInputKind, Refusal}; +use crate::error::{Error, Gap, IndirectCommandsKind, KernelInputKind, Refusal, StageInKind}; use crate::hazard::Access; use crate::kernel_map::KernelKey; use crate::piece::Rate; @@ -888,7 +888,10 @@ impl crate::Device { /// naming the kernel; [`Gap::IndirectCommandBuffers`] of /// [`IndirectCommandsKind::ComputeCommands`] for a descriptor that sets /// `supportIndirectCommandBuffers`; [`Gap::KernelInput`] for a kernel that - /// reads what the compute encoder does not supply yet; [`Refusal::SamplerIds`] where + /// reads what the compute encoder does not supply yet; [`Gap::StageIn`] for a `[[stage_in]]` + /// attribute the kernel reads through a layout of a dynamic stride + /// ([`StageInKind::DynamicStride`]) or of an indexed step at a step rate past 1 + /// ([`StageInKind::IndexedStepRate`]); [`Refusal::SamplerIds`] where /// `sampler_ids` answers another count; [`Refusal::IndicesNotGranted`] for a constexpr /// sampler's index; [`Limit::DeviceSamplers`](crate::Limit::DeviceSamplers); /// [`Error::StageUnfilled`], whose request the consumer's helper fills before it makes the @@ -962,6 +965,9 @@ impl Compiled { ) }) .map_err(Error::translation)?; + if let Some(kind) = unbuilt_stage_in(&plain) { + return Err(Error::Unsupported(Gap::StageIn { kind })); + } let source = ( function, plain.kernel_variant(KernelVariant::EmulatedSimdgroups), @@ -1408,6 +1414,33 @@ fn past_stage_bound(error: &Error) -> bool { ) } +/// The form of a kernel's `[[stage_in]]` the runtime does not build ([`Gap::StageIn`]) that +/// `inputs` fetch by, the first in attribute order: `inputs` are the kernel's narrowed to the +/// attributes it reads (`kernel_inputs_read`), so an attribute it never reads refuses nothing. A +/// thread-position layout of `MTLBufferLayoutStrideDynamic` is [`StageInKind::DynamicStride`] +/// and an indexed step at a step rate past 1 [`StageInKind::IndexedStepRate`]. What Metal's +/// pipeline creation stops (a missing layout, a vertex step, a step rate of 0) is the +/// translator's to refuse, and a constant step reads no stride. +fn unbuilt_stage_in(inputs: &LoweringInputs) -> Option { + use metal2vulkan::metal::StepFunction as S; + let input = inputs.stage_input.as_ref()?; + input.attributes.values().find_map(|attribute| { + let layout = input.layouts.get(&attribute.buffer_index)?; + let indexed = match layout.step_function { + S::ThreadPositionInGridX | S::ThreadPositionInGridY => false, + S::ThreadPositionInGridXIndexed | S::ThreadPositionInGridYIndexed => true, + _ => return None, + }; + if layout.stride.is_none() { + Some(StageInKind::DynamicStride) + } else if indexed && layout.step_rate > 1 { + Some(StageInKind::IndexedStepRate) + } else { + None + } + }) +} + /// The runtime's view of the translator's kernel, or what the kernel reads that the compute /// encoder does not supply ([`Gap::KernelInput`] of that kind), the first this finds, on a device /// whose push window is `window` bytes (`DeviceProfile::push_window`). @@ -1421,7 +1454,8 @@ pub(crate) fn interface( // Every argument is a pushed address, a pushed resource ID or index, or a specialization: no // descriptor but set 1's and no table the binder builds (the translator holds a kernel's // constant data in its module on this device's profile); the stage's flags are its - // subgroups'. + // subgroups'. A `[[stage_in]]` attribute is fetched in the shader from its layout's buffer + // slot, at that slot's pushed address, by the pushed stage-in and dispatch regions. let stage_flags = vk::PipelineShaderStageCreateFlags::from_raw(stage.stage_flags.as_raw()); let subgroups = vk::PipelineShaderStageCreateFlags::REQUIRE_FULL_SUBGROUPS | vk::PipelineShaderStageCreateFlags::ALLOW_VARYING_SUBGROUP_SIZE; @@ -1434,7 +1468,6 @@ pub(crate) fn interface( translated.needs_handle_translation, KernelInputKind::HandleTranslation, ), - (!translated.stage_in.is_empty(), KernelInputKind::StageIn), ( !pipeline.layout.sets.iter().all(of_the_device), KernelInputKind::DescriptorSet, @@ -1669,6 +1702,10 @@ pub(crate) fn interface( ), SpecKey::MultiRegion => Constant::MultiRegion, SpecKey::DeepThreadgroup => Constant::Deep, + // A thread-position `[[stage_in]]` fetch's reach check, kept at the module's default + // (true) for every dispatch: one pipeline, whose fetch reads an element past the first + // 2^32 bytes from its bind offset as zero. + SpecKey::StageInReach => continue, _ => return Err(KernelInputKind::Specialization), }; constants.push((constant.id, set)); diff --git a/crates/metal2vulkan-runtime/src/tests/kernel_input.rs b/crates/metal2vulkan-runtime/src/tests/kernel_input.rs index 25954f62a..4a393e5fd 100644 --- a/crates/metal2vulkan-runtime/src/tests/kernel_input.rs +++ b/crates/metal2vulkan-runtime/src/tests/kernel_input.rs @@ -9,10 +9,6 @@ mod on_device { use crate::{ComputePipelineDescriptor, Error, FunctionDescriptor, Gap, KernelInputKind}; use crate::{NumberedSampler, StageSource}; use metal2vulkan::library::Library; - use metal2vulkan::metal::{AttributeFormat, StepFunction}; - use metal2vulkan::pipeline::{ - StageInputAttributeDescriptor, StageInputDescriptor, StageInputLayoutDescriptor, - }; use metal2vulkan_devtools::{engine_dir, llvm_assemble, AssembleError}; /// The kernel `entry` of the engine fixture `fixture.ll`, or None where `llvm-as` is missing. @@ -56,36 +52,6 @@ mod on_device { }); } - /// `stage_in_fetch` under a stage-input descriptor of its four attributes, one 40-byte - /// element per thread along x: the translator compiles its `[[stage_in]]` fetches, which the - /// encoder does not supply (`setStageInRegion:` sets only the region). - #[test] - fn a_stage_in_kernel_is_refused_as_stage_in() { - let Some(mut descriptor) = descriptor_of("kernel_stage_in", "stage_in_fetch") else { - return; - }; - let mut input = StageInputDescriptor::new(); - let mut layout = StageInputLayoutDescriptor::new(Some(40)); - layout.step_function = StepFunction::ThreadPositionInGridX; - input.layouts.insert(1, layout); - let attributes = [ - (AttributeFormat::Float4, 0), - (AttributeFormat::UInt4, 16), - (AttributeFormat::Int, 32), - (AttributeFormat::Half2, 36), - ]; - for (index, (format, offset)) in (0..).zip(attributes) { - let attribute = StageInputAttributeDescriptor::new(format, offset, 1); - input.attributes.insert(index, attribute); - } - descriptor.stage_input = Some(input); - refused_as( - "kernel_input_stage_in", - &descriptor, - KernelInputKind::StageIn, - ); - } - /// `a4_imageblock_extent`, a kernel over an explicit imageblock: its module states the /// imageblock's size as a runtime fact, which the encoder does not supply (it has no /// `setImageblockWidth:height:`), and the refusal names that fact. diff --git a/crates/metal2vulkan-runtime/src/tests/lowered.rs b/crates/metal2vulkan-runtime/src/tests/lowered.rs index b7d5fa4c5..feebaf107 100644 --- a/crates/metal2vulkan-runtime/src/tests/lowered.rs +++ b/crates/metal2vulkan-runtime/src/tests/lowered.rs @@ -43,13 +43,13 @@ fn a_lowering_error_is_not_reported_as_the_variant_s_gap() { ); assert!( matches!( - Lowered::Unsupplied(KernelInputKind::StageIn).kernel(partial_simdgroups), + Lowered::Unsupplied(KernelInputKind::Slot).kernel(partial_simdgroups), Err(Error::Unsupported(Gap::KernelInput { - kind: KernelInputKind::StageIn + kind: KernelInputKind::Slot })) ), "an input the encoder does not supply, of its kind: {}", - reported(&Lowered::Unsupplied(KernelInputKind::StageIn)) + reported(&Lowered::Unsupplied(KernelInputKind::Slot)) ); assert!( matches!( diff --git a/crates/metal2vulkan-runtime/src/tests/translate.rs b/crates/metal2vulkan-runtime/src/tests/translate.rs index cc060d087..399fb27aa 100644 --- a/crates/metal2vulkan-runtime/src/tests/translate.rs +++ b/crates/metal2vulkan-runtime/src/tests/translate.rs @@ -13,7 +13,8 @@ //! buffer land at their own addresses, 4, 8 or 12 bytes past a multiple of 16, as Metal places them. //! An access through a buffer argument at 2 GiB and past lands there, on every device that can //! allocate the buffer. A kernel that reads the stage-in region stores the region each dispatch -//! was encoded under, and is refused where the encoder set none. A read of a texture the kernel's function constants removed takes zero, +//! was encoded under, and is refused where the encoder set none; a kernel's `[[stage_in]]` +//! attributes are fetched from the element each step function names in that region. A read of a texture the kernel's function constants removed takes zero, //! and a read through a buffer argument bound to nothing reads the nil buffer's zeros. //! An observer whose partial-threadgroups variant's vote word takes its threadgroup memory past //! the device's limit runs its whole grids, threadgroup dispatches and indirect ones on its plain @@ -31,12 +32,17 @@ mod on_device { use crate::tests::command::on_device::{each_device, finished, within}; use crate::tests::{devices_of_the_cfgs_kind, keeps_a_blob}; + use crate::StageInKind; use crate::{ host_time, Block, Buffer, ComputePipelineDescriptor, ComputePipelineState, Device, DeviceOptions, DispatchType, Error, FunctionDescriptor, Gap, Gauges, Library, Limit, MemoryClass, PrecisionNote, Refusal, Region, StageSource, MAX_BUFFER_LENGTH, }; - use metal2vulkan::pipeline::{KernelVariant, RuntimeFact, StageEntries}; + use metal2vulkan::metal::{AttributeFormat, IndexType, StepFunction}; + use metal2vulkan::pipeline::{ + KernelVariant, RuntimeFact, StageEntries, StageInputAttributeDescriptor, + StageInputDescriptor, StageInputLayoutDescriptor, + }; use metal2vulkan::Budget; use metal2vulkan_devtools::{engine_dir, llvm_assemble, AssembleError}; use std::path::{Path, PathBuf}; @@ -3268,6 +3274,210 @@ define void @nil_read_kernel(ptr addrspace(1) %in, ptr addrspace(1) %out, i32 %t }); } + /// The words of element `e` of `every_device_fetches_stage_in_by_each_step_function`'s source + /// buffer, under its four attributes: `float4` at 0, `uint4` at 16, `int` at 32 and `half2` at + /// 36, 40 bytes an element. None is a NaN or a denormal. + fn stage_in_element(e: u32) -> [u32; 10] { + let f = [e as f32, e as f32 + 0.5, 1.0, -2.0].map(f32::to_bits); + let u = [e, 2 * e, e + 100, 0xdead_0000 | e]; + let i = (-(e as i32) - 1) as u32; + let h = (0x3c00 + e) | (0x4000 + e) << 16; + [f[0], f[1], f[2], f[3], u[0], u[1], u[2], u[3], i, h] + } + + /// `plain` (`engine/kernel_stage_in`'s `stage_in_fetch`) under a stage-input descriptor of its + /// four attributes, `Float4` at 0, `UInt4` at 16, `Int` at 32 and `Half2` at 36 of the buffer + /// at index 1, whose layout has `stride` (`None` for `MTLBufferLayoutStrideDynamic`), `step` and + /// `rate`; 16-bit indices at index 2. + fn stage_in_fetch( + plain: &ComputePipelineDescriptor, + stride: Option, + step: StepFunction, + rate: u32, + ) -> ComputePipelineDescriptor { + let mut input = StageInputDescriptor::new(); + let mut layout = StageInputLayoutDescriptor::new(stride); + layout.step_function = step; + layout.step_rate = rate; + input.layouts.insert(1, layout); + input.index_type = IndexType::UInt16; + input.index_buffer_index = 2; + let attributes = [ + (AttributeFormat::Float4, 0), + (AttributeFormat::UInt4, 16), + (AttributeFormat::Int, 32), + (AttributeFormat::Half2, 36), + ]; + for (index, (format, offset)) in (0..).zip(attributes) { + let attribute = StageInputAttributeDescriptor::new(format, offset, 1); + input.attributes.insert(index, attribute); + } + let mut descriptor = plain.clone(); + descriptor.stage_input = Some(input); + descriptor + } + + /// `engine/kernel_stage_in`'s `stage_in_fetch` under [`stage_in_fetch`]'s descriptor, its + /// layout of a 40-byte element and the buffer at index 1 bound at an offset of 16, once per + /// step function a kernel may use: each thread `x` + /// of a grid of 8 reports the bits of element `origin + min(x / rate, size - 1)` of a + /// thread-position step, of element `index[min(x, size - 1)] + origin` of an indexed one (16-bit + /// indices at index 2), and of element 0 of a constant step, so threads past the region read + /// its last element. Before the runtime fetched stage inputs the state was + /// `Gap::KernelInput`. + #[test] + fn every_device_fetches_stage_in_by_each_step_function() { + let Some(plain) = descriptor_of("kernel_stage_in", "stage_in_fetch") else { + return; + }; + const THREADS: u32 = 8; + const ELEMENTS: u32 = 16; + const OFFSET: u64 = 16; + const INDICES: [u16; 8] = [5, 3, 0, 7, 2, 6, 1, 4]; + // Each step, its rate, the region's origin and size on x, and the element each thread + // reads. + let element = |x: u32, step: StepFunction, rate: u32, origin: u32, size: u32| match step { + StepFunction::Constant => 0, + StepFunction::ThreadPositionInGridXIndexed => { + u32::from(INDICES[x.min(size - 1) as usize]) + origin + } + _ => origin + (x / rate).min(size - 1), + }; + let steps = [ + (StepFunction::ThreadPositionInGridX, 1, 1, 5), + (StepFunction::ThreadPositionInGridX, 2, 0, 3), + (StepFunction::ThreadPositionInGridXIndexed, 1, 2, 6), + (StepFunction::Constant, 0, 3, 8), + ]; + each_device("compute_stage_in_steps", |name, _, device| { + let mut buffers = Buffers::new(&device, 8192); + let source = buffers.buffer(OFFSET + 40 * u64::from(ELEMENTS)); + let bytes: Vec = (0..ELEMENTS) + .flat_map(stage_in_element) + .flat_map(u32::to_le_bytes) + .collect(); + write(&source, OFFSET, &bytes); + let indices = buffers.buffer(2 * INDICES.len() as u64); + write(&indices, 0, &INDICES.map(u16::to_le_bytes).concat()); + let queue = device.new_command_queue(4).expect("a queue"); + for (step, rate, origin, size) in steps { + let descriptor = stage_in_fetch(&plain, Some(40), step, rate); + let label = format!("{name}: {step:?} at rate {rate}"); + let state = state(&label, &device, &descriptor); + // Three `uint4`s a thread, and a spare thread's past the grid. + let out = buffers.buffer(48 * u64::from(THREADS + 1)); + let command_buffer = queue.command_buffer().expect("a command buffer"); + let mut encoder = command_buffer + .compute_command_encoder(DispatchType::Serial) + .expect("an encoder"); + encoder.set_compute_pipeline_state(&state).expect("a state"); + encoder.set_buffer(Some(&out), 0, 0).expect("a buffer"); + encoder + .set_buffer(Some(&source), OFFSET, 1) + .expect("a buffer"); + encoder.set_buffer(Some(&indices), 0, 2).expect("a buffer"); + encoder.set_stage_in_region(Region { + origin: [origin, 0, 0], + size: [size, 1, 1], + }); + encoder + .dispatch_threads([THREADS, 1, 1], [4, 1, 1]) + .unwrap_or_else(|error| panic!("{label}: {error}")); + encoder.end_encoding(); + command_buffer.commit().expect("a commit"); + finished(&label, &command_buffer); + assert_eq!(command_buffer.error(), None, "{label}"); + // Per thread: the `float4`'s bits, the `uint4`, then the `int`'s bits, each `half`'s + // and the thread's index. + let mut expected: Vec = (0..THREADS) + .flat_map(|x| { + let w = stage_in_element(element(x, step, rate, origin, size)); + let [front @ .., i, h] = w; + front.into_iter().chain([i, h & 0xffff, h >> 16, x]) + }) + .collect(); + expected.extend([0; 12]); + assert_eq!( + words(&out, 0, 12 * (THREADS as usize + 1)), + expected, + "{label}: the attributes each thread fetched" + ); + println!("{label}: each thread fetched the element its step names"); + } + }); + } + + /// The forms of a kernel's `[[stage_in]]` the runtime does not build are each refused as + /// `Gap::StageIn` of its own kind: a thread-position layout of `MTLBufferLayoutStrideDynamic` + /// (`DynamicStride`) and an indexed step at a step rate of 2 (`IndexedStepRate`) at the state's + /// creation, and `setStageInRegionWithIndirectBuffer:indirectBufferOffset:` + /// (`IndirectRegion`) at its call. A constant step of a dynamic layout reads no stride, and an + /// attribute the kernel does not read (a fifth, at buffer 3, of a dynamic layout) is fetched by + /// nothing: both states are made. + #[test] + fn every_device_refuses_each_unbuilt_stage_in_form_by_its_kind() { + let Some(plain) = descriptor_of("kernel_stage_in", "stage_in_fetch") else { + return; + }; + let refused = |made: Result, kind: StageInKind| matches!(made, Err(Error::Unsupported(Gap::StageIn { kind: found })) if found == kind); + let dynamic = stage_in_fetch(&plain, None, StepFunction::ThreadPositionInGridX, 1); + let indexed = stage_in_fetch( + &plain, + Some(40), + StepFunction::ThreadPositionInGridXIndexed, + 2, + ); + let constant = stage_in_fetch(&plain, None, StepFunction::Constant, 0); + let mut unread = stage_in_fetch(&plain, Some(40), StepFunction::ThreadPositionInGridX, 1); + if let Some(input) = &mut unread.stage_input { + let mut layout = StageInputLayoutDescriptor::new(None); + layout.step_function = StepFunction::ThreadPositionInGridX; + input.layouts.insert(3, layout); + let attribute = StageInputAttributeDescriptor::new(AttributeFormat::Float, 0, 3); + input.attributes.insert(4, attribute); + } + each_device("compute_stage_in_unbuilt", |name, _, device| { + let made = |descriptor: &ComputePipelineDescriptor| { + device.new_compute_pipeline_state(descriptor, crate::tests::no_constexpr_samplers) + }; + for (descriptor, kind) in [ + (&dynamic, StageInKind::DynamicStride), + (&indexed, StageInKind::IndexedStepRate), + ] { + let answer = made(descriptor); + assert!( + refused(answer, kind), + "{name}: not Gap::StageIn of {kind:?}" + ); + } + for (descriptor, what) in [ + (&constant, "a constant step of a dynamic layout"), + (&unread, "an unread attribute of a dynamic layout"), + ] { + made(descriptor).unwrap_or_else(|error| panic!("{name}: {what}: {error}")); + } + let mut buffers = Buffers::new(&device, 4096); + let region = buffers.buffer(24); + let queue = device.new_command_queue(4).expect("a queue"); + let command_buffer = queue.command_buffer().expect("a command buffer"); + let mut encoder = command_buffer + .compute_command_encoder(DispatchType::Serial) + .expect("an encoder"); + let indirect = encoder.set_stage_in_region_with_indirect_buffer(®ion, 0); + assert!( + matches!( + indirect, + Err(Error::Unsupported(Gap::StageIn { + kind: StageInKind::IndirectRegion + })) + ), + "{name}: the indirect region: {indirect:?}" + ); + encoder.end_encoding(); + println!("{name}: each unbuilt stage-in form was refused by its kind"); + }); + } + /// The kernel `entry` of the harness fixture (`fixtures/public/harness/workloads.ll`, our /// own), or None where `llvm-as` is missing. fn harness_kernel(entry: &str) -> Option { diff --git a/crates/metal2vulkan-validation/src/requirement.rs b/crates/metal2vulkan-validation/src/requirement.rs index 11a1588cf..f993b55b8 100644 --- a/crates/metal2vulkan-validation/src/requirement.rs +++ b/crates/metal2vulkan-validation/src/requirement.rs @@ -229,10 +229,10 @@ pub enum ToolingRequirement { /// compute encoder binds neither, so no call of it runs such a kernel. KernelAccelerationStructure, /// A compute kernel's `[[stage_in]]` inputs, or its dispatch's stage-in region - /// (`executor_contract::case_requirements`). The runtime's make of a pipeline state that - /// fetches stage inputs is `metal2vulkan_runtime::Gap::KernelInput` of - /// `KernelInputKind::StageIn`, a known gap its README states, held on lavapipe by the runtime's - /// device test `tests::kernel_input::a_stage_in_kernel_is_refused_as_stage_in`. + /// (`executor_contract::case_requirements`). The runtime fetches stage inputs, but the engine's + /// run through it (`candidate::platform::runtime`) makes its pipeline state without the + /// case's stage-input descriptor and sets no stage-in region, so no call of it runs such a + /// case as written. KernelStageInput, /// A rasterization-rate map (`executor_contract::case_requirements`): a render pass's, or one /// whose parameter data a buffer or an argument buffer's buffer holds. The runtime makes no diff --git a/crates/metal2vulkan/tests/api_signatures.tsv b/crates/metal2vulkan/tests/api_signatures.tsv index 5e51a99ac..e8d3ca5d5 100644 --- a/crates/metal2vulkan/tests/api_signatures.tsv +++ b/crates/metal2vulkan/tests/api_signatures.tsv @@ -604,6 +604,7 @@ enum metal2vulkan-runtime::Stage #[cfg_attr(feature = "serde", derive(serde::Ser enum metal2vulkan-runtime::StageBreach #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[non_exhaustive] pub enum StageBreach enum metal2vulkan-runtime::StageFill #[derive(Clone, Copy, Debug, PartialEq, Eq)] #[non_exhaustive] pub enum StageFill enum metal2vulkan-runtime::StageGap #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[non_exhaustive] pub enum StageGap +enum metal2vulkan-runtime::StageInKind #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[non_exhaustive] pub enum StageInKind enum metal2vulkan-runtime::StageSource #[derive(Clone, Debug, PartialEq, Eq)] pub enum StageSource enum metal2vulkan-runtime::StorageMode #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub enum StorageMode enum metal2vulkan-runtime::StoreAction #[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)] #[non_exhaustive] pub enum StoreAction @@ -5902,6 +5903,7 @@ method metal2vulkan-runtime::ComputeCommandEncoder::set_compute_pipeline_state p method metal2vulkan-runtime::ComputeCommandEncoder::set_sampler_state pub fn set_sampler_state(&mut self, sampler: Option<&SamplerState>, index: u32) -> Result<(), Error> method metal2vulkan-runtime::ComputeCommandEncoder::set_sampler_state_with_lod_clamps pub fn set_sampler_state_with_lod_clamps(&mut self, sampler: Option<&SamplerState>, lod_min_clamp: f32, lod_max_clamp: f32, index: u32) -> Result<(), Error> method metal2vulkan-runtime::ComputeCommandEncoder::set_stage_in_region pub fn set_stage_in_region(&mut self, region: Region) +method metal2vulkan-runtime::ComputeCommandEncoder::set_stage_in_region_with_indirect_buffer pub fn set_stage_in_region_with_indirect_buffer(&mut self, _buffer: &Buffer, _offset: u64) -> Result<(), Error> method metal2vulkan-runtime::ComputeCommandEncoder::set_texture pub fn set_texture(&mut self, texture: Option<&Texture>, index: u32) -> Result<(), Error> method metal2vulkan-runtime::ComputeCommandEncoder::set_threadgroup_memory_length pub fn set_threadgroup_memory_length(&mut self, length: u32, index: u32) -> Result<(), Error> method metal2vulkan-runtime::ComputeCommandEncoder::update_fence pub fn update_fence(&mut self, fence: &Fence) -> Result<(), Error> @@ -8347,6 +8349,7 @@ variant metal2vulkan-runtime::Gap::PartialSimdgroups PartialSimdgroups { threads variant metal2vulkan-runtime::Gap::PartialThreadgroups PartialThreadgroups { threads_per_grid: [u32; 3], threads_per_threadgroup: [u32; 3] } variant metal2vulkan-runtime::Gap::RenderPass RenderPass { kind: RenderPassKind } variant metal2vulkan-runtime::Gap::RenderPipeline RenderPipeline { kind: RenderPipelineKind } +variant metal2vulkan-runtime::Gap::StageIn StageIn { kind: StageInKind } variant metal2vulkan-runtime::Gap::StageSize StageSize { weight: u64, cause: StageGap } variant metal2vulkan-runtime::Gap::StorageElement StorageElement { slot: Option, pixel_format: PixelFormat } variant metal2vulkan-runtime::Gap::SurfaceUsage SurfaceUsage { pixel_format: PixelFormat, missing: u32 } @@ -8385,7 +8388,6 @@ variant metal2vulkan-runtime::KernelInputKind::RuntimeFact RuntimeFact { fact: & variant metal2vulkan-runtime::KernelInputKind::Slot Slot variant metal2vulkan-runtime::KernelInputKind::Specialization Specialization variant metal2vulkan-runtime::KernelInputKind::StageFlags StageFlags -variant metal2vulkan-runtime::KernelInputKind::StageIn StageIn variant metal2vulkan-runtime::KernelInputKind::Workgroup Workgroup variant metal2vulkan-runtime::Limit::AllocationNotMapped AllocationNotMapped { class: MemoryClass, len: u64 } variant metal2vulkan-runtime::Limit::BlockIds BlockIds @@ -8638,6 +8640,9 @@ variant metal2vulkan-runtime::StageGap::Breach Breach(crate::StageBreach) variant metal2vulkan-runtime::StageGap::NoCacheDirectory NoCacheDirectory variant metal2vulkan-runtime::StageGap::NoPipelineCache NoPipelineCache variant metal2vulkan-runtime::StageGap::RenderStage RenderStage +variant metal2vulkan-runtime::StageInKind::DynamicStride DynamicStride +variant metal2vulkan-runtime::StageInKind::IndexedStepRate IndexedStepRate +variant metal2vulkan-runtime::StageInKind::IndirectRegion IndirectRegion variant metal2vulkan-runtime::StageSource::Compiled Compiled(CompiledFunction) variant metal2vulkan-runtime::StageSource::Function Function(FunctionDescriptor) variant metal2vulkan-runtime::StorageMode::Managed Managed diff --git a/docs/CONFORMANCE-COVERAGE.md b/docs/CONFORMANCE-COVERAGE.md index 37dd52e8c..9f4cf9d5b 100644 --- a/docs/CONFORMANCE-COVERAGE.md +++ b/docs/CONFORMANCE-COVERAGE.md @@ -30,19 +30,19 @@ Its limits, measured rather than asserted: | | | |---|---| -| implemented Metal items | 621 | +| implemented Metal items | 622 | | of those, unreachable: `objc2-metal` binds no name for them | 1 | -| so reachable by some case | 620 | -| of the reachable, exercised by the suite's Metal leg | 545 | +| so reachable by some case | 621 | +| of the reachable, exercised by the suite's Metal leg | 546 | | of the reachable, not exercised | 75 | | share of the reachable exercised | 88% | -| of those exercised, no case reaching it loosens anything | 325 | +| of those exercised, no case reaching it loosens anything | 326 | | of those exercised, a case reaching it loosens some site | 220 | | case modules | 182 | | committed recordings | 1325 | | distinct SDK items the Metal leg reaches, of any status | 808 | | of those, reached only where this cannot name the family | 5 | -| ledger rows (a case whose gap is recorded) | 8024 | +| ledger rows (a case whose gap is recorded) | 7943 | | 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 | @@ -371,7 +371,7 @@ Every container with an implemented item, by how much of it the suite reaches. * | `MTLRasterizationRateSampleArray` | 3 | 0 | 0 | 3 | | | `MTLRenderPipelineReflection` | 9 | 0 | 6 | 3 | `fragment_imageblock_reflection`, `mesh_pipeline_reflection`, `pipeline_options`, `texture_accesses`… | | `MTLBuffer` | 6 | 0 | 4 | 2 | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`… | -| `MTLComputeCommandEncoder` | 25 | 0 | 23 | 2 | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`… | +| `MTLComputeCommandEncoder` | 26 | 0 | 24 | 2 | `argument_encoders`, `astc_textures`, `attribute_formats`, `attribute_strides`… | | `MTLFunctionReflection` | 3 | 1 | 0 | 2 | | | `MTLRasterizationRateMapDescriptor` | 10 | 0 | 8 | 2 | `rate_map_degenerate_forms`, `rate_map_sweeps`, `rate_maps` | | `MTLAttributeDescriptorArray` | 3 | 0 | 2 | 1 | `attribute_formats`, `attribute_strides`, `blit_indirect_commands`, `indirect_command_depth`… | @@ -459,7 +459,7 @@ A container is one Objective-C type; the SDK header it sits in is the family of | `MTLStageInputOutputDescriptor.h` | 21 | 18 | 3 | | `MTLVertexDescriptor.h` | 19 | 16 | 3 | | `MTLBuffer.h` | 6 | 4 | 2 | -| `MTLComputeCommandEncoder.h` | 25 | 23 | 2 | +| `MTLComputeCommandEncoder.h` | 26 | 24 | 2 | | `MTLComputePipeline.h` | 24 | 22 | 2 | | `MTLCommandBuffer.h` | 19 | 18 | 1 | | `MTLCommandQueue.h` | 4 | 3 | 1 | @@ -671,7 +671,7 @@ Each case module: the cases it holds, the `Side` methods it calls, and how many | `sparse_mappings` | 14 | 14 | every field | 32 | | `sparse_tiles` | 4 | 4 | every field | 1 | | `srgb_fetch` | 2 | 2 | every field | 132 | -| `stage_in_regions` | 1 | 1 | every field | 48 | +| `stage_in_regions` | 1 | 1 | every field | 49 | | `stage_in_unread` | 1 | 1 | every field | 48 | | `stencil_resolve_pairs` | 2 | 2 | every field | 134 | | `stencil_resolved_sample` | 1 | 1 | every field | 134 | @@ -938,6 +938,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | `setSamplerStates:lodMinClamps:lodMaxClamps:withRange:` | yes | `compute_encoder_commands`, `compute_heap_residency` | 9 | | `setThreadgroupMemoryLength:atIndex:` | yes | `compute_encoder_commands`, `compute_heap_residency`, `threadgroup_start` | 10 | | `setStageInRegion:` | yes | `attribute_formats`, `attribute_strides`, `compute_heap_residency`, `stage_in_regions`, `stage_in_unread` | 9 | +| `setStageInRegionWithIndirectBuffer:indirectBufferOffset:` | yes | `stage_in_regions` | 1 | | `dispatchThreadgroups:threadsPerThreadgroup:` | yes | `argument_encoders`, `attribute_strides`, `buffer_bind_off_alignment`, `buffer_depth_samples`, `compute_encoder_commands`, `compute_heap_residency`, `compute_threadgroups`, `extended_range_two_planes`, `pass_bytes`, `shared_exponent_storage`, `simdgroup_lockstep`, `threadgroup_start`, `vector_word_phases`, `visible_tables` | 61 | | `dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:` | yes | `compute_encoder_commands`, `compute_heap_residency` | 9 | | `dispatchThreads:threadsPerThreadgroup:` | yes | `astc_textures`, `attribute_formats`, `bicubic_texel_classes`, `blit_indirect_commands`, `border_swizzles`, `buffer_tails`, `chroma_pairs`, `compressed_decode`, `compute_render_chains`, `denormal_word_fetches`, `depth_texel_reads`, `etc_textures`, `extended_range_blends`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `frame_chains`, `function_constants_half3`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `indirect_ranges`, `level_sizes`, `math_routines`, `nan_integer_conversions`, `nearest_positions`, `norm_storage_writes`, `pixel_downscales`, `pixel_samplers`, `read_through`, `read_write_tiers`, `resolve_then_load`, `rgb10a2_srgb`, `sampler_crossings`, `sampler_filtering`, `signed_remainders`, `stage_in_regions`, `stage_in_unread`, `swizzled_storage`, `texel_swizzles`, `texture_buffer_tails`, `texture_view_casts`, `two_plane_samples`, `ycbcr_gathers`, `ycbcr_minify`, `ycbcr_textures` | 340 | @@ -1799,7 +1800,6 @@ An item the suite's Metal leg calls whose coverage-map status is not implemented | `MTLComputeCommandEncoder` `setBufferOffset:attributeStride:atIndex:` | missing | a bind with a per-bind stride, which stage-in and vertex fetch read | `attribute_strides`, `compute_heap_residency` | | `MTLComputeCommandEncoder` `setBuffers:offsets:attributeStrides:withRange:` | missing | a bind with a per-bind stride, which stage-in and vertex fetch read | `attribute_strides`, `compute_heap_residency` | | `MTLComputeCommandEncoder` `setBytes:length:attributeStride:atIndex:` | missing | a bind with a per-bind stride, which stage-in and vertex fetch read | `attribute_strides`, `compute_heap_residency` | -| `MTLComputeCommandEncoder` `setStageInRegionWithIndirectBuffer:indirectBufferOffset:` | missing | a stage-in region the GPU reads | `stage_in_regions` | | `MTLComputeCommandEncoder` `setVisibleFunctionTable:atBufferIndex:` | missing | function tables, function handles and dynamic libraries; a kernel or a draw's function that reads a function table is refused (`Gap::KernelInput`, `Gap::DrawInput`) | `visible_tables` | | `MTLComputePipelineDescriptor` `binaryArchives` | out of scope | the consumer's (metal2vulkan-runtime's README, What the consumer implements) | `binary_archives`, `compute_pipeline_descriptors` | | `MTLComputePipelineDescriptor` `label` | out of scope | the consumer's (metal2vulkan-runtime's README, What the consumer implements) | `compute_pipeline_descriptors`, `pipeline_facts`, `pipeline_handlers` | @@ -2253,10 +2253,10 @@ A case whose difference from Metal is recorded rather than compared away. The le | `astc-8x8-ldr` | The device's own answer (rule 2): this device's format queries offer no image of MTLPixelFormatASTC_8x8_LDR with the usage the case asks, so rt makes no such te… | | `astc-8x8-srgb` | The device's own answer (rule 1): ANV's decode of the case's sRGB blocks, read through the device's decode (notes `compressed-texel-decode` and `srgb-texel-deco… | | `astc-8x8-srgb` | The device's own answer (rule 2): this device's format queries offer no image of MTLPixelFormatASTC_8x8_sRGB with the usage the case asks, so rt makes no such t… | -| `attribute-stride-buffer` | 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).… | -| `attribute-stride-buffer-offset` | 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).… | -| `attribute-stride-inline-bytes` | 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).… | -| `attribute-stride-plural-buffers` | 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).… | +| `attribute-stride-buffer` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | +| `attribute-stride-buffer-offset` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | +| `attribute-stride-inline-bytes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | +| `attribute-stride-plural-buffers` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | | `attribute-stride-vertex-buffer` | 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).… | | `attribute-stride-vertex-bytes` | 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).… | | `border-swizzles-rgba8unorm` | The device's own answer (rule 1), a known gap of the runtime (its README, Known gaps of textures): a runtime sampler of an opaque-black border, clamp to border … | @@ -7393,51 +7393,6 @@ A case whose difference from Metal is recorded rather than compared away. The le | `astc-8x8-srgb` | The device's own answer (rule 2): this device's format queries offer no image of MTLPixelFormatASTC_8x8_sRGB with the usage the case asks, so rt makes no such t… | | `astc-8x8-srgb` | The device's own answer (rule 2): this device's format queries offer no image of MTLPixelFormatASTC_8x8_sRGB with the usage the case asks, so rt makes no such t… | | `astc-8x8-srgb` | The device's own answer (rule 2): this device's format queries offer no image of MTLPixelFormatASTC_8x8_sRGB with the usage the case asks, so rt makes no such t… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-class-crossings` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `attribute-format-fetches` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | | `blit-copy-indirect-command-buffer` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every pipeline descriptor's supportIndirectComma… | | `blit-generated-mipmaps-bgr10xr` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no texture or view of MTLPixelFormatBGR10_XR). r… | | `blit-generated-mipmaps-bgra10xr` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no texture or view of MTLPixelFormatBGRA10_XR). … | @@ -8713,43 +8668,6 @@ A case whose difference from Metal is recorded rather than compared away. The le | `sparse-tile-size-multisample` | 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… | | `sparse-tile-size-multisample` | 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… | | `sparse-tile-size-multisample` | 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… | -| `stage-in-region-clamps` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | -| `stage-in-unread-attributes` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every compute pipeline descriptor's stageInputDe… | | `texture-buffer-fill-groups` | refused: this side's own gap: it answers no `fillTexture:level:slice:region:bytes:length:` yet (`Unavailable`), the program's first step, now that the runtime m… | | `texture-buffer-fill-streams` | refused: this side's own gap: it answers no `fillTexture:level:slice:region:bytes:length:` yet (`Unavailable`), the program's first step, now that the runtime m… | | `texture-buffer-long-fills` | refused: this side's own gap: it answers no `fillTexture:level:slice:region:bytes:length:` yet (`Unavailable`), the program's first step, now that the runtime m… | @@ -10088,4 +10006,5 @@ A case whose difference from Metal is recorded rather than compared away. The le | `pixel-samplers-rgba16f-nearest-zero` | The device's own answer (rule 1): `norm` differs from Metal's (`arg`, `const` and `slot` read Metal's answer). The device's nearest filter at the normalized coo… | | `pixel-samplers-rgba16f-nearest-zero` | The device's own answer (rule 1): `norm` differs from Metal's (`arg`, `const` and `slot` read Metal's answer). The device's nearest filter at the normalized coo… | | `pixel-samplers-rgba16f-nearest-zero` | The device's own answer (rule 1): `norm` differs from Metal's (`arg`, `const` and `slot` read Metal's answer). The device's nearest filter at the normalized coo… | +| `stage-in-region-clamps` | refused: no stream uses it yet (four-case census, m3-max-62954..62957: 35 streams, no setStageInRegionWithIndirectBuffer:indirectBufferOffset:). rt refuses the … | diff --git a/docs/METAL-COVERAGE.md b/docs/METAL-COVERAGE.md index 0cc89f767..74a44e46b 100644 --- a/docs/METAL-COVERAGE.md +++ b/docs/METAL-COVERAGE.md @@ -10,12 +10,12 @@ Every public item of the macOS 27.2 SDK (Xcode 27.2, 27B52)'s Metal headers, by | Status | Items | Of which deprecated | |---|---|---| -| implemented | 622 | 29 | -| missing | 1089 | 34 | +| implemented | 623 | 29 | +| missing | 1088 | 34 | | out of scope | 424 | 5 | | all | 2135 | 68 | -Implemented by the runtime: 266; by the translator's values: 356. Missing by size: S 181, M 205, L 327, XL 376. +Implemented by the runtime: 267; by the translator's values: 356. Missing by size: S 181, M 204, L 327, XL 376. ## Missing, in build order @@ -33,7 +33,7 @@ Cheap items a plain app calls first, then medium pieces by how often a plain app | a buffer made with bytes | S | 1 | `MTLDevice.newBufferWithBytes:length:options:` | | pipeline creation forms (from a function, with a completion handler) | S | 6 | `MTLDevice.newRenderPipelineStateWithDescriptor:options:completionHandler:`, `MTLDevice.newComputePipelineStateWithFunction:error:`, `MTLDevice.newComputePipelineStateWithFunction:options:reflection:error:`, ... | | render pass descriptor fields | S/M/L | 8 | `MTLRenderPassAttachmentDescriptor.depthPlane`, `MTLRenderPassAttachmentDescriptor.storeActionOptions`, `MTLRenderPassDescriptor.imageblockSampleLength`, ... | -| encoder calls (stride setters, indirect draws, store action options, a render encoder's heap uses) | S/M/L | 25 | `MTLBlitCommandEncoder.synchronizeTexture:slice:level:`, `MTLBlitCommandEncoder.copyFromTexture:sourceSlice:sourceLevel:toTexture:destinationSlice:destinationLevel:sliceCount:levelCount:`, `MTLBlitCommandEncoder.copyFromTexture:toTexture:`, ... | +| encoder calls (stride setters, indirect draws, store action options, a render encoder's heap uses) | S/M/L | 24 | `MTLBlitCommandEncoder.synchronizeTexture:slice:level:`, `MTLBlitCommandEncoder.copyFromTexture:sourceSlice:sourceLevel:toTexture:destinationSlice:destinationLevel:sliceCount:levelCount:`, `MTLBlitCommandEncoder.copyFromTexture:toTexture:`, ... | | `textureBarrier` and queue-stage barriers | S/M | 2 | `MTLCommandEncoder.barrierAfterQueueStages:beforeStages:`, `MTLRenderCommandEncoder.textureBarrier` | | a pipeline state's reflection after creation | S | 2 | `MTLComputePipelineState.reflection`, `MTLRenderPipelineState.reflection` | | function handles by name, and a handle's type and ID | S | 4 | `MTLComputePipelineState.functionHandleWithName:`, `MTLFunctionHandle.functionType`, `MTLFunctionHandle.gpuResourceID`, ... | @@ -1245,7 +1245,7 @@ Cheap items a plain app calls first, then medium pieces by how often a plain app | `MTLComputeCommandEncoder.setThreadgroupMemoryLength:atIndex:` | method | implemented | `ComputeCommandEncoder::set_threadgroup_memory_length` (runtime) | | `MTLComputeCommandEncoder.setImageblockWidth:height:` | method | missing | M: explicit imageblocks; a kernel that declares one is refused (`Gap::KernelInput`) | | `MTLComputeCommandEncoder.setStageInRegion:` | method | implemented | `ComputeCommandEncoder::set_stage_in_region` (runtime) | -| `MTLComputeCommandEncoder.setStageInRegionWithIndirectBuffer:indirectBufferOffset:` | method | missing | M: a stage-in region the GPU reads | +| `MTLComputeCommandEncoder.setStageInRegionWithIndirectBuffer:indirectBufferOffset:` | method | implemented | `ComputeCommandEncoder::set_stage_in_region_with_indirect_buffer` (runtime): always refused: a stage-in region the GPU reads is not built (`Gap::StageIn`) | | `MTLComputeCommandEncoder.dispatchThreadgroups:threadsPerThreadgroup:` | method | implemented | `ComputeCommandEncoder::dispatch_threadgroups` (runtime) | | `MTLComputeCommandEncoder.dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:` | method | implemented | `ComputeCommandEncoder::dispatch_threadgroups_with_indirect_buffer` (runtime) | | `MTLComputeCommandEncoder.dispatchThreads:threadsPerThreadgroup:` | method | implemented | `ComputeCommandEncoder::dispatch_threads` (runtime) | diff --git a/docs/REFUSALS.md b/docs/REFUSALS.md index 9f02fbfee..0b311ff1c 100644 --- a/docs/REFUSALS.md +++ b/docs/REFUSALS.md @@ -33,7 +33,7 @@ Columns: | Devices below the runtime's floor | 8 | 8 | 0 | 0 | 0 | 0 | 0 | | The runtime's `Refusal` | 84 | 84 | 0 | 0 | 0 | 0 | 0 | | The runtime's `Limit` | 17 | 17 | 0 | 0 | 0 | 0 | 0 | -| The runtime's `Gap` | 32 | 32 | 0 | 0 | 0 | 0 | 0 | +| The runtime's `Gap` | 33 | 33 | 0 | 0 | 0 | 0 | 0 | ## Totals by basis @@ -46,7 +46,7 @@ Columns: | Devices below the runtime's floor | 0 | 0 | 0 | 8 | 0 | 0 | 0 | 0 | | The runtime's `Refusal` | 22 | 26 | 0 | 0 | 36 | 0 | 0 | 0 | | The runtime's `Limit` | 0 | 0 | 0 | 13 | 4 | 0 | 0 | 0 | -| The runtime's `Gap` | 0 | 0 | 0 | 3 | 29 | 0 | 0 | 0 | +| The runtime's `Gap` | 0 | 0 | 0 | 3 | 30 | 0 | 0 | 0 | ## 1. Translator and front-end refusals (`Unsupported`: a `Feature` and its `Needs`) @@ -337,10 +337,11 @@ Columns: |---|---|---|---|---|---| | `IndirectCommandBuffers` | An indirect command buffer, its execution, or a compute pipeline state for one, of what the runtime does not build, `kind` naming it | every device (a public call's own check of its arguments) | `ours`: the first cut of indirect command buffers builds that alone | 5: `crates/metal2vulkan-runtime/src/indirect.rs (new_indirect_command_buffer)`, `crates/metal2vulkan-runtime/src/indirect.rs (shape)` (+3) | `-` | | `KernelInput` | A kernel that reads something the compute encoder does not supply yet, `kind` naming what | every device (a public call's own check of its arguments) | `ours`: the encoder supplies only those | 1: `crates/metal2vulkan-runtime/src/pipeline.rs (gap)` | `-` | +| `StageIn` | A form of a kernel's `[[stage_in]]` that is not built, `kind` naming which | every device (a public call's own check of its arguments) | `ours`: no replay stream makes a compute state with a stage-input descriptor or sets a stage-in region indirectly; what Metal reads at an indexed step's rate past 1 is not measured | 2: `crates/metal2vulkan-runtime/src/encoder.rs (set_stage_in_region_with_indirect_buffer)`, `crates/metal2vulkan-runtime/src/pipeline.rs (of)` | `-` | | `ImageblockLength` | An imageblock length Metal answers that no case measures | every device (a public call's own check of its arguments) | `ours`: the length is not measured against Metal's | 2: `crates/metal2vulkan-runtime/src/pipeline.rs (imageblock_memory_length_for_dimensions)`, `crates/metal2vulkan-runtime/src/render.rs (imageblock_sample_length)` | `-` | | `PartialSimdgroups` | A dispatch whose threadgroup is not whole SIMD groups of a kernel whose tier runs each SIMD group as one subgroup of `width` threads (a pinned... | every device (a public call's own check of its arguments) | `ours`: no emulated-SIMD-group module | 1: `crates/metal2vulkan-runtime/src/encoder.rs (decide)` | `-` | | `PartialThreadgroups` | `dispatchThreads` with a grid that is not a whole number of threadgroups on some axis, of a kernel that observes its threadgroup partition and... | every device (a public call's own check of its arguments) | `ours`: the translator's partial-threadgroups variant does not take the emulated SIMD-group tier, nor a vote word past the workgroup memory | 1: `crates/metal2vulkan-runtime/src/encoder.rs (decide)` | `-` | -| `NoStageInRegion` | A dispatch of a kernel that reads the stage-in region (`[[grid_origin]]`, `[[grid_size]]`) on an encoder that never set one... | every device (a public call's own check of its arguments) | `ours`: no replay stream dispatches such a kernel without setting a region | 1: `crates/metal2vulkan-runtime/src/encoder.rs (dispatch)` | `-` | +| `NoStageInRegion` | A dispatch of a kernel that reads the stage-in region (`[[grid_origin]]`, `[[grid_size]]`, a `[[stage_in]]` attribute of a thread-position step)... | every device (a public call's own check of its arguments) | `ours`: no replay stream dispatches such a kernel without setting a region | 1: `crates/metal2vulkan-runtime/src/encoder.rs (dispatch)` | `-` | | `IndirectPrivateArena` | `dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:` of a kernel whose private memory lives in the runtime's... | every device (a public call's own check of its arguments) | `ours`: no replay stream dispatches such a kernel indirectly | 1: `crates/metal2vulkan-runtime/src/encoder.rs (dispatch)` | `-` | | `MemorylessTexture` | A texture of `Memoryless` storage, which only render passes use | every device (a public call's own check of its arguments) | `ours`: render passes are not built | 1: `crates/metal2vulkan-runtime/src/texture.rs (checked)` | `-` | | `TextureBufferSwizzle` | A texture buffer (`MTLTextureTypeTextureBuffer`) with a swizzle other than each channel's own (`Buffer::new_texture`), which Metal applies to its... | every device (a public call's own check of its arguments) | `ours`: a texel buffer view has no component mapping, and a texture's resource ID carries no swizzle to the shader; no recorded stream makes one | 1: `crates/metal2vulkan-runtime/src/texture.rs (texel_texture)` | `-` | @@ -617,6 +618,7 @@ Each refusal's sites, with the function that builds it. - `rt:Limit::TextureSamples`: `crates/metal2vulkan-runtime/src/texture.rs (plan)` - `rt:Gap::IndirectCommandBuffers`: `crates/metal2vulkan-runtime/src/indirect.rs (new_indirect_command_buffer)`; `crates/metal2vulkan-runtime/src/indirect.rs (shape)`; `crates/metal2vulkan-runtime/src/pipeline.rs (compute_pipeline_state)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (draw)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (execution_part)` - `rt:Gap::KernelInput`: `crates/metal2vulkan-runtime/src/pipeline.rs (gap)` +- `rt:Gap::StageIn`: `crates/metal2vulkan-runtime/src/encoder.rs (set_stage_in_region_with_indirect_buffer)`; `crates/metal2vulkan-runtime/src/pipeline.rs (of)` - `rt:Gap::ImageblockLength`: `crates/metal2vulkan-runtime/src/pipeline.rs (imageblock_memory_length_for_dimensions)`; `crates/metal2vulkan-runtime/src/render.rs (imageblock_sample_length)` - `rt:Gap::PartialSimdgroups`: `crates/metal2vulkan-runtime/src/encoder.rs (decide)` - `rt:Gap::PartialThreadgroups`: `crates/metal2vulkan-runtime/src/encoder.rs (decide)` diff --git a/scripts/metal-coverage/coverage.tsv b/scripts/metal-coverage/coverage.tsv index 8458becbe..6ac427fc3 100644 --- a/scripts/metal-coverage/coverage.tsv +++ b/scripts/metal-coverage/coverage.tsv @@ -934,7 +934,7 @@ MTLComputeCommandEncoder.h MTLComputeCommandEncoder method setSamplerStates:lodM MTLComputeCommandEncoder.h MTLComputeCommandEncoder method setThreadgroupMemoryLength:atIndex: I runtime ComputeCommandEncoder::set_threadgroup_memory_length MTLComputeCommandEncoder.h MTLComputeCommandEncoder method setImageblockWidth:height: M explicit imageblocks; a kernel that declares one is refused (`Gap::KernelInput`) M encoder-calls MTLComputeCommandEncoder.h MTLComputeCommandEncoder method setStageInRegion: I runtime ComputeCommandEncoder::set_stage_in_region -MTLComputeCommandEncoder.h MTLComputeCommandEncoder method setStageInRegionWithIndirectBuffer:indirectBufferOffset: M a stage-in region the GPU reads M encoder-calls +MTLComputeCommandEncoder.h MTLComputeCommandEncoder method setStageInRegionWithIndirectBuffer:indirectBufferOffset: I runtime ComputeCommandEncoder::set_stage_in_region_with_indirect_buffer always refused: a stage-in region the GPU reads is not built (`Gap::StageIn`) MTLComputeCommandEncoder.h MTLComputeCommandEncoder method dispatchThreadgroups:threadsPerThreadgroup: I runtime ComputeCommandEncoder::dispatch_threadgroups MTLComputeCommandEncoder.h MTLComputeCommandEncoder method dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup: I runtime ComputeCommandEncoder::dispatch_threadgroups_with_indirect_buffer MTLComputeCommandEncoder.h MTLComputeCommandEncoder method dispatchThreads:threadsPerThreadgroup: I runtime ComputeCommandEncoder::dispatch_threads