GPU: check for a bound view heap before claiming the frame in early_textures #506
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/fxceless--victory-fork!506
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-506"
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?
@adritoyalser on GitHub · 2026-11-25 01:51 UTC · original
adritoyalser:fix/early-textures-heap-check→main· +134 −18 · 1 files · 1 commits · openSummary
Follow-up to
c96b4f2:crates/victory-gpu/src/draw.rs(State::early_textures),FRAME.swap(frame, Ordering::Relaxed)previously executed before verifying thatself.heapscontains a view heap (!h.samplers()) with aHostHeap. If the first draw of a frame had no view heap bound (or no host heap yet), it burned the frame'sfirstflag and returned early, skipping the frame'sVICTORY_EARLY_TEXTURES_MSupload pass for all subsequent draws in that frame.early_textures_with/claim_early_budget) soFRAMEis only claimed on the frame's first draw that actually has a view heap set, matching the doc comment.draw::early_textures_tests:early_budget_runs_once_per_frame_and_resets_bake_budgetearly_textures_without_view_heap_does_not_burn_frame_pass(verifying a draw without a view heap leaves the frame unclaimed so a subsequent draw with a real view heap on the same frame still runs the early texture pass).Verification
cargo test -q -p victory-gpu --lib --locked early_textures_tests(2 passed, 0 failed)cargo clippy -q -p victory-gpu --all-targets --all-features --locked -- -D warnings(0 warnings; default-feature clippy onc96b4f2currently fails on pre-existingplaced_filler_twins, tracked in #491)View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.