diff --git a/crates/metal2vulkan-conformance/known-gaps-rt.tsv b/crates/metal2vulkan-conformance/known-gaps-rt.tsv index 193395a66..58062ba6d 100644 --- a/crates/metal2vulkan-conformance/known-gaps-rt.tsv +++ b/crates/metal2vulkan-conformance/known-gaps-rt.tsv @@ -7854,7 +7854,7 @@ primitive-type-restart-indices Iris(R) Xe divergent case/MTLPrimitiveTypeLine/MT 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::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 `newTextureWithDescriptor:` of a texture buffer's descriptor, and a heap's size of one, take no buffer and allocate the texels themselves; the runtime makes a texture buffer only over a buffer the consumer places (`Buffer::new_texture`, one buffer view of its bytes, no copy), and refuses the descriptor at every other make and query (`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. -fractional-viewport-coverage llvmpipe divergent case/drawn/texels 344 elements differ (F32), the largest difference 11.25 OPEN (main's bug list, 11-21, A FILL REACHING PAST A FRACTIONAL VIEWPORT): Metal on the Apple M3 Max covers every pixel the viewport overlaps for a draw that reaches past it, a pixel the viewport holds only part of included though its centre lies outside (first at the .75/.25 arm, pixel 26,2: Metal stores the rectangle's colour); the runtime sets the Vulkan viewport, which clips the primitive at the viewport's own edges, and lavapipe covers only pixels whose centres the clipped primitive holds. Waits on a ruling: an accepted difference beside a point's (docs/API.md, Draws) if Metal states no rule, or a form (a clip band past the viewport with a scissor at its pixel-rounded rectangle). +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. integer-vertex-attributes llvmpipe 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 `OpFConvert` to 16 bits and back (lavapipe has no `shaderDenormPreserveFloat16`, so no float controls make the pair Metal's), and lavapipe's compiler folds the pair, handing the value 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. integer-vertex-attributes llvmpipe divergent case/int_attribute_to_half4/Short/per-vertex/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 `OpFConvert` to 16 bits and back (lavapipe has no `shaderDenormPreserveFloat16`, so no float controls make the pair Metal's), and lavapipe's compiler folds the pair, handing the value 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. integer-vertex-attributes llvmpipe divergent case/int_attribute_to_half4/Short2/constant/rows 6 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 `OpFConvert` to 16 bits and back (lavapipe has no `shaderDenormPreserveFloat16`, so no float controls make the pair Metal's), and lavapipe's compiler folds the pair, handing the value on unrounded where Metal rounds it to nearest even: Metal reads 0x45000000, the device 0x45001000 at the first differing element. Note `native-half-conversion`, whose bound is a value not rounded at all. diff --git a/docs/API.md b/docs/API.md index f37a67e9d..217a4cfaf 100644 --- a/docs/API.md +++ b/docs/API.md @@ -2624,6 +2624,13 @@ named states the rule in full. viewport's centre and covers its square whole, past the viewport's edge, where lavapipe covers no pixel whose centre lies on or past that edge and culls no point at the clip volume (the conformance case `point-viewport-coverage`). +- **A filled primitive reaching past a viewport whose edge crosses a pixel is covered at that edge by + the device's own rule.** Metal states only that "fragments that lie outside of the viewport are + clipped" (`MTLRenderCommandEncoder.h`, `setViewport:`), not which a pixel the viewport's edge + crosses is. Measured, Metal on an Apple M3 Max covers every pixel the viewport overlaps, a pixel it + holds only part of included; a Vulkan device clips the primitive to the viewport and covers a pixel + where its sample lies in the clipped primitive (the conformance case `fractional-viewport-coverage`, + lavapipe: 344 elements). - **A line's tie-break is the device's own.** Lines draw by Bresenham's rule, which is Metal's (`bresenhamLines`, the runtime's floor): the pixels whose diamond the line exits, each within the one pixel Vulkan allows an implementation (`PrecisionNote::DeviceLineRasterization`). Vulkan's diff --git a/docs/CONFORMANCE-COVERAGE.md b/docs/CONFORMANCE-COVERAGE.md index 716d9a0cc..0e15e1ace 100644 --- a/docs/CONFORMANCE-COVERAGE.md +++ b/docs/CONFORMANCE-COVERAGE.md @@ -9860,7 +9860,7 @@ 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… | | `format-footprints-plain-stragglers` | refused: the consumer's contract (the runtime's README, Textures). Metal's `newTextureWithDescriptor:` of a texture buffer's descriptor, and a heap's size of on… | -| `fractional-viewport-coverage` | OPEN (main's bug list, 11-21, A FILL REACHING PAST A FRACTIONAL VIEWPORT): Metal on the Apple M3 Max covers every pixel the viewport overlaps for a draw that re… | +| `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… | | `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 `OpFConvert` to 16 bits an… | | `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 `OpFConvert` to 16 bits an… | | `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 `OpFConvert` to 16 bits an… |