shader: name the whole-wave section step the simulation does not follow #121

Manually merged
github merged 1 commit from github-bot/gh-121 into main 2026-11-26 18:09:26 +00:00 AGit
Owner

@⁠Olima34 on GitHub · 2026-11-26 17:30 UTC · original
Olima34:fix/shader-wave-section-causes → main · +187 −17 · 5 files · 1 commits · merged 2026-11-26 18:09 UTC

For the #4 shape "whole-wave section step the simulation does not follow" (7 refusals). This is a refusal split (diagnostic), not a lowering. The simulation drops whatever step it does not model, so nothing can be lowered safely without knowing the step.

What. emit::wave::simulate now also returns the first step it does not model (Section::why). section_inst refuses with "a whole-wave section step the simulation does not follow: " followed by one of:

  • an EXEC write that is no constant;
  • a scalar ALU result;
  • an instruction that is no VALU operation;
  • a v_readlane at a lane it does not know;
  • a VALU result in an SGPR;
  • a DPP step with lanes off;
  • a DPP control it does not model;
  • an operand or result modifier;
  • a v_permlane with computed lane selects;
  • a VALU operation it does not model.

When every step is modelled, the message ends "a value that is no reduction or prefix" instead. The shapes the simulation finds are unchanged. The doc says the first step not modelled is a hint, not proof.

Tests.

  • whole_wave_sections_name_the_step_they_do_not_follow (gfx_refusal): v_mul_f32 gives the VALU message, and v_mov_b32_dpp row_shr:1 gives "no reduction". It fails on main with the old message.
  • pipeline::pieces_tests::the_host_refuses_a_whole_wave_section_naming_its_step (victory-gpu): the same two programs on the native host's path. The container is built from the title's compute pieces (compute_container) and translated with the host's options (native::shaders::translate). It checks that the refusal string, the text the refusal log line shows, ends with the specific cause. It fails on main.

In the #110 Series S log: bf8467abe00be277 @⁠0xc1c, d7cbf5c5680197fd @⁠0xc58, f0c2cd42c9188fc3 @⁠0x1ac. The next refusal report will say which step to model.

victory-shader (242) and victory-gpu (arm64) tests, Windows clippy and cargo xtask policy pass.

**@⁠Olima34** on GitHub · 2026-11-26 17:30 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/121) `Olima34:fix/shader-wave-section-causes` → `main` · +187 −17 · 5 files · 1 commits · merged 2026-11-26 18:09 UTC For the #4 shape "whole-wave section step the simulation does not follow" (7 refusals). **This is a refusal split (diagnostic), not a lowering.** The simulation drops whatever step it does not model, so nothing can be lowered safely without knowing the step. **What.** `emit::wave::simulate` now also returns the first step it does not model (`Section::why`). `section_inst` refuses with "a whole-wave section step the simulation does not follow: " followed by one of: - an EXEC write that is no constant; - a scalar ALU result; - an instruction that is no VALU operation; - a v_readlane at a lane it does not know; - a VALU result in an SGPR; - a DPP step with lanes off; - a DPP control it does not model; - an operand or result modifier; - a v_permlane with computed lane selects; - a VALU operation it does not model. When every step is modelled, the message ends "a value that is no reduction or prefix" instead. The shapes the simulation finds are unchanged. The doc says the first step not modelled is a hint, not proof. **Tests.** - `whole_wave_sections_name_the_step_they_do_not_follow` (gfx_refusal): `v_mul_f32` gives the VALU message, and `v_mov_b32_dpp row_shr:1` gives "no reduction". It fails on main with the old message. - `pipeline::pieces_tests::the_host_refuses_a_whole_wave_section_naming_its_step` (victory-gpu): the same two programs on the native host's path. The container is built from the title's compute pieces (`compute_container`) and translated with the host's options (`native::shaders::translate`). It checks that the refusal string, the text the refusal log line shows, ends with the specific cause. It fails on main. In the #110 Series S log: bf8467abe00be277 @⁠0xc1c, d7cbf5c5680197fd @⁠0xc58, f0c2cd42c9188fc3 @⁠0x1ac. The next refusal report will say which step to model. victory-shader (242) and victory-gpu (arm64) tests, Windows clippy and `cargo xtask policy` pass.
"a whole-wave section step the simulation does not follow" said nothing of the step. The simulation now keeps the first step it does not model (an EXEC write that is no constant, a scalar ALU result, a non-VALU instruction, a v_readlane at an unknown lane, a VALU result in an SGPR, DPP with lanes off or a control it does not model, modifiers, v_permlane with computed selects, a VALU operation it does not model), and a value without a shape is refused naming it, or as no reduction or prefix when every step is modelled. Nothing is lowered: the next tester log tells the form.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 17:32:19 +00:00
github-bot force-pushed github-bot/gh-121 from 945d0b5414 to 38ec7ea2c9 2026-11-26 17:43:04 +00:00 Compare
github manually merged commit 9bed7ba87f into main 2026-11-26 18:09:26 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-26 18:09 UTC · original

Merged, thanks. #121 and #122 each added the same pieces helper to pipeline.rs, so I kept one, container_of (f57d5ad).

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 18:09 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/121#issuecomment-7200127472) Merged, thanks. #121 and #122 each added the same pieces helper to `pipeline.rs`, so I kept one, `container_of` (f57d5ad).
This discussion has been locked. Commenting is limited to contributors.
No description provided.