gpu(native): VICTORY_SKIP_PIPELINES drops draws and dispatches on macOS (#534) #535

Merged
alexballvideos-netizen merged 1 commit from upstream-pr/535 into main 2026-11-28 02:09:32 +00:00
alexballvideos-netizen commented 2026-11-28 01:11:30 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by alexballvideos-netizen on 2026-11-28T01:11:30Z.


Refs #534

VICTORY_SKIP_PIPELINES=<hash>[,<hash>...] was read only on the D3D12 path, so on macOS it did nothing. With this change, the native host drops every draw and dispatch of a pipeline that has a shader of a listed hash. That's the quickest way to find which work puts a fault in the picture: take it away and dump the targets.

What this changes

  • skipped_pipeline (native/glue.rs): reads the list once, then matches it against the stage hashes of the title pipeline (pipeline::native_stages). It's checked at the top of graphics_inner, which covers draws, indexed draws and mesh dispatches, direct and indirect. It's also checked in dispatch, dispatch_threads and indirect dispatches.
  • Counting: each skipped draw or dispatch counts in "native draws so far" as "a draw/dispatch skipped by VICTORY_SKIP_PIPELINES", and the pass trace notes it as skipped.
  • pipeline::parse_skip_hashes: now shared with the D3D12 path (same rules: 16 hex digits, others warned about and left out). Its test now also runs on macOS.
  • Docs: docs/native-host.md lists the switch.

Checks

  • cargo test -p victory-gpu (arm64): 445 passed. Clippy for x86_64-pc-windows-gnullvm with -D warnings, and cargo xtask policy, both pass.
  • In game (M3 Max, Series X, headless, main 226645f9 + this change), with VICTORY_SKIP_PIPELINES=35d5616385a0a8f8,6eedbc0771df10ab,notahash: the log warns VICTORY_SKIP_PIPELINES expects 16-digit shader hashes hash="notahash", and the draws of those two G-buffer mesh programs are dropped ("a draw skipped by VICTORY_SKIP_PIPELINES"). Unset, nothing changes.
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5535246891 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/535). Originally posted by [alexballvideos-netizen](https://github.com/alexballvideos-netizen) on 2026-11-28T01:11:30Z. --- Refs #534 `VICTORY_SKIP_PIPELINES=<hash>[,<hash>...]` was read only on the D3D12 path, so on macOS it did nothing. With this change, the native host drops every draw and dispatch of a pipeline that has a shader of a listed hash. That's the quickest way to find which work puts a fault in the picture: take it away and dump the targets. ### What this changes - **`skipped_pipeline` (`native/glue.rs`):** reads the list once, then matches it against the stage hashes of the title pipeline (`pipeline::native_stages`). It's checked at the top of `graphics_inner`, which covers draws, indexed draws and mesh dispatches, direct and indirect. It's also checked in `dispatch`, `dispatch_threads` and indirect dispatches. - **Counting:** each skipped draw or dispatch counts in "native draws so far" as "a draw/dispatch skipped by VICTORY_SKIP_PIPELINES", and the pass trace notes it as skipped. - **`pipeline::parse_skip_hashes`:** now shared with the D3D12 path (same rules: 16 hex digits, others warned about and left out). Its test now also runs on macOS. - **Docs:** `docs/native-host.md` lists the switch. ### Checks - `cargo test -p victory-gpu` (arm64): 445 passed. Clippy for `x86_64-pc-windows-gnullvm` with `-D warnings`, and `cargo xtask policy`, both pass. - In game (M3 Max, Series X, headless, `main` `226645f9` + this change), with `VICTORY_SKIP_PIPELINES=35d5616385a0a8f8,6eedbc0771df10ab,notahash`: the log warns `VICTORY_SKIP_PIPELINES expects 16-digit shader hashes hash="notahash"`, and the draws of those two G-buffer mesh programs are dropped ("a draw skipped by VICTORY_SKIP_PIPELINES"). Unset, nothing changes.
Olima34 commented 2026-11-28 02:09:29 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T02:09:29Z.

Review: APPROVED


Check report (helping the maintainer clear the queue):

  • CI: check and macos-scripts green on 18f963c6.
  • Read: the whole diff. VICTORY_SKIP_PIPELINES now works on the native host: draws (in graphics_inner), direct, thread-count and indirect dispatches of a pipeline with a listed shader hash are dropped, counted as dropped and noted in the pass trace. The hash parser is shared with the D3D12 path, and its test now runs on macOS. Off unless set, read once, documented in the switch list.
  • Local check on current main (8efcff13) + this PR: victory-gpu tests pass (arm64, 448), Windows clippy (-D warnings) clean, cargo xtask policy ok.
  • Not checked: no game run (the maintainer asked us to work on GitHub only).

Thanks @alexballvideos-netizen!

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:review:6095128214 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/535#pullrequestreview-6095128214). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T02:09:29Z. **Review:** APPROVED --- Check report (helping the maintainer clear the queue): - **CI:** `check` and `macos-scripts` green on 18f963c6. - **Read:** the whole diff. `VICTORY_SKIP_PIPELINES` now works on the native host: draws (in `graphics_inner`), direct, thread-count and indirect dispatches of a pipeline with a listed shader hash are dropped, counted as dropped and noted in the pass trace. The hash parser is shared with the D3D12 path, and its test now runs on macOS. Off unless set, read once, documented in the switch list. - **Local check on current main (8efcff13) + this PR:** `victory-gpu` tests pass (arm64, 448), Windows clippy (`-D warnings`) clean, `cargo xtask policy` ok. - **Not checked:** no game run (the maintainer asked us to work on GitHub only). Thanks @alexballvideos-netizen!
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
LakshanSivakumar/Native-Victory-macOS!535
No description provided.