Commit Graph

8 Commits

Author SHA1 Message Date
6a0a43449e tools/int_hw_probe.py: validate realpath JSON targets, --hw-arch, and blank --group 2026-11-26 20:53:00 +08:00
71c86830f5 tools/int_hw_probe: write --json atomically and reject trailing-separator paths 2026-11-25 21:08:25 +08:00
2e90af2144 Merge pull request #2396 from CLHelper
# Conflicts:
#	docs/design.md
2026-11-22 15:10:40 -05:00
ab5556f8c9 int_hw_probe: measure v_bfe_u32/v_bfe_i32 past bit 31 on RDNA2 (gfx1036)
The translator cuts a bitfield extract at bit 31 (bfe_width) and reads offset
and width from bits [4:0], but for the VALU form this rested on gfx1150 s_bfe
runs and LLVM's v_bfe fold; RDNA2 was unmeasured.

A new valu_bfe_past31 group in tools/int_hw_probe.py runs four 4-word cases
natively (VGPR, inline-constant and literal operands): offset + width > 32,
the sign of a field cut at bit 31, offset/width bits above [4:0], width 0.
On an AMD Radeon 610M (gfx1036) wave32 and wave64 give the same words and
all four cases match the translator, so no translator change is needed.

The measured words are pinned on the CPU in tests/test_int_hw_probe.py, the
contract table gets a v_bfe row, and the bfe_width docstring no longer says
RDNA2 is unmeasured.
2026-11-22 18:11:43 +00:00
0112358228 fix(tools): preflight --json path and guard OSError in int_hw_probe 2026-11-22 19:39:25 +02:00
ba24377527 int_hw_probe: verify packed u16/i16, min3/max3/med3_16, v_swaprel_b32 and v_pack_b32_f16 abs on RDNA2 2026-11-22 16:26:59 +01:00
4eb6155d3a int_hw_probe: the five gfx1035 divergences are fixed; docs index and four tools follow the repo rules
- int_hw_probe: VOP3 clamp on the carry-out add/sub ops (#1831) and v_cvt_rpi/flr's exact floor(x+0.5) and NaN
  sign saturation (#1856) now translate as gfx1035 measured, so KNOWN_DIVERGENCES is empty. The known-divergence
  test reports a synthetic entry. shader_validation.md says so, and design.md loses the stale duplicate
  v_cvt_flr/rpi row a "both" merge left that still called them open.
- docs/README.md: one Other languages line (fr, pt-BR, zh-CN, pl-PL, tr, ru, ja); docs/i18n/README.md: one row
  each for pt-BR and zh-CN (the newer).
- anim_rigs, d16_format_probe, pe_shader_containers: text writes name newline="\n" (#1615);
  pe_shader_containers guards stdout (#1428).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:22:53 -05:00
15359fba38 SHADER-137: RDNA2 hardware integer probe and gfx1035 measurements (wave32 & wave64) 2026-11-22 14:47:29 +01:00