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:
Diffstat (limited to 'docs/shader_validation.md')
-rw-r--r--docs/shader_validation.md17
1 files changed, 7 insertions, 10 deletions
diff --git a/docs/shader_validation.md b/docs/shader_validation.md
index ee508a567..2cf16b234 100644
--- a/docs/shader_validation.md
+++ b/docs/shader_validation.md
@@ -249,19 +249,16 @@ fields the translator does not model yet, so they need a GPU-confirmed rule befo
249this. Not covered yet: images. 249this. Not covered yet: images.
250 250
251The `buffer_format` family covers `buffer_load_format_*` on every format the translator decodes, with a 251The `buffer_format` family covers `buffer_load_format_*` on every format the translator decodes, with a
252random DST_SEL of 0/X/Y/Z/W, and `tbuffer_load_format_*` on the five formats the 1.0.2.1 corpus uses 252random DST_SEL of 0/1/X/Y/Z/W, and `tbuffer_load_format_*` on the five formats the 1.0.2.1 corpus uses
253(`16_16_SNORM`, `8_8_8_8_UNORM`, `8_8_8_8_UINT`, `2_10_10_10_UNORM`, `16_16_16_16_UINT`, about 53,000 253(`16_16_SNORM`, `8_8_8_8_UNORM`, `8_8_8_8_UINT`, `2_10_10_10_UNORM`, `16_16_16_16_UINT`, about 53,000
254instructions) with an identity swizzle. Its reference decodes each element from the GFX10 format *name* 254instructions) with an identity swizzle. Its reference decodes each element from the GFX10 format *name*
255(`tools/gfx10_formats.json`; channel widths listed from the top bit), not from the translator's own 255(`tools/gfx10_formats.json`; channel widths listed from the top bit), not from the translator's own
256table: UNORM/SNORM correctly rounded, missing channels 0, 0, 0, 1. Elements are naturally aligned. Left 256table: UNORM/SNORM correctly rounded (`x/(2ⁿ−1)`), missing channels *c* mod *n*, DST_SEL 1 = integer 1
257out: DST_SEL 1 on integer formats, and whether `tbuffer` applies the V#'s DST_SEL (neither is measured). 257for UINT/SINT and 1.0f otherwise (SHADER-86, RX 6700). Elements are naturally aligned. Left out: whether
258 258`tbuffer` applies the V#'s DST_SEL (unmeasured).
259Two results are counted apart, not as mismatches, until a gfx10 hardware measurement settles them 259
260(posted in #374): `norm-ulp1`, a UNORM/SNORM result 1 ULP from the correctly rounded value (the 260Over 5,000 programs the reference and translator match bit for bit; breaking the `16_16_SNORM` kind, the
261translator multiplies by a rounded reciprocal), and `missing-w32`, the missing W of a 32-bit format, 261`8_8_8_8_UINT` widths or the DST_SEL order in the translator makes 33, 37 and 191 of 300 programs fail.
262where the translator returns 0 and every other format 1 / 1.0. Over 5,000 programs, everything else
263matches; breaking the `16_16_SNORM` kind, the `8_8_8_8_UINT` widths or the DST_SEL order in the
264translator makes 33, 37 and 191 of 300 programs fail.
265 262
266A mutation check (inst offset dropped, V# stride narrowed, the SMEM pointer's high word dropped) makes 263A mutation check (inst offset dropped, V# stride narrowed, the SMEM pointer's high word dropped) makes
26776, 45 and 42 of 150 programs fail, so the runner does catch address errors. 26476, 45 and 42 of 150 programs fail, so the runner does catch address errors.