From a677cb74b3a9103e9f85dc5560236cc407959f44 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 22 Nov 2026 22:49:20 -0800 Subject: [PATCH] docs/API.md: the bicubic catalogue's RGBA16Float figure names what lavapipe measured at the edges What: the precision-note catalogue's largest RGBA16Float difference under the bicubic filter note now also gives 4.73e-4, measured on lavapipe in the authored bicubic edge cases (bicubic-edges-of-random-texels-in-a-12x10-rgba16-float, at values in [1, 2), where a half step is 9.77e-4), at normalized and at pixel coordinates alike. The conformance case's 3.74e-4 stays. Why: the catalogue changes with the behaviour it describes. The pixel-coordinate form beneath this commit put those cases through the runtime, and their largest RGBA16Float difference is above the listed figure. The normalized column of each case shows the same difference, so it is the note's arithmetic, not the pixel form. Verified: read from the bicpix lane's run m3-max-69926 on lavapipe at 86bea53a4e (the same tree as these commits before their rebase): all 7 cases NotedDifference, the pixel column equal to the normalized column on 64 of 64 lanes in the candidate and in Metal. --- docs/API.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/API.md b/docs/API.md index bd6810edc..ad6939506 100644 --- a/docs/API.md +++ b/docs/API.md @@ -1805,8 +1805,9 @@ bound. halves Metal rounds away from zero. Ours is the unrounded `f32` sum; `R32Float`'s samples compare exactly. The largest difference per format, `float` and `half` results together, over lavapipe, the M3 on KosmicKrisp and on MoltenVK, a Radeon 780M, an RTX 3090 and an Iris Xe: - `RGBA8Unorm` `2.44e-4`, `R8Unorm` `1.53e-4`, `RGBA8Snorm` `4.88e-4`, `RGBA16Float` `3.74e-4`, - `RGBA16Unorm` `2.16e-4` on lavapipe, KosmicKrisp and the 3090 and `7.8e-6` elsewhere (lavapipe's + `RGBA8Unorm` `2.44e-4`, `R8Unorm` `1.53e-4`, `RGBA8Snorm` `4.88e-4`, `RGBA16Float` `3.74e-4` + (`4.73e-4` on lavapipe in the authored bicubic edge cases, at values in `[1, 2)` where a `half` + step is `9.77e-4`, at normalized and at pixel coordinates alike), `RGBA16Unorm` `2.16e-4` on lavapipe, KosmicKrisp and the 3090 and `7.8e-6` elsewhere (lavapipe's `half` results keep their `f32` values). Through a runtime sampler slot it holds only where the bound sampler filters (a linear minification or magnification filter, anisotropy, a cubic filter or a linear mip filter): a nearest sampler's sample is the decoded texel at Metal's position.