Commit Graph

4 Commits

Author SHA1 Message Date
74295d02e3 texoff_probe: validate oracle batch/word payloads and handle run errors 2026-11-25 09:04:11 +01:00
c2547f4508 tools: handle POISON/arch errors in texoff_probe and close oracle in sampler_lod_probe 2026-11-24 09:45:32 +01: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
14f7cce13f SHADER-337: texel-offset y and z fields measured on RDNA2 (signed 6-bit, upper bits ignored)
tools/texoff_probe.py samples a linear R32_SFLOAT texture whose texel holds its index (2D 64x64 for y, 3D 64x1x64
for z) with image_sample_lz_o through tools/hw_oracle on gfx1036, wave32 and wave64. All 15 rows fit the
translator's rule. tests/test_texoff_probe.py checks that each row with a negative field tells signed from unsigned.

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