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

Merged
CwWwWwW merged 1 commit from upstream-pr/1320 into main 2026-11-26 18:04:52 +00:00
CwWwWwW commented 2026-11-26 15:01:30 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by CwWwWwW on 2026-11-26T15:01:30Z.


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.
<!-- greyfinch-sync:fxceless/victory-fork:issue:6629417403 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1320). Originally posted by [CwWwWwW](https://github.com/CwWwWwW) on 2026-11-26T15:01:30Z. --- ## 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 commented 2026-11-26 16:06:37 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by CwWwWwW on 2026-11-26T15:09:29Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7195865655 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1320#issuecomment-7195865655). Originally posted by [CwWwWwW](https://github.com/CwWwWwW) on 2026-11-26T15:09:29Z. --- 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://github.com/fxceless/victory-fork/pull/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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!1317
No description provided.