chore(gpu): drop the one_call guard that is always None #420
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!420
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-420"
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?
@Luxuride on GitHub · 2026-12-04 01:46 UTC · original
Luxuride:chore/gpu-drop-one-call→main· +2 −10 · 1 files · 1 commits · merged 2026-12-04 03:41 UTCWhat
crates/victory-gpu/src/pipeline/library.rs:443-446:(&false).then(..)isfalse.then(..), i.e. alwaysNone, soCALLINGis never locked and the three call sites (:620,:702,:759) bind a permanently-Noneguard. The module doc atpipeline/library.rs:16-23records why the global lock was removed ("the eight workers made pipelines one at a time: 87 to 96 of 110 looks at each worker found it waiting for that lock"), so the switch was turned off on purpose and the vestige was left behind.This deletes the dead
one_callfunction, itsstatic, the threelet _all = one_call();lines and the now-unusedMutexGuardimport (the other two sites spell itstd::sync::MutexGuard). Behaviour is unchanged: the guard was alwaysNone.Validation
mainreports 2 errors; this branch reports only theindirect.rs:720one (fixed separately in another PR). No other warning appears or disappears atpipeline/library.rs. The crate still type-checks with 25 warnings, none new.Overlap check
crates/victory-gpu/src/pipeline/library.rsappears in no open PR's file list, and no issue mentionsone_call.