Skip to content

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

Merged
fxceless merged 1 commit into
fxceless:mainfrom
CwWwWwW:fix/split-waits-tables-done
Nov 26, 2026
Merged

fxceless merged 1 commit into
fxceless:mainfrom
CwWwWwW:fix/split-waits-tables-done

Conversation

@CwWwWwW

@CwWwWwW CwWwWwW commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

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.

…tables' slots back

`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`.
@CwWwWwW

CwWwWwW commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

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.

@fxceless
fxceless merged commit af23c65 into fxceless:main Nov 26, 2026
BaggyALPHA pushed a commit to BaggyALPHA/victory-fork that referenced this pull request Nov 26, 2026
Rebased onto upstream 52ac4ec (clean). Two of its five new commits land in
this tree's own harvest area: fxceless#1320 fixes a dynamic-slot leak in
`submit_split` that this tree's enlarged ring may have been masking, and
fxceless#1324 stops dynamic slots being released into a heap that merely sits at the
same address -- which let two live lists hold the same slots and rewrite each
other's descriptors. That is the class of fault that removes a device with no
page-fault address, which is the signature seen here twice, and this tree
exercises that path harder than upstream because it triples the slot count.
First concrete suspect for the loss. fxceless#1321 also helps directly: a staging
file left by a killed process no longer loses its translation, and both
sessions here ended with the process killed.

flamingo `a6163f2` puts a caveat on the ambient result: it dumped every
skinning input over runs 229-235 and found dark faces are late textures
arriving at camera cuts, not lighting. The face turning skin-toned here was
read as the level change landing; it may have been the texture. The walls
gaining colour is the better evidence, and the outdoor near-field black is
not explained by late textures at all, so the depth-occlusion hypothesis
stands.

Also records trustno1's mouse device (worth taking -- the keyboard stand-in
pad is the weakest part of playing this here) and its automatic BAR window
cap under 24 GB, which relieves the same pressure that was present when the
card sat at 94 % of budget.

245 victory-gpu tests pass with diagnostics (225 plain, up from 224 as
upstream added tests), 234 victory-shader; build and clippy clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
KomanderDG88 added a commit to KomanderDG88/VIniVIdiVIci that referenced this pull request Nov 26, 2026
… part 2)

9613092 alone does not build (its second deep-skips form call lacks the
label 93db653 adds), so the fifth merge goes on to e4245f3, the commit
it was meant to bring; nothing after it (fxceless#1320, fxceless#1321, fxceless#1353, fxceless#1336,
fxceless#1324 of 13:05 are left for later).

- 93db653: build fix for 9613092 (VICTORY_WAVE_WHY form label).
- e4245f3: VICTORY_CARD_HASH_WIDE=alt (1 was already there; default
  still a thread a piece), VICTORY_GATHER_SEGMENTS and
  VICTORY_GATHER_DISPATCHES (off), VICTORY_DIRTY_4K (off),
  VICTORY_MERGE_RUNS_ALT (unset), VICTORY_HEAP_RECHECK_EVERY (0),
  VICTORY_WAVE_WIDE_ONLY (empty); VICTORY_PAGE_WRITES default now
  guards+slots+plain reads' textures (1|2|8; "guards" is the old one);
  host callbacks check due textures first; textures without card room
  asked again (upstream VIctory #3198); a released view heap forgets its
  title-memory run (fxceless#589); shader fixes: mesh corners masked 9 bits,
  two immediate samplers behind a uniform branch, sampleLevel log2 and
  _cl clamp, split wave64 mask moves (fxceless#1112, fxceless#702).

Conflicts, our structure kept: HostList hunks moved to host/host_list.rs;
image hunks to emit/image_buffer.rs; copy_stale takes both COLD_SKIP
marks and DIRTY_4K pieces; Journal keeps cold_skip::Written plus the 4K
map; translate_listed wraps translate_counted; MERGE_RUNS_ALT before our
card_steps split. Duplicates kept once (ours): fxceless#1324 (HEAP_IDENTITY),
fxceless#1002 (SHADER_CASCADE_EXACT), and fxceless#646: upstream's DispatchX thread
counts (USER_DISPATCH_THREADS, same code 0x106) dropped for our port of
fxceless#1292 (USER_THREAD_LIMIT, which also covers the paired 64-lane form).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
grosterr added a commit to grosterr/victory-fork that referenced this pull request Nov 26, 2026
…t-submission dynamic descriptor slots)

Cherry-picked commit f2ee1da from refs/pr/1320 to avoid pulling 58de9bf shader translator changes before Wave L3.

Co-Authored-By: Antigravity <noreply@anthropic.com>
Galygious pushed a commit to Galygious/BOB-implementation that referenced this pull request Nov 26, 2026
…tables' slots back (#1320)

`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`.

(cherry picked from commit af23c6529ddc242107d2f2b09be268606e963685)

Source: fxceless/victory-fork#1320 (CwWwWwW, Git author cccw).

BOB keeps the donor code in this commit. A separate BOB commit ties the call to the existing capped-heap capability.
Galygious added a commit to Galygious/BOB-implementation that referenced this pull request Nov 26, 2026
Use the existing probed view-heap limit to select the donor fix for the 1,000,000-slot heap. The uncapped split-wait path retains its baseline behavior.

Source: fxceless/victory-fork#1320
Galygious added a commit to Galygious/BOB-implementation that referenced this pull request Nov 26, 2026
Credit CwWwWwW and record the capped-heap route, the two full GPU-library runs, the queue checks, and the scope of the remaining donor ports.

Source: fxceless/victory-fork#1320
pr0vId3nce added a commit to pr0vId3nce/VIctory-NVIDIA that referenced this pull request Nov 27, 2026
…tables' slots back (#1320)

`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`.

Original author: cccw, fxceless/victory-fork#1320 (merged in victory-fork main).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

(cherry picked from commit af23c6529ddc242107d2f2b09be268606e963685)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants