gpu: sync retire queues before the title settle #3543

Closed
lambirou wants to merge 1 commit from upstream-pr/3543 into main
lambirou commented 2026-11-30 03:33:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T03:33:47Z.


Refs #3507 (c).

case6_written_generation_preserved releases the newer wrapper, which signals a release-time fence on every registered queue, then calls settle() without waiting. settle() resubmits the drain list but never waits, so a fence that has not completed leaves both wrappers retained and the _debug1 stage fails with retained=131072/2 against 65536/1. Sync direct and gated before settle(), as #3457 did for startup_resource_retire.cpp.

Test-only change: three lines in tests/startup_resource_retire_title.cpp; the expectation and runtime code are unchanged.

Validation

  • dev and release builds of startup_resource_retire_title.
  • startup_resource_retire_title_hardware_debug0: 5/5 passed in Debug and 5/5 passed at /O2 on the RX 9060 XT.
  • startup_resource_retire_title_hardware_debug1: 5/5 skipped with code 77 in both presets because this host has no C:\\Windows\\System32\\d3d12sdklayers.dll.
  • WARP/off/inline debug0 variants pass; the debug1 variants skip 77 for the same missing debug layer.
  • git diff --check and git show --check pass.

Not measured: the exact _debug1 path. The failure that prompted the fix was not reproduced locally because the D3D12 debug layer is unavailable on this host.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5558489488 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3543). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-30T03:33:47Z. --- Refs #3507 (c). `case6_written_generation_preserved` releases the newer wrapper, which signals a release-time fence on every registered queue, then calls `settle()` without waiting. `settle()` resubmits the drain list but never waits, so a fence that has not completed leaves both wrappers retained and the `_debug1` stage fails with `retained=131072/2` against `65536/1`. Sync `direct` and `gated` before `settle()`, as #3457 did for `startup_resource_retire.cpp`. Test-only change: three lines in `tests/startup_resource_retire_title.cpp`; the expectation and runtime code are unchanged. ## Validation - dev and release builds of `startup_resource_retire_title`. - `startup_resource_retire_title_hardware_debug0`: 5/5 passed in Debug and 5/5 passed at /O2 on the RX 9060 XT. - `startup_resource_retire_title_hardware_debug1`: 5/5 skipped with code 77 in both presets because this host has no `C:\\Windows\\System32\\d3d12sdklayers.dll`. - WARP/off/inline `debug0` variants pass; the `debug1` variants skip 77 for the same missing debug layer. - `git diff --check` and `git show --check` pass. Not measured: the exact `_debug1` path. The failure that prompted the fix was not reproduced locally because the D3D12 debug layer is unavailable on this host. AI-assisted.
lambirou commented 2026-11-30 03:39:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T03:39:31Z.


Folded into #3542 so the main-green fix, including the retire-queue sync, is one review unit. The 3-line test change is unchanged.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7268084008 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3543#issuecomment-7268084008). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-30T03:39:31Z. --- Folded into #3542 so the main-green fix, including the retire-queue sync, is one review unit. The 3-line test change is unchanged.

Pull request closed

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
R0Y00/Xbox2Windows!3543
No description provided.