Skip to content

gpu: sync retire queues before the title settle - #3543

Closed
lambirou wants to merge 1 commit into
R0Y00:mainfrom
lambirou:tests/startup-retire-settle
Closed

lambirou wants to merge 1 commit into
R0Y00:mainfrom
lambirou:tests/startup-retire-settle

Conversation

@lambirou

Copy link
Copy Markdown
Contributor

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.

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 R0Y00#3457 did for startup_resource_retire. The expectation is unchanged.

Refs R0Y00#3507
@lambirou

Copy link
Copy Markdown
Contributor Author

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

@lambirou lambirou closed this Nov 30, 2026
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.

1 participant