tombox-xshader tests: update mesh_refusals_are_explicit to the current translator #19

Closed
artareias wants to merge 0 commits from upstream-pr/19 into main
artareias commented 2026-11-21 17:33:30 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by artareias on 2026-11-21T17:33:30Z.


Problem

mesh_refusals_are_explicit fails on main: two assertions expect refusals that the translator no longer produces.

  1. A mesh shader with payload_bytes = 16 is now translated (amp_ms_payload), so .err().expect("refusal") panics.
  2. Marking a mesh program as an Amplification shader is still refused, but the message is no longer s3 = payload ring >> 8 ... no global-store path. It is now s_sendmsg outside a geometry shader (the program sends GS_ALLOC_REQ, which an amplification shader cannot).

Change

Assert the current behaviour instead:

  • payload case: translation succeeds, profile ms_6_5, HLSL contains struct TbPayload { uint w[4]; }; and in payload TbPayload tb_pl (the same strings tests/amp.rs checks for the paired mesh shader).
  • amplification case: still refused, with s_sendmsg outside a geometry shader.

All other refusal assertions are unchanged. Test code only.

Testing

Windows 10 19045, MSVC 14.44, rustc 1.100.0, AMD Radeon RX 7600:

  • TOMBOX_EXEC_HW=1 cargo test -p tombox-xshader --test mesh: 13 passed, 1 failed. The failure is gta_mesh_programs_extract_with_mesh_runtime_info, which needs local analysis/shaders/mesh fixtures (see #13). With that fixture test skipped, all other mesh tests pass, including the three GPU mesh tests on the hardware adapter.
  • Default (WARP): the three GPU mesh tests still fail by design (MeshShaderTier 0, the message says to rerun with TOMBOX_EXEC_HW=1).

🤖 Generated with Claude Code

<!-- greyfinch-sync:omonkeyz/xbox-emulator:issue:6532156452 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/pull/19). Originally posted by [artareias](https://github.com/artareias) on 2026-11-21T17:33:30Z. --- ## Problem `mesh_refusals_are_explicit` fails on `main`: two assertions expect refusals that the translator no longer produces. 1. A mesh shader with `payload_bytes = 16` is now translated (`amp_ms_payload`), so `.err().expect("refusal")` panics. 2. Marking a mesh program as an Amplification shader is still refused, but the message is no longer `s3 = payload ring >> 8 ... no global-store path`. It is now `s_sendmsg outside a geometry shader` (the program sends `GS_ALLOC_REQ`, which an amplification shader cannot). ## Change Assert the current behaviour instead: - payload case: translation succeeds, profile `ms_6_5`, HLSL contains `struct TbPayload { uint w[4]; };` and `in payload TbPayload tb_pl` (the same strings `tests/amp.rs` checks for the paired mesh shader). - amplification case: still refused, with `s_sendmsg outside a geometry shader`. All other refusal assertions are unchanged. Test code only. ## Testing Windows 10 19045, MSVC 14.44, rustc 1.100.0, AMD Radeon RX 7600: - `TOMBOX_EXEC_HW=1 cargo test -p tombox-xshader --test mesh`: 13 passed, 1 failed. The failure is `gta_mesh_programs_extract_with_mesh_runtime_info`, which needs local `analysis/shaders/mesh` fixtures (see #13). With that fixture test skipped, all other mesh tests pass, including the three GPU mesh tests on the hardware adapter. - Default (WARP): the three GPU mesh tests still fail by design (`MeshShaderTier 0`, the message says to rerun with `TOMBOX_EXEC_HW=1`). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
copilot-pull-request-reviewer[bot] commented 2026-11-21 17:33:39 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-21T17:33:39Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

<!-- greyfinch-sync:omonkeyz/xbox-emulator:review:6006993123 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/pull/19#pullrequestreview-6006993123). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-11-21T17:33:39Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
omonkeyz commented 2026-11-22 13:13:10 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by omonkeyz on 2026-11-22T13:13:10Z.


Main's history was rewritten, which auto-closed this PR (sorry for the noise). Already covered on main by the current mesh refusal tests. Thanks!

<!-- greyfinch-sync:omonkeyz/xbox-emulator:comment:7079651984 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/pull/19#issuecomment-7079651984). Originally posted by [omonkeyz](https://github.com/omonkeyz) on 2026-11-22T13:13:10Z. --- Main's history was rewritten, which auto-closed this PR (sorry for the noise). Already covered on main by the current mesh refusal tests. Thanks!

Pull request closed

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
omonkeyz/xbox-emulator!19
No description provided.