Conformance ledger: the BGRA4Unorm texture buffer's rows follow the device's texel-buffer query

a3fb852de3 (a heap makes texture buffers in place) sizes a heap's texture buffer through the
format's texel form, which takes a format whose buffer features hold both the uniform and the
storage texel buffer. On the Iris Xe, whose ANV holds A4R4G4B4_UNORM_PACK16 so, the heap's size
and alignment of the format-footprints-plain-stragglers BGRA4Unorm texture buffer now answers
(Metal's 128 at 16), and the case reaches its makes-texture site, which the runtime's side refuses
as Refusal::TextureBufferNotOverBuffer, the consumer's contract. The ledger's one row for every
venue refused the size-and-align site, so the Iris's conformance replay went red at pin M
(m3-max-82006: an unlisted makes-texture refusal) while the RTX 3090's held (m3-max-82034).

Now:
- the size-and-align row is one per venue whose device lacks the storage texel buffer of both of
  the format's Vulkan formats (NVIDIA, RADV, llvmpipe, Apple M3 Max, UHD Graphics 630), naming
  a3fb852de3;
- the Iris Xe has a makes-texture row with the consumer's-contract reason the other texture
  buffers' rows carry, naming a3fb852de3;
- each says Metal's validation layer refuses this format for a texture buffer, so what such a
  texture reads is outside documented Metal and no value comparison is owed for it;
- the runtime's README says a texture buffer's answer, the heap's size included, follows the
  format's texel-buffer features: the devices differ by query, not by form.

docs/CONFORMANCE-COVERAGE.md regenerated (scripts/conformance-coverage/coverage.py; --check
clean), as are the metal-coverage and refusal-surface checks.
This commit is contained in:
Anees Iqbal committed 2026-12-02 21:47:08 -08:00
1 parent d4be06a10b
commit 3ecfe8f034
3 files changed
+18 -4

No files matched your search

@@ -7701,7 +7701,12 @@ primitive-type-restart-indices Iris(R) Xe divergent case/MTLPrimitiveTypeLine/MT
primitive-type-restart-indices Iris(R) Xe divergent case/MTLPrimitiveTypeLine/MTLIndexTypeUInt32/texels 2 elements differ (U32), the largest difference 4 An accepted difference (docs/API.md section 10, Draws: a line's tie-break is the device's own): the line of vertices 0 and 1 runs exactly through the boundary point (3.5, 1.0), where it only touches the diamonds of the two pixels the point joins, and Vulkan's Bresenham diamond is open, so no Vulkan control decides which a conforming driver covers. With Bresenham's rule on (bresenhamLines, the runtime's floor), Metal on the Apple M3 Max covers the lower pixel and ANV on the Iris Xe the upper (row 0, column 3); lavapipe covers Metal's. Note `device-line-rasterization`, the static note of every draw of lines (`RenderCommandEncoder::LINE_NOTE`).
primitive-type-restart-indices Iris(R) Xe divergent case/MTLPrimitiveTypeLineStrip/MTLIndexTypeUInt16/texels 2 elements differ (U32), the largest difference 5 An accepted difference (docs/API.md section 10, Draws: a line's tie-break is the device's own): the line of vertices 0 and 1 runs exactly through the boundary point (3.5, 1.0), where it only touches the diamonds of the two pixels the point joins, and Vulkan's Bresenham diamond is open, so no Vulkan control decides which a conforming driver covers. With Bresenham's rule on (bresenhamLines, the runtime's floor), Metal on the Apple M3 Max covers the lower pixel and ANV on the Iris Xe the upper (row 0, column 3); lavapipe covers Metal's. Note `device-line-rasterization`, the static note of every draw of lines (`RenderCommandEncoder::LINE_NOTE`).
primitive-type-restart-indices Iris(R) Xe divergent case/MTLPrimitiveTypeLineStrip/MTLIndexTypeUInt32/texels 2 elements differ (U32), the largest difference 6 An accepted difference (docs/API.md section 10, Draws: a line's tie-break is the device's own): the line of vertices 0 and 1 runs exactly through the boundary point (3.5, 1.0), where it only touches the diamonds of the two pixels the point joins, and Vulkan's Bresenham diamond is open, so no Vulkan control decides which a conforming driver covers. With Bresenham's rule on (bresenhamLines, the runtime's floor), Metal on the Apple M3 Max covers the lower pixel and ANV on the Iris Xe the upper (row 0, column 3); lavapipe covers Metal's. Note `device-line-rasterization`, the static note of every draw of lines (`RenderCommandEncoder::LINE_NOTE`).
format-footprints-plain-stragglers * refused case/MTLPixelFormatBGRA4Unorm/TextureBuffer/64x1x1/levels-1/samples-1/slices-1/usage-0x1/shared/size-and-align Err(Error::Unsupported("no texture of BGRA4Unorm is made on this device for the usage")) refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on any venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device holds directly whose buffer features hold both the uniform and the storage texel buffer, and neither of the format's Vulkan formats (A4R4G4B4_UNORM_PACK16, A4B4G4R4_UNORM_PACK16) is such a format there.
format-footprints-plain-stragglers NVIDIA refused case/MTLPixelFormatBGRA4Unorm/TextureBuffer/64x1x1/levels-1/samples-1/slices-1/usage-0x1/shared/size-and-align Err(Error::Unsupported("no texture of BGRA4Unorm is made on this device for the usage")) refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on this venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device holds directly whose buffer features hold both the uniform and the storage texel buffer, and neither of the format's Vulkan formats (A4R4G4B4_UNORM_PACK16, A4B4G4R4_UNORM_PACK16) is such a format here. A heap's size and alignment of a texture buffer follows the same query since a3fb852de3, so the Iris Xe, whose A4R4G4B4_UNORM_PACK16 holds both, answers this site and meets its row at makes-texture: the venues differ by query, not by form. Metal's validation layer refuses this format for a texture buffer ("pixel format (MTLPixelFormatBGRA4Unorm) cannot be used for a texture buffer"), so what such a texture reads is outside documented Metal and no value comparison is owed for it.
format-footprints-plain-stragglers RADV refused case/MTLPixelFormatBGRA4Unorm/TextureBuffer/64x1x1/levels-1/samples-1/slices-1/usage-0x1/shared/size-and-align Err(Error::Unsupported("no texture of BGRA4Unorm is made on this device for the usage")) refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on this venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device holds directly whose buffer features hold both the uniform and the storage texel buffer, and neither of the format's Vulkan formats (A4R4G4B4_UNORM_PACK16, A4B4G4R4_UNORM_PACK16) is such a format here. A heap's size and alignment of a texture buffer follows the same query since a3fb852de3, so the Iris Xe, whose A4R4G4B4_UNORM_PACK16 holds both, answers this site and meets its row at makes-texture: the venues differ by query, not by form. Metal's validation layer refuses this format for a texture buffer ("pixel format (MTLPixelFormatBGRA4Unorm) cannot be used for a texture buffer"), so what such a texture reads is outside documented Metal and no value comparison is owed for it.
format-footprints-plain-stragglers llvmpipe refused case/MTLPixelFormatBGRA4Unorm/TextureBuffer/64x1x1/levels-1/samples-1/slices-1/usage-0x1/shared/size-and-align Err(Error::Unsupported("no texture of BGRA4Unorm is made on this device for the usage")) refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on this venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device holds directly whose buffer features hold both the uniform and the storage texel buffer, and neither of the format's Vulkan formats (A4R4G4B4_UNORM_PACK16, A4B4G4R4_UNORM_PACK16) is such a format here. A heap's size and alignment of a texture buffer follows the same query since a3fb852de3, so the Iris Xe, whose A4R4G4B4_UNORM_PACK16 holds both, answers this site and meets its row at makes-texture: the venues differ by query, not by form. Metal's validation layer refuses this format for a texture buffer ("pixel format (MTLPixelFormatBGRA4Unorm) cannot be used for a texture buffer"), so what such a texture reads is outside documented Metal and no value comparison is owed for it.
format-footprints-plain-stragglers Apple M3 Max refused case/MTLPixelFormatBGRA4Unorm/TextureBuffer/64x1x1/levels-1/samples-1/slices-1/usage-0x1/shared/size-and-align Err(Error::Unsupported("no texture of BGRA4Unorm is made on this device for the usage")) refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on this venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device holds directly whose buffer features hold both the uniform and the storage texel buffer, and neither of the format's Vulkan formats (A4R4G4B4_UNORM_PACK16, A4B4G4R4_UNORM_PACK16) is such a format here. A heap's size and alignment of a texture buffer follows the same query since a3fb852de3, so the Iris Xe, whose A4R4G4B4_UNORM_PACK16 holds both, answers this site and meets its row at makes-texture: the venues differ by query, not by form. Metal's validation layer refuses this format for a texture buffer ("pixel format (MTLPixelFormatBGRA4Unorm) cannot be used for a texture buffer"), so what such a texture reads is outside documented Metal and no value comparison is owed for it.
format-footprints-plain-stragglers UHD Graphics 630 refused case/MTLPixelFormatBGRA4Unorm/TextureBuffer/64x1x1/levels-1/samples-1/slices-1/usage-0x1/shared/size-and-align Err(Error::Unsupported("no texture of BGRA4Unorm is made on this device for the usage")) refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on this venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device holds directly whose buffer features hold both the uniform and the storage texel buffer, and neither of the format's Vulkan formats (A4R4G4B4_UNORM_PACK16, A4B4G4R4_UNORM_PACK16) is such a format here. A heap's size and alignment of a texture buffer follows the same query since a3fb852de3, so the Iris Xe, whose A4R4G4B4_UNORM_PACK16 holds both, answers this site and meets its row at makes-texture: the venues differ by query, not by form. Metal's validation layer refuses this format for a texture buffer ("pixel format (MTLPixelFormatBGRA4Unorm) cannot be used for a texture buffer"), so what such a texture reads is outside documented Metal and no value comparison is owed for it.
format-footprints-plain-stragglers Iris(R) Xe refused case/MTLPixelFormatBGRA4Unorm/TextureBuffer/64x1x1/levels-1/samples-1/slices-1/usage-0x1/shared/makes-texture Err(Error::Refused("a texture buffer is made over a buffer the consumer places (Buffer::new_texture)")) refused: the consumer's contract (the runtime's README, Textures). Metal's device's `newTextureWithDescriptor:` of a texture buffer's descriptor takes no buffer and allocates the texels itself; the runtime makes a texture buffer over a buffer the consumer places (`Buffer::new_texture`, one buffer view of its bytes, no copy) or in a heap (`Device::new_heap_texture`), and refuses the descriptor at every other make (`Refusal::TextureBufferNotOverBuffer`). A consumer answers the call by placing a buffer of the texels' bytes and making the texture buffer over it; this side makes the descriptor's texture as Metal's call reads. Open: this side placing the buffer as a consumer does. Since a3fb852de3 this venue answers the heap's size and alignment of this descriptor, which A4R4G4B4_UNORM_PACK16's texel-buffer features allow here, so the case reaches this make. Metal's validation layer refuses this format for a texture buffer ("pixel format (MTLPixelFormatBGRA4Unorm) cannot be used for a texture buffer"), so what such a texture reads is outside documented Metal and no value comparison is owed for it.
fractional-viewport-coverage llvmpipe divergent case/drawn/texels 344 elements differ (F32), the largest difference 11.25 An accepted difference (docs/API.md section 10, Draws): Metal states only that fragments outside the viewport are clipped (MTLRenderCommandEncoder.h, setViewport:), not which a pixel the viewport's edge crosses is, so a filled primitive reaching past a viewport whose edge crosses a pixel is covered at that edge by the device's own rule. Metal on the Apple M3 Max covers every pixel the viewport overlaps, a pixel it holds only part of included; lavapipe clips the primitive to the viewport and covers a pixel where its sample lies in the clipped primitive.
fractional-viewport-coverage Iris(R) Xe divergent case/drawn/texels 480 elements differ (F32), the largest difference 12 A driver bug and an accepted difference at one site, split by pixel: every differing pixel is a far column or far row Metal drew and the Iris left at the clear (the Iris draws each arm's near column and row as Metal does). (1) 240 elements, 60 pixels, the largest difference 12: a driver bug, not an accepted difference. The far column and row of the two arms whose viewport ends 0.7 into a pixel (origin 2.0 or 2.3 within the cell, extent 7.7 or 7.4): each pixel's centre lies inside the viewport, Metal draws it, and so does Vulkan's rule (a pixel is covered where its sample point lies in the clipped primitive, "Basic Polygon Rasterization"). ANV clamps the hardware scissor to the viewport and truncates its far edge to an integer (`update_scissors` in Mesa's `src/intel/vulkan/genX_gfx_state.c`), so that row and column are not drawn: the rt README's known gap (Known gaps of render encoders, the Iris Xe's fractional viewport). (2) 240 elements, 60 pixels, the largest difference 11.25: an accepted difference (docs/API.md section 10, Draws). The far column and row of the arms whose viewport ends 0.25 into a pixel (origin 2.75, extent 6.5) and on a pixel centre (origin 2.5, extent 7.0): each pixel's centre lies outside the viewport or on its far edge. Metal states only that fragments outside the viewport are clipped (MTLRenderCommandEncoder.h, setViewport:), not which a pixel the viewport's edge crosses is, so a filled primitive reaching past a viewport whose edge crosses a pixel is covered at that edge by the device's own rule. Metal on the Apple M3 Max covers every pixel the viewport overlaps, a pixel it holds only part of included; the Iris leaves these pixels undrawn.
integer-vertex-attributes NVIDIA divergent case/int_attribute_to_half4/Short/constant/rows 3 elements differ (F32), the largest difference 1 The device's own answer (rule 1): a vertex function's `half`-typed attribute is the fetched `float` rounded to `half` by the module's conversion to 16 bits and back, a round trip NVIDIA's compiler folds into the value it started from, handing it on unrounded where Metal rounds it to nearest even. Metal reads 0x47000000, the device 0x46fffe00 at the first differing element. Note `native-half-conversion`, whose bound is a value not rounded at all.
Can't render this file because it is too large.
+5 -1
View File
@@ -2237,7 +2237,11 @@ made, with no lock, and never rewritten for layouts.
- A texture buffer's format needs both the uniform and the storage texel buffer in its buffer
features: its view is of a buffer of both usages, and without `VK_KHR_maintenance5`, which the
floor does not require, the view takes its buffer's usage. A format that lacks one is
`Gap::TextureFormat` (`BGRA8Unorm` on KosmicKrisp, whose storage texel buffers lack it).
`Gap::TextureFormat` (`BGRA8Unorm` on KosmicKrisp, whose storage texel buffers lack it). The
texture-buffer answer, a heap's size and alignment of one included, follows the format's
texel-buffer features, so devices differ by that query, not by form: `BGRA4Unorm`
(`A4R4G4B4_UNORM_PACK16`) is one on the Iris Xe's ANV, whose buffer features hold both, and
`Gap::TextureFormat` on RADV, NVIDIA and lavapipe, whose hold no storage texel buffer of it.
- Metal makes a texture buffer of formats the runtime refuses. Plain Metal on an Apple M3 Max under
macOS 27.0.1 (jobs m3-max-79872 and m3-max-79879), asked for each of the 300 formats the runtime
names, over a buffer and from the device, for reading, writing and both, made one of 99, ended the
+7 -2
View File
@@ -43,7 +43,7 @@ Its limits, measured rather than asserted:
| committed recordings | 1347 |
| distinct SDK items the Metal leg reaches, of any status | 812 |
| of those, reached only where this cannot name the family | 5 |
| ledger rows (a case whose gap is recorded) | 7909 |
| ledger rows (a case whose gap is recorded) | 7914 |
| 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 |
@@ -9743,7 +9743,12 @@ A case whose difference from Metal is recorded rather than compared away. The le
| `primitive-type-restart-indices` | An accepted difference (docs/API.md section 10, Draws: a line's tie-break is the device's own): the line of vertices 0 and 1 runs exactly through the boundary p… |
| `primitive-type-restart-indices` | An accepted difference (docs/API.md section 10, Draws: a line's tie-break is the device's own): the line of vertices 0 and 1 runs exactly through the boundary p… |
| `primitive-type-restart-indices` | An accepted difference (docs/API.md section 10, Draws: a line's tie-break is the device's own): the line of vertices 0 and 1 runs exactly through the boundary p… |
| `format-footprints-plain-stragglers` | refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on any venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device … |
| `format-footprints-plain-stragglers` | refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on this venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device… |
| `format-footprints-plain-stragglers` | refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on this venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device… |
| `format-footprints-plain-stragglers` | refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on this venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device… |
| `format-footprints-plain-stragglers` | refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on this venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device… |
| `format-footprints-plain-stragglers` | refused: rt makes no texture buffer of MTLPixelFormatBGRA4Unorm on this venue (Gap::TextureFormat): a texture buffer's one buffer view takes a format the device… |
| `format-footprints-plain-stragglers` | refused: the consumer's contract (the runtime's README, Textures). Metal's device's `newTextureWithDescriptor:` of a texture buffer's descriptor takes no buffer… |
| `fractional-viewport-coverage` | An accepted difference (docs/API.md section 10, Draws): Metal states only that fragments outside the viewport are clipped (MTLRenderCommandEncoder.h, setViewpor… |
| `fractional-viewport-coverage` | A driver bug and an accepted difference at one site, split by pixel: every differing pixel is a far column or far row Metal drew and the Iris left at the clear … |
| `integer-vertex-attributes` | The device's own answer (rule 1): a vertex function's `half`-typed attribute is the fetched `float` rounded to `half` by the module's conversion to 16 bits and … |