From 70dbc06e0465f2265a31253bb929449578ed0845 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 29 Nov 2026 20:02:48 +0100 Subject: [PATCH] upscale: state the low-contrast accuracy contract (v0.25.1) and the released GPU module Co-Authored-By: Claude Sonnet 5.5 --- content/en/upscale.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/content/en/upscale.md b/content/en/upscale.md index 0f6261f..2eec4e4 100644 --- a/content/en/upscale.md +++ b/content/en/upscale.md @@ -21,9 +21,17 @@ the compiler fuses multiply-adds. The vector rows (below) are tested against the under the same bound. v0.25.0 makes the oracle public (`upscale/fsrref`) and measures against it: the worst error is -5.7e-6 on the oracle corpus, on the CPU and on both GPU back ends. On noise of at most 3 levels -of 255, 0.9 % of samples are outside `ErrorBound`, by up to 4.7e-3 (`TestOracleLowContrast`); -the cause is not established. +5.7e-6 on the oracle corpus, on the CPU and on both GPU back ends. + +`ErrorBound` is not a bound on every input. EASU measures an edge as +`|d-b| / max(|d-c|, |c-b|)` on the lumas of three neighbours, which is 0/0 where different +colours share a luma; the reference defines no answer there and each precision answers with its +rounding noise. On noise of at most 3 levels of 255, 3.6 % of samples have such a neighbourhood +and 0.9 % are outside `ErrorBound`, by up to 4.7e-3. This is present since v0.21.0, on the scalar +and vector CPU paths and on Metal alike, and is not an arithmetic defect. v0.25.1 states the +contract: `ErrorBound` on every sample whose analysis is well conditioned (1.13 million measured, +worst 3.4e-5), and `ErrorBound` plus the range of the four nearest source colours on any sample +(`TestOracleLowContrast`). ## Quality {#quality} @@ -96,11 +104,12 @@ Sample positions are now computed in integers (`fsrref.Phase`), which costs 10 % (26.2 ms before it) for a reason not established; output pixels at positions that were on an integer in float differ from v0.24.0. -### GPU, not released yet {#gpu} +### GPU {#gpu} -A Vulkan compute path (module `upscale/gpu`, branch `upscale-gpu`) is not released yet and is -measured on a branch only: 5.77 to 5.87 ms per frame on a RADV NAVI32 including upload and -readback, about 2.0 ms for the dispatch alone. Metal was checked for correctness only, not timed. +A GPU compute path (Vulkan and Metal; module `upscale/gpu`) is released as `upscale/gpu/v0.1.0` +(go-avkit/avkit#151). On Vulkan it measured 5.77 to 5.87 ms per frame on a RADV NAVI32 including +upload and readback, about 2.0 ms for the dispatch alone. Metal was checked for correctness only, +not timed. Today `upscale` suits stills, offline work and small frames on one core, and 60 Hz 1080p only with many workers.