shader: seed POPS collision wave_id, decode f16 inline floats, and ex… #229

Manually merged
github merged 2 commits from github-bot/gh-229 into gh-pr/229/base 2026-11-27 12:11:30 +00:00 AGit
Owner

@⁠mint17 on GitHub · 2026-11-27 11:18 UTC · original
mint17:fix/shader-pops-f16-root-const → main · +503 −8 · 5 files · 2 commits · merged 2026-11-27 11:58 UTC

…clude RootType::Constants dword 0 as base

Port three verified correctness fixes from Marvisak/VIctory:

  • Marvisak/VIctory@7ac1f54d83 (#2395): seed POPS collision SGPR with 1 << 16 (wave_id = 1 != collision_id = 0) instead of 0 so inactive lanes falling into the POPS wait loop exit on the first pass instead of spinning to the loop cap.
  • Marvisak/VIctory@f3578e386e (#2493): decode GFX10 f16 inline float constants (240..=248) as IEEE-754 binary16 bit patterns in whole-wave v_add_f16 simulation rather than f32 bits.
  • Marvisak/VIctory@88daba427b (#2154): exclude RootType::Constants from the dword-0 base-address arm in Tracer::sum, check base presence before the two-dynamic-terms check in Tracer::address, and distinguish root parameters in Tracer::why_no_base.
  • Bump TRANSLATOR_VERSION (7 -> 8) so disk shader caches invalidate pre-fix DXIL and add synthetic regression tests (including a WARP draw test for POPS).
**@⁠mint17** on GitHub · 2026-11-27 11:18 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/229) `mint17:fix/shader-pops-f16-root-const` → `main` · +503 −8 · 5 files · 2 commits · merged 2026-11-27 11:58 UTC …clude RootType::Constants dword 0 as base Port three verified correctness fixes from Marvisak/VIctory: - Marvisak/VIctory@7ac1f54d83 (#2395): seed POPS collision SGPR with 1 << 16 (wave_id = 1 != collision_id = 0) instead of 0 so inactive lanes falling into the POPS wait loop exit on the first pass instead of spinning to the loop cap. - Marvisak/VIctory@f3578e386e (#2493): decode GFX10 f16 inline float constants (240..=248) as IEEE-754 binary16 bit patterns in whole-wave v_add_f16 simulation rather than f32 bits. - Marvisak/VIctory@88daba427b (#2154): exclude RootType::Constants from the dword-0 base-address arm in Tracer::sum, check base presence before the two-dynamic-terms check in Tracer::address, and distinguish root parameters in Tracer::why_no_base. - Bump TRANSLATOR_VERSION (7 -> 8) so disk shader caches invalidate pre-fix DXIL and add synthetic regression tests (including a WARP draw test for POPS).
Port three verified correctness fixes from Marvisak/VIctory:

- Marvisak/VIctory@7ac1f54d83 (#2395): seed POPS collision SGPR with 1 << 16
  (wave_id = 1 != collision_id = 0) instead of 0 so inactive lanes falling into
  the POPS wait loop exit on the first pass instead of spinning to the loop cap.
- Marvisak/VIctory@f3578e386e (#2493): decode GFX10 f16 inline float constants
  (240..=248) as IEEE-754 binary16 bit patterns in whole-wave v_add_f16
  simulation rather than f32 bits.
- Marvisak/VIctory@88daba427b (#2154): exclude RootType::Constants from the
  dword-0 base-address arm in Tracer::sum, check base presence before the
  two-dynamic-terms check in Tracer::address, and distinguish root parameters
  in Tracer::why_no_base.
- Bump TRANSLATOR_VERSION (7 -> 8) so disk shader caches invalidate pre-fix
  DXIL and add synthetic regression tests (including a WARP draw test for POPS).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 11:20:16 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 11:30 UTC · original

@⁠mint17 The regression covers the useful distinction here: zero keeps the f16 reduction, while each of the nine inline floats preserves its own half bits. Please have the wave simulation reuse the existing inline_f16 helper from lower.rs so the two paths can't drift. The Windows checks are queued for 838a10c, including the POPS draw and root-constant cases.

**@⁠TaynanGT** on GitHub · 2026-11-27 11:30 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/229#issuecomment-7217150246) @⁠mint17 The regression covers the useful distinction here: zero keeps the f16 reduction, while each of the nine inline floats preserves its own half bits. Please have the wave simulation reuse the existing `inline_f16` helper from `lower.rs` so the two paths can't drift. The Windows checks are queued for `838a10c`, including the POPS draw and root-constant cases.
Author
Owner

@⁠mint17 on GitHub · 2026-11-27 11:37 UTC · original

Done in 3156918 — made emit::lower::inline_f16 pub(super) and reused it directly in emit::wave::simulate, re-verified tests (52 passed), Clippy (default + --all-features), and xtask.

**@⁠mint17** on GitHub · 2026-11-27 11:37 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/229#issuecomment-7217297131) Done in `3156918` — made `emit::lower::inline_f16` `pub(super)` and reused it directly in `emit::wave::simulate`, re-verified tests (52 passed), Clippy (default + `--all-features`), and `xtask`.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 11:51 UTC · original

@⁠mint17 I verified 3156918 calls the existing inline_f16 helper from wave simulation and keeps both regression paths. The Windows CI run for that head is queued. The translator version remains 8 on this branch, so the earlier compiled shaders will be rebuilt when it lands.

**@⁠TaynanGT** on GitHub · 2026-11-27 11:51 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/229#issuecomment-7217555750) @⁠mint17 I verified `3156918` calls the existing `inline_f16` helper from wave simulation and keeps both regression paths. The Windows CI run for that head is queued. The translator version remains 8 on this branch, so the earlier compiled shaders will be rebuilt when it lands.
github-bot changed target branch from main to gh-pr/229/base 2026-11-27 12:11:29 +00:00
github manually merged commit 3156918984 into gh-pr/229/base 2026-11-27 12:11:30 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.