An unwritable --json returned 1 before the summary line, so a run whose results all follow the rules
looked like a mismatch and its result was never shown. Print the summary first, then report the write
failure with exit 2, as d16_format_probe and cvt_f16_omod_probe do.
docs/design.md left resinfo's 2D depth word, the clamped LOD under a linear
mip filter and the u/v order of the LOD query unverified. The new probe runs
both instructions natively through tools/hw_oracle on hand-built GFX10
descriptors and compares every word with written rules. On gfx1036 all 614
results (wave32 and wave64) follow them:
- resinfo's 2D depth word is 0 (any WORD4 DEPTH); a 2D array's layer count
is minified, max(1, layers >> (BASE_LEVEL + level)); past the last level
width, height and depth are 0.
- get_lod's raw LOD includes LOD_BIAS; the clamped LOD is the clamp under a
linear mip filter, the level read (half up) under point, 0 with none.
- u scales by the width, v by the height.
The translator still differs on the resinfo points; design.md says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>