Commit Graph

5 Commits

Author SHA1 Message Date
9e7e655776 image_query_probe: publish mode on Windows (IMAGE-QUERY-PROBE-STAGE-CLEANUP)
agent: yes
AI-assisted: yes
2026-11-24 16:55:54 +03:00
5cd6205e79 image_query_probe: stage --json report via sibling temp file 2026-11-24 05:22:33 +08:00
9eb7d7d283 image_query_probe: print the summary before the --json write and exit 2 when it fails
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.
2026-11-22 22:28:25 +00:00
77b2150755 image_query_probe: handle report write errors 2026-11-22 20:07:22 +00:00
74e39155f1 image_query_probe: measure image_get_resinfo and image_get_lod on RDNA2 (SHADER-388)
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>
2026-11-22 17:17:13 +01:00