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

Merged
mint17 merged 2 commits from upstream-pr/229 into main 2026-11-27 11:58:46 +00:00
mint17 commented 2026-11-27 11:18:22 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by mint17 on 2026-11-27T11:18:22Z.


…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).
<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5525731335 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/229). Originally posted by [mint17](https://github.com/mint17) on 2026-11-27T11:18:22Z. --- …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).
TaynanGT commented 2026-11-27 11:30:16 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T11:30:16Z.


@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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7217150246 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/229#issuecomment-7217150246). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T11:30:16Z. --- @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.
mint17 commented 2026-11-27 11:37:54 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by mint17 on 2026-11-27T11:37:54Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7217297131 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/229#issuecomment-7217297131). Originally posted by [mint17](https://github.com/mint17) on 2026-11-27T11:37:54Z. --- 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`.
TaynanGT commented 2026-11-27 11:51:29 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T11:51:29Z.


@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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7217555750 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/229#issuecomment-7217555750). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T11:51:29Z. --- @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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
TaynanGT/Vice-Tay!229
No description provided.