fix(gpu): wake WaitOnAddress in fence::written and fail fast on non-sharing errors in samplers::open_alone (#318) #337
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/337"
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 Androtim/MiniVI. Originally posted by RUIZ-Enrique-25002136 on 2026-12-02T13:26:41Z.
Summary
Fixes both synchronization and I/O stall bugs in
crates/victory-gputracked in #318.Fixes #318
Changes
crates/victory-gpu/src/fence.rs(fence::written):(&raw const fence.value).cast()before releasingwaitersandlivelocks, then calledWakeByAddressAll(addr)under#[cfg(windows)](matchingfence::set).#[cfg(windows)]unit testa_write_at_the_fence_address_wakes_wait_on_addressverifyingWaitOnAddresswakes promptly on bottom-of-pipeWritten::Valuewrites.crates/victory-gpu/src/pipeline/samplers.rs(open_alone/open_alone_in):open_alone_in(dir)and gated the 10-second retry loop specifically one.raw_os_error() == Some(ERROR_SHARING_VIOLATION)(32), so permanent errors (ERROR_ACCESS_DENIED,ERROR_PATH_NOT_FOUND, etc.) fail immediately instead of stalling threads on the globalMADEmutex.open_alone_fails_fast_on_non_sharing_errorusing a blocking directory atFILEto verify non-sharing errors returnNonewithout stalling.Rig Specs Tested On
x86_64)victory-gpucrate; full clippy & tests verified on GitHub Actionswindows-latestCI)x86_64) — Windowsx86_64-pc-windows-msvcCI verifies compilation, clippy, and unit testsRun Settings & Profile
origin/main(b0842d9)VICTORY_*Overrides: N/AMeasurements & Verification
cargo clippy --workspace --all-targets --locked -- -D warnings(verified on GitHub Actionswindows-latestCI)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings(verified on GitHub Actionswindows-latestCI)cargo test --locked -p xtask-> 8 passed, 0 failedcargo xtask policy->asset policy: 324 files okcargo test -p victory-gpu --locked -- --test-threads=1(verified on GitHub Actionswindows-latestCI)