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

Open
opened 2026-11-27 22:07:42 +00:00 by AnastasisKon · 4 comments
AnastasisKon commented 2026-11-27 22:07:42 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T22:07:42Z.


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.
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6655219292 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/488). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-27T22:07:42Z. --- ## 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 commented 2026-11-27 22:07:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T22:07:44Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7229052256 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/488#issuecomment-7229052256). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-27T22:07:44Z. --- /claim
github-actions[bot] commented 2026-11-27 22:07:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T22:07:53Z.


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

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7229054554 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/488#issuecomment-7229054554). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T22:07:53Z. --- Claimed by @AnastasisKon. Open a draft pull request with `Refs #488` in its description within 24 hours, or the claim expires.
AnastasisKon commented 2026-11-28 12:44:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:44:56Z.


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

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239439534 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/488#issuecomment-7239439534). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T12:44:56Z. --- /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.
github-actions[bot] commented 2026-11-28 12:45:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T12:45:06Z.


Released. This issue is free to claim.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239441391 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/488#issuecomment-7239441391). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T12:45:06Z. --- Released. This issue is free to claim.
Sign in to join this conversation.
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
LakshanSivakumar/Native-Victory-macOS#488
No description provided.