diff options
Diffstat (limited to 'docs/shader_validation.md')
| -rw-r--r-- | docs/shader_validation.md | 17 |
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 | |||
| 249 | this. Not covered yet: images. | 249 | this. Not covered yet: images. |
| 250 | 250 | ||
| 251 | The `buffer_format` family covers `buffer_load_format_*` on every format the translator decodes, with a | 251 | The `buffer_format` family covers `buffer_load_format_*` on every format the translator decodes, with a |
| 252 | random DST_SEL of 0/X/Y/Z/W, and `tbuffer_load_format_*` on the five formats the 1.0.2.1 corpus uses | 252 | random 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 |
| 254 | instructions) with an identity swizzle. Its reference decodes each element from the GFX10 format *name* | 254 | instructions) 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 |
| 256 | table: UNORM/SNORM correctly rounded, missing channels 0, 0, 0, 1. Elements are naturally aligned. Left | 256 | table: UNORM/SNORM correctly rounded (`x/(2ⁿ−1)`), missing channels *c* mod *n*, DST_SEL 1 = integer 1 |
| 257 | out: DST_SEL 1 on integer formats, and whether `tbuffer` applies the V#'s DST_SEL (neither is measured). | 257 | for 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). | |
| 259 | Two 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 | 260 | Over 5,000 programs the reference and translator match bit for bit; breaking the `16_16_SNORM` kind, the |
| 261 | translator 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. |
| 262 | where the translator returns 0 and every other format 1 / 1.0. Over 5,000 programs, everything else | ||
| 263 | matches; breaking the `16_16_SNORM` kind, the `8_8_8_8_UINT` widths or the DST_SEL order in the | ||
| 264 | translator makes 33, 37 and 191 of 300 programs fail. | ||
| 265 | 262 | ||
| 266 | A mutation check (inst offset dropped, V# stride narrowed, the SMEM pointer's high word dropped) makes | 263 | A mutation check (inst offset dropped, V# stride narrowed, the SMEM pointer's high word dropped) makes |
| 267 | 76, 45 and 42 of 150 programs fail, so the runner does catch address errors. | 264 | 76, 45 and 42 of 150 programs fail, so the runner does catch address errors. |