GPU: the lists a split submission runs at once give their descriptor tables' slots back #1320
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!1320
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1320"
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?
@CwWwWwW on GitHub · 2026-11-26 15:01 UTC · original
CwWwWwW:fix/split-waits-tables-done→main· +6 −0 · 1 files · 1 commits · merged 2026-11-26 18:04 UTCProblem
submit_split(crates/victory-gpu/src/queue.rs) runs the lists before its first unmet memory wait at once -host.execute(&now)- exactly assubmit_cutdoes, but does not calllist::tables_donefor them afterwards whilesubmit_cutdoes.submit_cut's comment records the consequence: those lists are not detached, so their fresh per-draw descriptor tables' dynamic slots are only given back when the title resets the lists; without the call the ring of 262,144 slots ran out (run 45: 3,143 of 15,942 tables refused in one frame), andbinddrops the draws whose table found no room.The path is reachable with
VICTORY_CUT_WAITS=0- the documented switch that holds whole lists (see the comment oncuts()/ README debugging table);execute_nowthen routes tosubmit_split. Defaults are not affected: with waits cut,submit_cuttakes the other branch and already releases these slots.Change
After the same
host.execute(&now)insubmit_split, callcrate::list::tables_done(&lists[..cut]), assubmit_cutdoes forlists[..first]. Six lines including the comment.Tests
cargo test -p victory-gpu --lib --locked: 217 passed, 0 failed, 6 ignored.cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: clean.submit_split(it returns without a host GPU), so no regression test is added; the same is true ofsubmit_cut's existing call, which this mirrors.checkjob onmainat the time of writing is already failing on the repository's asset-policy test (crates/victory-shader/src/emit/lower.rsis 526,968 bytes against the 524,288-byte limit), unrelated to this branch.@CwWwWwW on GitHub · 2026-11-26 15:09 UTC · original
CI note: the failing
checkis the pre-existing asset-policy violation oncrates/victory-shader/src/emit/lower.rs(526,968 B against the 524,288-byte limit) onmain, not this branch. #1322 from the same fork moves that file's tests under the limit; once it lands this can be rebased and the check should be green.Local on this branch:
cargo test -p victory-gpu --lib --locked217 passed, 0 failed, 6 ignored;cargo clippy -p victory-gpu --all-targets --locked -- -D warningsclean.