Commit Graph

3 Commits

Author SHA1 Message Date
73e962741d interp_hw_probe: harden CLI parsing, oracle batch/word validation, and error lifecycle 2026-11-25 08:59:28 +01: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
c15761b8cc SHADER-430: measure the v_interp ALU ops on gfx1036; p2_f16 keeps vdst's high half
tools/interp_hw_probe.py runs v_interp_* in a compute wave through tools/hw_oracle (the ops read the
attribute words from LDS at M0) and checks them against exact models: p1/p2_f32 and p1ll_f16 are single
fmas rounded to f32, p2_f16 rounds once straight to f16 (30 discriminating ties), and a 32-bit read of a
packed channel takes the raw words as f32. f32 denormal words follow MODE. All 292,474 checks match per
mode on a Radeon gfx1036 iGPU.

v_interp_p2_f16 keeps the high 16 bits of vdst on hardware; the translator zeroed them. It now writes
the low half only (write_lo16), with a semantic test that fails on the old code.

The SPI half (what a real draw writes into LDS for a packed channel) stays unverified; it needs a
pixel-shader harness.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:27:10 +01:00