upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/shader_validation.md
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:13:51 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:13:51 -0500
commitea09a5934b13ffa3756d01f81b20e0c1fd2b4fab (patch)
tree554500b915862b014f503a71826c5361f077b603 /docs/shader_validation.md
parent23b2e0e81d07cb67604178d770dd34dd272fdf4e (diff)
parent820e9bc877715bde288433ecee5e4035dec630fd (diff)
Merge pull request #2988 from Shrey Ratna
Diffstat (limited to 'docs/shader_validation.md')
-rw-r--r--docs/shader_validation.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/shader_validation.md b/docs/shader_validation.md
index 3deecef73..466f3a671 100644
--- a/docs/shader_validation.md
+++ b/docs/shader_validation.md
@@ -665,6 +665,13 @@ T# in `s[8:15]`), runs it through `runtime/test/vk_image_fuzz.cpp` against a syn
665format, and compares every RGBA32F pixel with an oracle that models the RDNA2 texel fetch for that format: a 665format, and compares every RGBA32F pixel with an oracle that models the RDNA2 texel fetch for that format: a
666fetch is a memory read, so there is no filter, border or LOD to model. 666fetch is a memory read, so there is no filter, border or LOD to model.
667 667
668The comparison is bit exact (any NaN matches any NaN) with one exception. The translated shader fetches a UNORM
669texel through a float view, so the 8-bit to float conversion is the driver's. RDNA2 returns the correctly rounded
670c / 255. llvmpipe multiplies by an f32 1/255, which is one ulp above that for 126 of the 256 byte values (27 gives
6710x3dd8d8da, not 0x3dd8d8d9), and a run stops at its first mismatch, so on llvmpipe no case after the first
672`R8G8B8A8_UNORM` one ran. The translator oracle therefore accepts one ulp on a UNORM8 texel component, never on
673another format or on a sentinel, and the summary says how many components needed it. `--oracle hw` stays bit exact.
674
668```sh 675```sh
669cmake --build runtime/build --target vk_image_fuzz 676cmake --build runtime/build --target vk_image_fuzz
670python -I tools/image_fuzz.py --programs 8 --seed 1 [--show] 677python -I tools/image_fuzz.py --programs 8 --seed 1 [--show]