GPU: replay pending descriptors before publishing the host heap #365
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!365
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/365/head"
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?
@FIocker on GitHub · 2026-11-24 02:37 UTC · original
FIocker:gpu/publish-initialized-descriptor-heap→main· +12 −9 · 1 files · 1 commits · merged 2026-11-24 08:02 UTCPublish the host heap only after replaying the descriptors queued before first use. Previously the OnceLock was initialized before the pending loop ran. A concurrent caller could take the fast path, bind the heap, and proceed before its queued descriptor writes became visible.
Replay the queued writes inside the OnceLock initializer while holding the existing pending mutex. The fast path remains unchanged after initialization. This is independent of #52, which covers heap lifetime during descriptor mirroring.
On Windows WARP,
cargo test --locked -p victory-gpu --features diagnostics -- --test-threads=1passed 45 tests with one existing ignored test. The staged asset policy and diff checks passed.@jeremygold02 on GitHub · 2026-11-24 03:58 UTC · original
Thanks @FIocker for this change. I tested head
a4e7f1d004bff927c205981c623142c8e7dbb4a4with:Result: 5 passed, 0 failed (41 filtered out). This exercised descriptor heap slot allocation/release, heap start placement, and descriptor-view lifetime across resource destruction and copies. The filtered tests do not directly stress concurrent first-use publication, and I did not run the broader WARP suite described in the PR body.