diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:13:51 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:13:51 -0500 |
| commit | ea09a5934b13ffa3756d01f81b20e0c1fd2b4fab (patch) | |
| tree | 554500b915862b014f503a71826c5361f077b603 /docs/shader_validation.md | |
| parent | 23b2e0e81d07cb67604178d770dd34dd272fdf4e (diff) | |
| parent | 820e9bc877715bde288433ecee5e4035dec630fd (diff) | |
Merge pull request #2988 from Shrey Ratna
Diffstat (limited to 'docs/shader_validation.md')
| -rw-r--r-- | docs/shader_validation.md | 7 |
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 | |||
| 665 | format, and compares every RGBA32F pixel with an oracle that models the RDNA2 texel fetch for that format: a | 665 | format, and compares every RGBA32F pixel with an oracle that models the RDNA2 texel fetch for that format: a |
| 666 | fetch is a memory read, so there is no filter, border or LOD to model. | 666 | fetch is a memory read, so there is no filter, border or LOD to model. |
| 667 | 667 | ||
| 668 | The comparison is bit exact (any NaN matches any NaN) with one exception. The translated shader fetches a UNORM | ||
| 669 | texel through a float view, so the 8-bit to float conversion is the driver's. RDNA2 returns the correctly rounded | ||
| 670 | c / 255. llvmpipe multiplies by an f32 1/255, which is one ulp above that for 126 of the 256 byte values (27 gives | ||
| 671 | 0x3dd8d8da, 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 | ||
| 673 | another format or on a sentinel, and the summary says how many components needed it. `--oracle hw` stays bit exact. | ||
| 674 | |||
| 668 | ```sh | 675 | ```sh |
| 669 | cmake --build runtime/build --target vk_image_fuzz | 676 | cmake --build runtime/build --target vk_image_fuzz |
| 670 | python -I tools/image_fuzz.py --programs 8 --seed 1 [--show] | 677 | python -I tools/image_fuzz.py --programs 8 --seed 1 [--show] |