Commit Graph

6 Commits

Author SHA1 Message Date
b1a254502c smem_neg_probe: handle Unavailable/RuntimeError during oracle.run() and mask 32-bit words 2026-11-25 09:19:01 +01:00
209ee8d511 smem_neg_probe: validate oracle.run() result shape and word count 2026-11-23 16:39:53 -05:00
f3a7b0ffc4 docs: point smem_neg_probe at its --help usage line (#6632)
Squash-merged after diff review of PR #6632
2026-11-23 11:11:04 -06:00
b96055c85b tools: use open_oracle() and close() in smem_neg_probe and texoff_probe
tools/smem_neg_probe.py and tools/texoff_probe.py were the last two
hardware-oracle probes calling runner.Oracle() directly instead of
runner.open_oracle(), bypassing drm.DrmOracle on Linux. Both also
omitted oracle.close(), leaking the temporary leonida_hw_* workdir on
every --oracle hw run.

Switch both to runner.open_oracle() with try/finally: oracle.close(),
extend tests/test_texoff_probe.py, and add tests/test_smem_neg_probe.py.
2026-11-22 20:09:42 +00:00
15f5b2fbc0 Fix what the round-41 merges broke
- tests/semantic: BaseVertex/BaseInstance read 0 in the wave interpreter; the LDS MockGens follow
  SHADER-309 (lds_bound, lds_access, lds_atomic); abs emission tests load their operand, since
  SHADER-315 folds scalar ALU on constants.
- test_translate: the dynamic gather sampler is a loaded word, not s16 + 0 (SHADER-315 folds it).
- test_world_build: DDS downscale weights colours by alpha (62804d0d).
- test_fspx_shaders_stage: the fake disassembler writes the listing make_game now checks.
- xgameruntime_test: re-read the package id after clearing the LEONIDA_PACKAGE_ID override.
- docs: one row per topic again in design.md (72 topics) and README.md; one Other languages line;
  embedded_shaders.md keeps one copy of each bullet; animation.md links the heading anchor.
- tools/scripts: character_textures uses report_paths.same_report_path; stdout guard on six programs;
  LF write in vs_input_survey; the cl.exe fallback compiles winhttp_offline.cpp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:30:33 -05:00
e9f3b7e34e SHADER-336: s_load/s_buffer_load with sOFF + IMM < 0 measured on RDNA2; a known sOFF no longer wraps at 32 bits
tools/smem_neg_probe.py runs the rows natively (tools/hw_oracle) on gfx1036, wave32 and wave64. s_load reads at the
64-bit signed sum, as the translator inferred. s_buffer_load does not wrap the sOFF + IMM sum at 32 bits: the
translator's register form already matched, but a sOFF known at translation time was folded and truncated to 32 bits
(sOFF 0xfffffffc + IMM 8 read +4). Both forms keep the 64-bit sum now; SmemHardwareRuleTests runs every row in both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:29:21 +01:00