gpu(native): VICTORY_SKIP_PIPELINES drops draws and dispatches on macOS (#534) #535
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/535"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 ofgraphics_inner, which covers draws, indexed draws and mesh dispatches, direct and indirect. It's also checked indispatch,dispatch_threadsand indirect dispatches.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/native-host.mdlists the switch.Checks
cargo test -p victory-gpu(arm64): 445 passed. Clippy forx86_64-pc-windows-gnullvmwith-D warnings, andcargo xtask policy, both pass.main226645f9+ this change), withVICTORY_SKIP_PIPELINES=35d5616385a0a8f8,6eedbc0771df10ab,notahash: the log warnsVICTORY_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.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):
checkandmacos-scriptsgreen on18f963c6.VICTORY_SKIP_PIPELINESnow works on the native host: draws (ingraphics_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.8efcff13) + this PR:victory-gputests pass (arm64, 448), Windows clippy (-D warnings) clean,cargo xtask policyok.Thanks @alexballvideos-netizen!