shader: pin the exact lane-mask-join sub-message for a saved-EXEC mask (#488) #493

Manually merged
github merged 1 commit from github-bot/gh-489 into main 2026-11-28 01:36:54 +00:00 AGit
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 22:07 UTC · original
AnastasisKon:vibe/lane-mask-submessage-tests-4f9c68 → main · +89 −0 · 1 files · 1 commits · merged 2026-11-28 01:36 UTC

What this changes

Refs #492.

A compute program that holds a lane mask as the saved EXEC — every lane — and joins it with data on the skip edge is refused naming where the data sits: "on the host's lanes". gfx_refusal_tests.rs asserted the prefix of that message only, so a change to the sub-message would pass unnoticed — and that sub-message is what tells a tester which of #4's lane-mask-join classes a shader hit.

One test, on a hand-assembled compute program in the file's existing style: it asserts the whole refusal text, sub-message included.

The file has been appended to on main since this branch was cut (the cross-lane tests from #147), so resolving it kept both additions: main's tests first, this one after them. Nothing else in the file changed.

No behaviour change, no new dependencies, no game data.

How it was tested

  • cargo test -p victory-shader: 403 passed, 0 failed, 3 ignored, the new a_saved_exec_mask_joined_with_data_names_the_host_lanes_case included.
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings: no warnings.
  • cargo xtask policy: 398 files ok.
  • Shader corpus sweep: not applicable — no translation change, only a test.
  • Ran the game: not needed (test-only).

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md: none added — the test pins a refusal message the code already produces
  • New diagnostics are behind a VICTORY_* variable and documented: none added
**@⁠AnastasisKon** on GitHub · 2026-11-27 22:07 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/489) `AnastasisKon:vibe/lane-mask-submessage-tests-4f9c68` → `main` · +89 −0 · 1 files · 1 commits · merged 2026-11-28 01:36 UTC ## What this changes Refs #492. A compute program that holds a lane mask as the saved EXEC — every lane — and joins it with data on the skip edge is refused naming where the data sits: "on the host's lanes". `gfx_refusal_tests.rs` asserted the prefix of that message only, so a change to the sub-message would pass unnoticed — and that sub-message is what tells a tester which of #4's lane-mask-join classes a shader hit. One test, on a hand-assembled compute program in the file's existing style: it asserts the whole refusal text, sub-message included. The file has been appended to on `main` since this branch was cut (the cross-lane tests from #147), so resolving it kept both additions: `main`'s tests first, this one after them. Nothing else in the file changed. No behaviour change, no new dependencies, no game data. ## How it was tested - [x] `cargo test -p victory-shader`: 403 passed, 0 failed, 3 ignored, the new `a_saved_exec_mask_joined_with_data_names_the_host_lanes_case` included. - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings`: no warnings. - [x] `cargo xtask policy`: 398 files ok. - [x] Shader corpus sweep: not applicable — no translation change, only a test. - [ ] Ran the game: not needed (test-only). ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md: none added — the test pins a refusal message the code already produces - [x] New diagnostics are behind a `VICTORY_*` variable and documented: none added
A compute program that holds a lane mask as the saved EXEC (every lane) and
joins it with data on the skip edge is refused naming where the data is, "on
the host's lanes". The refusal test asserted the prefix only, so a change to
the sub-message, which is what tells a tester which #4 class a shader hit,
would pass unnoticed. Assert the whole text on a hand-assembled program.

The test file has been appended to on main since this was written; both
additions are kept, this one after main's.

Refs #488
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:11:29 +00:00
github manually merged commit c304abd5aa into main 2026-11-28 01:36:54 +00:00
Author
Owner

@⁠Olima34 on GitHub · 2026-11-28 01:36 UTC · original · approved these changes

Check report (helping the maintainer clear the queue):

  • CI: check and macos-scripts green on the current head.
  • Read: the whole diff (one refusal test, synthetic encoding). It pins the exact lane-mask-join sub-message. It still passes on current main after tonight's translator merges.
  • Local check: current main (226645f9) merged with this PR and the other test/docs/tools PRs we're landing in this batch (#401 #403 #426 #471 #475 #479 #483 #485 #490 #493 #498 #502 #509 #515). On it, the victory-gpu (arm64), victory-shader, victory-backend, victory-metal and victory tests pass, as do the macOS script tests (rustup-path.sh, run-summary-compare.sh, run-summary.sh --self-test), Windows clippy (-D warnings) and cargo xtask policy. One victory-gpu run in four failed main's own multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately. That test also flakes on main alone, so it isn't from this batch.
  • Not checked: no game run (the maintainer asked us to work on GitHub only).

Thanks @⁠AnastasisKon!

**@⁠Olima34** on GitHub · 2026-11-28 01:36 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/489#pullrequestreview-6094924471) · **approved these changes** Check report (helping the maintainer clear the queue): - **CI:** `check` and `macos-scripts` green on the current head. - **Read:** the whole diff (one refusal test, synthetic encoding). It pins the exact lane-mask-join sub-message. It still passes on current main after tonight's translator merges. - **Local check:** current main (226645f9) merged with this PR and the other test/docs/tools PRs we're landing in this batch (#401 #403 #426 #471 #475 #479 #483 #485 #490 #493 #498 #502 #509 #515). On it, the `victory-gpu` (arm64), `victory-shader`, `victory-backend`, `victory-metal` and `victory` tests pass, as do the macOS script tests (`rustup-path.sh`, `run-summary-compare.sh`, `run-summary.sh --self-test`), Windows clippy (`-D warnings`) and `cargo xtask policy`. One `victory-gpu` run in four failed main's own `multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately`. That test also flakes on main alone, so it isn't from this batch. - **Not checked:** no game run (the maintainer asked us to work on GitHub only). Thanks @⁠AnastasisKon!
This discussion has been locked. Commenting is limited to contributors.
No description provided.