gpu(native): VICTORY_SKIP_PIPELINES drops draws and dispatches on macOS (#534) #539
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!539
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@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 UTCRefs #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 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.@Olima34 on GitHub · 2026-11-28 02:09 UTC · original · approved these changes
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!