gpu: sync retire queues before the title settle #3545

Closed
github-bot wants to merge 1 commit from gh-pr/3543/head into gh-pr/3543/base
Owner

@⁠lambirou on GitHub · 2026-11-30 03:33 UTC · original
lambirou:tests/startup-retire-settle → main · +3 −0 · 1 files · 1 commits · closed without merging

Refs #3509 (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 #3459 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** on GitHub · 2026-11-30 03:33 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3543) `lambirou:tests/startup-retire-settle` → `main` · +3 −0 · 1 files · 1 commits · closed without merging Refs #3509 (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 #3459 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.
case6 of startup_resource_retire_title releases the newer wrapper and calls settle() without waiting for the queues. Every release signals a release-time fence on each registered queue, and settle() only resubmits the drain list, so a fence that has not completed leaves both wrappers retained and the stage fails with retained=131072/2 against 65536/1. Sync the direct and gated queues before settle(), as #3457 did for startup_resource_retire. The expectation is unchanged.

Refs #3507
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 03:39:40 +00:00
github-bot closed this pull request 2026-11-30 03:39:40 +00:00
Author
Owner

@⁠lambirou on GitHub · 2026-11-30 03:39 UTC · original

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

**@⁠lambirou** on GitHub · 2026-11-30 03:39 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3543#issuecomment-7268084008) Folded into #3544 so the main-green fix, including the retire-queue sync, is one review unit. The 3-line test change is unchanged.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.