GPU: the lists a split submission runs at once give their descriptor tables' slots back #1320

Manually merged
github merged 1 commit from github-bot/gh-1320 into gh-pr/1320/base 2026-11-26 18:09:45 +00:00 AGit
Owner

@⁠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 UTC

Problem

submit_split (crates/victory-gpu/src/queue.rs) runs the lists before its first unmet memory wait at once - host.execute(&now) - exactly as submit_cut does, but does not call list::tables_done for them afterwards while submit_cut does. 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), and bind drops 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 on cuts() / README debugging table); execute_now then routes to submit_split. Defaults are not affected: with waits cut, submit_cut takes the other branch and already releases these slots.

Change

After the same host.execute(&now) in submit_split, call
crate::list::tables_done(&lists[..cut]), as submit_cut does for
lists[..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.
  • No game or GPU needed for this one: the two branches differ only in the missing call. There is no host-free way to run submit_split (it returns without a host GPU), so no regression test is added; the same is true of submit_cut's existing call, which this mirrors.
  • CI note: the check job on main at the time of writing is already failing on the repository's asset-policy test (crates/victory-shader/src/emit/lower.rs is 526,968 bytes against the 524,288-byte limit), unrelated to this branch.
**@⁠CwWwWwW** on GitHub · 2026-11-26 15:01 UTC · [original](https://github.com/fxceless/victory-fork/pull/1320) `CwWwWwW:fix/split-waits-tables-done` → `main` · +6 −0 · 1 files · 1 commits · merged 2026-11-26 18:04 UTC ## Problem `submit_split` (`crates/victory-gpu/src/queue.rs`) runs the lists before its first unmet memory wait at once - `host.execute(&now)` - exactly as `submit_cut` does, but does not call `list::tables_done` for them afterwards while `submit_cut` does. `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), and `bind` drops 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 on `cuts()` / README debugging table); `execute_now` then routes to `submit_split`. Defaults are not affected: with waits cut, `submit_cut` takes the other branch and already releases these slots. ## Change After the same `host.execute(&now)` in `submit_split`, call `crate::list::tables_done(&lists[..cut])`, as `submit_cut` does for `lists[..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. - No game or GPU needed for this one: the two branches differ only in the missing call. There is no host-free way to run `submit_split` (it returns without a host GPU), so no regression test is added; the same is true of `submit_cut`'s existing call, which this mirrors. - CI note: the `check` job on `main` at the time of writing is already failing on the repository's asset-policy test (`crates/victory-shader/src/emit/lower.rs` is 526,968 bytes against the 524,288-byte limit), unrelated to this branch.
`submit_split` runs the lists before its first unmet wait at once with
`host.execute`, as `submit_cut` does. `submit_cut` then calls
`list::tables_done` for those lists; its comment says why: the lists are
not detached on that path, so nothing gives their fresh per-draw tables'
dynamic slots back until the title resets them, and the ring of 262,144
slots ran out (run 45: 3,143 of 15,942 tables refused in one frame).
`submit_split` had no such call: with `VICTORY_CUT_WAITS=0` (the
documented switch that holds whole lists, as before) every submission
leaks the slots of its first lists the same way, and later draws are
dropped once the ring is full.

The call is added after the same `host.execute`, mirroring `submit_cut`.

`cargo test -p victory-gpu --lib`: 217 passed, 0 failed, 6 ignored;
`cargo clippy -p victory-gpu --all-targets -- -D warnings`: clean. No
game run: the two branches differ only in that call, and nothing without
a host GPU drives `submit_split`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 15:02:05 +00:00
Author
Owner

@⁠CwWwWwW on GitHub · 2026-11-26 15:09 UTC · original

CI note: the failing check is the pre-existing asset-policy violation on crates/victory-shader/src/emit/lower.rs (526,968 B against the 524,288-byte limit) on main, 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 --locked 217 passed, 0 failed, 6 ignored; cargo clippy -p victory-gpu --all-targets --locked -- -D warnings clean.

**@⁠CwWwWwW** on GitHub · 2026-11-26 15:09 UTC · [original](https://github.com/fxceless/victory-fork/pull/1320#issuecomment-7195865655) CI note: the failing `check` is the pre-existing asset-policy violation on `crates/victory-shader/src/emit/lower.rs` (526,968 B against the 524,288-byte limit) on `main`, not this branch. [#1322](https://git.gtahub.st/github/fxceless--victory-fork/pulls/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 --locked` 217 passed, 0 failed, 6 ignored; `cargo clippy -p victory-gpu --all-targets --locked -- -D warnings` clean.
github-bot changed target branch from main to gh-pr/1320/base 2026-11-26 18:09:44 +00:00
github manually merged commit f2ee1dacc6 into gh-pr/1320/base 2026-11-26 18:09:45 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.