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

Manually merged
github merged 1 commit from github-bot/gh-535 into gh-pr/535/base 2026-11-28 02:10:42 +00:00 AGit
Owner

@⁠alexballvideos-netizen on GitHub · 2026-11-28 01:11 UTC · original
alexballvideos-netizen:native-skip-pipelines → main · +40 −3 · 3 files · 1 commits · merged 2026-11-28 02:09 UTC

Refs #538

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.
**@⁠alexballvideos-netizen** on GitHub · 2026-11-28 01:11 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/535) `alexballvideos-netizen:native-skip-pipelines` → `main` · +40 −3 · 3 files · 1 commits · merged 2026-11-28 02:09 UTC Refs #538 `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.
The switch was read only on the D3D12 path. The native host now drops
every draw and dispatch (direct, thread-count and indirect) of a
pipeline with a listed shader hash, counts each as dropped, and notes
it in the pass trace. The hash list parser is shared with the D3D12
path, and its test now runs on macOS too.

Refs #534
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:14:54 +00:00
github-bot changed target branch from main to gh-pr/535/base 2026-11-28 02:10:42 +00:00
github manually merged commit 18f963c6ec into gh-pr/535/base 2026-11-28 02:10:42 +00:00
Author
Owner

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

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!

**@⁠Olima34** on GitHub · 2026-11-28 02:09 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/535#pullrequestreview-6095128214) · **approved these changes** 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!
This discussion has been locked. Commenting is limited to contributors.
No description provided.