leonida-gpu: a console queue's table has its 38 slots; slot 37 is the wait with options #3478

Merged
leonida/mandy
MoonEyes merged 6 commits from fix/console-queue-dma-tables into main 2026-12-04 15:22:22 +00:00

Pull request successfully merged and closed

Member

Commits:

  • leonida-gpu: a console queue's table has its 38 slots; slot 37 is the wait with options
  • leonida-gpu: a copy (DMA) list is type 16 and gets a table of its own, not the graphics list's
  • leonida-gpu: page mappings take the page size of their flags; the single-destination mapping and the unmapping exist
  • leonida-gpu: DispatchX tells the waves-of-32 flag (0x8000) from the counts-in-threads flag (0x20)
  • leonida-gpu: neutral comments on the queue's mapping and wait methods; the copy list's no-ops return S_OK

4 files changed, 275 insertions(+), 37 deletions(-).

Tested:

  • cargo test --locked -p leonida-gpu -p leonida -p leonida-hle -p leonida-shader: 1 621 passed, 0 failed (all branches of this batch together, test/lot-gxdk-0412 @ 229b1e1a8f).
  • In-game gate, RTX 4060, driver 32.0.16.1088, -SeriesS -PrecompileUsed, run lot3b-sansnatif: PASS, 325 s in the world, no device loss, longest present gap 0.7 s, median 15.2 fps (main: 14.4).

AI-assisted: Claude Opus 5.5 (Claude Code), reviewed by a separate Claude Opus 5.5 judge. Merged by Moon's agent on Moon's written authorization (two maintainers).

🤖 Generated with Claude Code

Commits: - leonida-gpu: a console queue's table has its 38 slots; slot 37 is the wait with options - leonida-gpu: a copy (DMA) list is type 16 and gets a table of its own, not the graphics list's - leonida-gpu: page mappings take the page size of their flags; the single-destination mapping and the unmapping exist - leonida-gpu: DispatchX tells the waves-of-32 flag (0x8000) from the counts-in-threads flag (0x20) - leonida-gpu: neutral comments on the queue's mapping and wait methods; the copy list's no-ops return S_OK 4 files changed, 275 insertions(+), 37 deletions(-). Tested: - `cargo test --locked -p leonida-gpu -p leonida -p leonida-hle -p leonida-shader`: 1 621 passed, 0 failed (all branches of this batch together, test/lot-gxdk-0412 @ 229b1e1a8f). - In-game gate, RTX 4060, driver 32.0.16.1088, -SeriesS -PrecompileUsed, run lot3b-sansnatif: PASS, 325 s in the world, no device loss, longest present gap 0.7 s, median 15.2 fps (main: 14.4). AI-assisted: Claude Opus 5.5 (Claude Code), reviewed by a separate Claude Opus 5.5 judge. Merged by Moon's agent on Moon's written authorization (two maintainers). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The table had 36 slots, so a call to 36 or 37 read past it. Both exist now: 37 waits as the queue's wait does, 36 (live debug) is the logged failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 2 MiB flag was ignored and 64 KiB hard-coded. Slots 29 and 30 (newer layout) were missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only 0x20 changes the counts; 0x8000 changes none of them. The two are named and tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	d3d12/crates/leonida-gpu/src/list.rs
Author
Member

Merged by Moon's agent on Moon's written authorization. The batch's only conflict (two new tests side by side at the same spot of list.rs's tests, from #3472 and this branch) is resolved by keeping both; cargo test -p leonida-gpu --locked: 777 passed, 0 failed at aad2a4ba1d. Tested as part of test/lot-gxdk-0412 (in-game gate PASS, lot3b-sansnatif).

Merged by Moon's agent on Moon's written authorization. The batch's only conflict (two new tests side by side at the same spot of list.rs's tests, from #3472 and this branch) is resolved by keeping both; `cargo test -p leonida-gpu --locked`: 777 passed, 0 failed at aad2a4ba1d. Tested as part of test/lot-gxdk-0412 (in-game gate PASS, lot3b-sansnatif).
Sign in to join this conversation.
No description provided.