Commit Graph

6 Commits

Author SHA1 Message Date
d198dd508e tools/ps_helper_probe: delegate write_json_report to _write_json_atomic to preserve symlinks 2026-11-26 02:37:14 +07:00
c7e1ec63af tools/ps_helper_probe: validate --json upfront and write atomically (PS-HELPER-PROBE-ATOMIC-JSON) 2026-11-26 00:52:05 +07:00
a759e1ebc6 tools: guard ps_helper_probe.py empty coverage and atomic --json writes 2026-11-25 20:14:04 +08:00
18559d50fc docs: point ps_helper_probe at its --help usage line (#6607)
Squash-merged after diff review of PR #6607
2026-11-23 11:17:19 -06:00
c77e99d96c ps_helper_probe: write '?' for what a redirected stdout can't encode
The repo-wide guard tests/test_tool_stdout_encoding.py wants every
tool's __main__ to set errors='replace' on stdout, as ps_oracle.py does.
Found in review on #3666.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:43:54 +03:00
58bc80c331 tools: ps_helper_probe.py measures helper lanes at a triangle edge on RDNA2 (SHADER-681)
docs/design.md's whole-quad-mode row left helper-invocation behaviour at
triangle edges untested. The probe draws a triangle whose edge cuts 2x2
quads and runs seven wave64 raw-ISA pixel shaders through ps_oracle;
covered lanes read their helper neighbours through DPP quad_perm.

On gfx1036 (RADV, Mesa 26.3.1) all 10 checks hold: entry EXEC is the
covered pixels, s_wqm turns on exactly the quads with a covered pixel
(packed from lane 0), lane % 4 = (x & 1) + 2 (y & 1), helpers
interpolate their own pixel centre, their v0/v1 hold their own I/J
before s_wqm, and an exp vm with helpers on writes no pixel outside the
triangle. The design.md row now says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:13:40 +03:00