shader: pin the exact lane-mask-join sub-message for a saved-EXEC mask joined with data #492

Open
opened 2026-11-27 22:11:28 +00:00 by github-bot · 4 comments
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 22:07 UTC · original

What

When a compute program holds a lane mask as the saved EXEC — every lane — and joins it with data on the skip edge, emit/lower.rs refuses it with a message whose sub-message names where the data is: "on the host's lanes". gfx_refusal_tests.rs asserted only the prefix of that message, so a change to the sub-message (which is what tells a tester which lane-mask-join case a shader hit, and is what the #4 class list is sorted by) would pass unnoticed.

What this pins

  • one hand-assembled compute program — the saved-EXEC mask joined with data on the skip edge — asserting the whole refusal text, sub-message included, not just its prefix.

Test-only: hand-assembled GFX10 words in gfx_refusal_tests.rs's existing style, no game data, no behaviour change, no new dependencies.

How it was tested

  • cargo test -p victory-shader (the new test, and the file's existing refusal tests)
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings
  • cargo xtask policy
  • Shader corpus sweep: not applicable, no translation changes.
  • Game run: not needed.
**@⁠AnastasisKon** on GitHub · 2026-11-27 22:07 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/488) ## What When a compute program holds a lane mask as the saved EXEC — every lane — and joins it with data on the skip edge, `emit/lower.rs` refuses it with a message whose sub-message names where the data is: "on the host's lanes". `gfx_refusal_tests.rs` asserted only the prefix of that message, so a change to the sub-message (which is what tells a tester *which* lane-mask-join case a shader hit, and is what the #4 class list is sorted by) would pass unnoticed. ## What this pins - one hand-assembled compute program — the saved-EXEC mask joined with data on the skip edge — asserting the whole refusal text, sub-message included, not just its prefix. Test-only: hand-assembled GFX10 words in `gfx_refusal_tests.rs`'s existing style, no game data, no behaviour change, no new dependencies. ## How it was tested - `cargo test -p victory-shader` (the new test, and the file's existing refusal tests) - `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` - `cargo xtask policy` - Shader corpus sweep: not applicable, no translation changes. - Game run: not needed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:11:28 +00:00
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 22:07 UTC · original

/claim

**@⁠AnastasisKon** on GitHub · 2026-11-27 22:07 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/488#issuecomment-7229052256) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-27 22:07 UTC · original

Claimed by @⁠AnastasisKon. Open a draft pull request with Refs #488 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-27 22:07 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/488#issuecomment-7229054554) Claimed by @⁠AnastasisKon. Open a draft pull request with `Refs #488` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 12:44 UTC · original

/release - done without a PR: on branch vibe/lane-mask-submessage-tests-4f9c68, in my fork's main. a_saved_exec_mask_joined_with_data_names_the_host_lanes_case pins the exact lane-mask-join sub-message for a saved-EXEC mask joined with data.

**@⁠AnastasisKon** on GitHub · 2026-11-28 12:44 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/488#issuecomment-7239439534) /release - done without a PR: on branch `vibe/lane-mask-submessage-tests-4f9c68`, in my fork's `main`. `a_saved_exec_mask_joined_with_data_names_the_host_lanes_case` pins the exact lane-mask-join sub-message for a saved-EXEC mask joined with data.
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 12:45 UTC · original

Released. This issue is free to claim.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 12:45 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/488#issuecomment-7239441391) Released. This issue is free to claim.
This discussion has been locked. Commenting is limited to contributors.
No description provided.