From 59e0a3f7ca3020f2766aa342336cda84e7b89c9b Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 22 Nov 2026 13:25:34 -0800 Subject: [PATCH] Conformance: the stage-in fetch case's NaN rows on the XTX, the Iris Xe and the RTX 3090 attribute-format-fetches widens five NaN-bearing attributes (Half, Half2, Half3, Half4 and FloatRG11B10) in the shader's fetch, and the device keeps its own NaN bits there under `device-nan-encoding`. The ledger held those five sites for llvmpipe only, so each card's replay of the case read them as gaps with no row for the card. The three cards' replays (built at f21db0934c, job m3-max-68667): - RX 7900 XTX (RADV, Mesa 26.2.6), job m3-max-68678, and Iris Xe (ANV, Mesa 26.2.6), job m3-max-68679: the same five answers as llvmpipe's, to the bit. Halves read 0x7fc02000 where Metal reads 0x7fc00000. RG11B10 reads 0x7ffe0000, at 9 elements. - RTX 3090 (NVIDIA 620.70.06), job m3-max-68677: every payload bit is set (0x7fffffff), and the largest difference is 4194303 at each site. RG11B10 differs at 10 elements, not 9. Metal's recording answers exactly 2, 4, 6, 8 and 10 NaN words at these sites, all 0x7fc00000. So the 3090 differs at every one of them. On the Mesa drivers, one RG11B10 NaN keeps a payload that widens to the canonical bits, which leaves 9. The 3090 differs from the Mesa drivers, so the rows stay per card: five for "RX 7900 XTX", five for "Iris(R) Xe" and five for "NVIDIA GeForce RTX 3090", each named no wider than the card that ran. The fifteen rows equal the rows the three runs printed, field by field. No other site differed on any of the three cards. On each card the runtime device suite ran 667 tests and all passed, 3 skipped. --- crates/metal2vulkan-conformance/known-gaps-rt.tsv | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/crates/metal2vulkan-conformance/known-gaps-rt.tsv b/crates/metal2vulkan-conformance/known-gaps-rt.tsv index 808fe0042..30dada4de 100644 --- a/crates/metal2vulkan-conformance/known-gaps-rt.tsv +++ b/crates/metal2vulkan-conformance/known-gaps-rt.tsv @@ -8008,3 +8008,18 @@ attribute-format-fetches * divergent case/MTLAttributeFormatUChar3Normalized/att attribute-format-fetches * divergent case/MTLAttributeFormatUChar4Normalized/attribute0/MTLAttributeFormatUChar4Normalized 16 elements differ (U32), the largest difference 1 A conversion answer (rule 1) under its static note: the pulled fetch's own product of the code and its maximum's reciprocal, rounded once, which the note's recorded bound computes one f32 ulp high of Metal's quotient at 126 of the 256 8-bit unsigned codes, on every device. Metal reads 0x3efefeff, we read 0x3efeff00 at the first differing element. Note `device-vertex-conversion`. attribute-format-fetches * divergent case/MTLAttributeFormatUChar4Normalized_BGRA/attribute0/MTLAttributeFormatUChar4Normalized_BGRA 16 elements differ (U32), the largest difference 1 A conversion answer (rule 1) under its static note: the pulled fetch's own product of the code and its maximum's reciprocal, rounded once, which the note's recorded bound computes one f32 ulp high of Metal's quotient at 126 of the 256 8-bit unsigned codes, on every device. Metal reads 0x3f48c8c9, we read 0x3f48c8ca at the first differing element. Note `device-vertex-conversion`. attribute-format-fetches * divergent case/MTLAttributeFormatUCharNormalized/attribute0/MTLAttributeFormatUCharNormalized 4 elements differ (U32), the largest difference 1 A conversion answer (rule 1) under its static note: the pulled fetch's own product of the code and its maximum's reciprocal, rounded once, which the note's recorded bound computes one f32 ulp high of Metal's quotient at 126 of the 256 8-bit unsigned codes, on every device. Metal reads 0x3efefeff, we read 0x3efeff00 at the first differing element. Note `device-vertex-conversion`. +attribute-format-fetches RX 7900 XTX divergent case/MTLAttributeFormatFloatRG11B10/attribute0/MTLAttributeFormatFloatRG11B10 9 elements differ (U32), the largest difference 4063232 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device keeps its payload where Metal reads the canonical NaN. Metal reads 0x7fc00000, the device 0x7ffe0000 at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches RX 7900 XTX divergent case/MTLAttributeFormatHalf/attribute0/MTLAttributeFormatHalf 2 elements differ (U32), the largest difference 2147491840 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device keeps its payload where Metal reads the canonical NaN. Metal reads 0x7fc00000, the device 0x7fc02000 at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches RX 7900 XTX divergent case/MTLAttributeFormatHalf2/attribute0/MTLAttributeFormatHalf2 4 elements differ (U32), the largest difference 2147491840 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device keeps its payload where Metal reads the canonical NaN. Metal reads 0x7fc00000, the device 0x7fc02000 at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches RX 7900 XTX divergent case/MTLAttributeFormatHalf3/attribute0/MTLAttributeFormatHalf3 6 elements differ (U32), the largest difference 2147491840 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device keeps its payload where Metal reads the canonical NaN. Metal reads 0x7fc00000, the device 0x7fc02000 at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches RX 7900 XTX divergent case/MTLAttributeFormatHalf4/attribute0/MTLAttributeFormatHalf4 8 elements differ (U32), the largest difference 2147491840 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device keeps its payload where Metal reads the canonical NaN. Metal reads 0x7fc00000, the device 0x7fc02000 at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches Iris(R) Xe divergent case/MTLAttributeFormatFloatRG11B10/attribute0/MTLAttributeFormatFloatRG11B10 9 elements differ (U32), the largest difference 4063232 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device keeps its payload where Metal reads the canonical NaN. Metal reads 0x7fc00000, the device 0x7ffe0000 at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches Iris(R) Xe divergent case/MTLAttributeFormatHalf/attribute0/MTLAttributeFormatHalf 2 elements differ (U32), the largest difference 2147491840 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device keeps its payload where Metal reads the canonical NaN. Metal reads 0x7fc00000, the device 0x7fc02000 at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches Iris(R) Xe divergent case/MTLAttributeFormatHalf2/attribute0/MTLAttributeFormatHalf2 4 elements differ (U32), the largest difference 2147491840 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device keeps its payload where Metal reads the canonical NaN. Metal reads 0x7fc00000, the device 0x7fc02000 at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches Iris(R) Xe divergent case/MTLAttributeFormatHalf3/attribute0/MTLAttributeFormatHalf3 6 elements differ (U32), the largest difference 2147491840 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device keeps its payload where Metal reads the canonical NaN. Metal reads 0x7fc00000, the device 0x7fc02000 at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches Iris(R) Xe divergent case/MTLAttributeFormatHalf4/attribute0/MTLAttributeFormatHalf4 8 elements differ (U32), the largest difference 2147491840 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device keeps its payload where Metal reads the canonical NaN. Metal reads 0x7fc00000, the device 0x7fc02000 at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches NVIDIA GeForce RTX 3090 divergent case/MTLAttributeFormatFloatRG11B10/attribute0/MTLAttributeFormatFloatRG11B10 10 elements differ (U32), the largest difference 4194303 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device reads with every payload bit set where Metal reads the canonical NaN, at each NaN element Metal answers. Metal reads 0x7fc00000, the device 0x7fffffff at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches NVIDIA GeForce RTX 3090 divergent case/MTLAttributeFormatHalf/attribute0/MTLAttributeFormatHalf 2 elements differ (U32), the largest difference 4194303 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device reads with every payload bit set where Metal reads the canonical NaN, at each NaN element Metal answers. Metal reads 0x7fc00000, the device 0x7fffffff at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches NVIDIA GeForce RTX 3090 divergent case/MTLAttributeFormatHalf2/attribute0/MTLAttributeFormatHalf2 4 elements differ (U32), the largest difference 4194303 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device reads with every payload bit set where Metal reads the canonical NaN, at each NaN element Metal answers. Metal reads 0x7fc00000, the device 0x7fffffff at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches NVIDIA GeForce RTX 3090 divergent case/MTLAttributeFormatHalf3/attribute0/MTLAttributeFormatHalf3 6 elements differ (U32), the largest difference 4194303 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device reads with every payload bit set where Metal reads the canonical NaN, at each NaN element Metal answers. Metal reads 0x7fc00000, the device 0x7fffffff at the first differing element. Note `device-nan-encoding`. +attribute-format-fetches NVIDIA GeForce RTX 3090 divergent case/MTLAttributeFormatHalf4/attribute0/MTLAttributeFormatHalf4 8 elements differ (U32), the largest difference 4194303 The device's own answer (rule 1): a NaN of a `half` or `RG11B10` stage-in attribute widened by the shader's fetch on the device reads with every payload bit set where Metal reads the canonical NaN, at each NaN element Metal answers. Metal reads 0x7fc00000, the device 0x7fffffff at the first differing element. Note `device-nan-encoding`.