Skip to content

D3D12.X: poll allocator fences outside global state - #109

Draft
bmjask wants to merge 1 commit into
stack/105-window-driver-build-countfrom
stack/106-poll-allocator-fences-unlocked
Draft

bmjask wants to merge 1 commit into
stack/105-window-driver-build-countfrom
stack/106-poll-allocator-fences-unlocked

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #108.

This is an internal draft stack in bmjask/xcl; it is not an upstream merge request.

What and why

This unit isolates d3d12.x: poll allocator fences outside global state as one reviewable step in the redesign.

What is in it

  • 0f7c4993 is the cleaned-stack form of integrated commit d13a699b.

The patch content is preserved; only ancestry changed to omit a canceled add/revert sequence.

Tested

Tests were not rerun while packaging this already-integrated change into the draft stack.

Regression run

Not run during stack packaging.

Not tested

  • Windows MSVC build and test suite
  • D3D12 GPU execution
  • scripts/smoke.ps1 main/head comparison

AI use

Codex, GPT-5.6-sol, removed canceled ancestry, created the stack branch, and drafted this description. It did not author new code during stack packaging.

@bmjask
bmjask force-pushed the stack/106-poll-allocator-fences-unlocked branch from 0f7c499 to 6c6410b Compare November 27, 2026 00:46
@bmjask
bmjask force-pushed the stack/105-window-driver-build-count branch from 3661241 to e8cb284 Compare November 27, 2026 01:00
@bmjask
bmjask force-pushed the stack/106-poll-allocator-fences-unlocked branch from 6c6410b to 593418b Compare November 27, 2026 01:01
GetCompletedValue can enter the driver and block or call back into XCL.
Snapshot strong fence references and list generations under the allocator
state lock, poll them unlocked, then revalidate the exact submission before
recording diagnostics or declaring storage reusable.

This removes driver polling from note_resubmits and in_flight without
allowing an address-reuse generation or a newly reserved submission to be
mistaken for completed work.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/105-window-driver-build-count branch from e8cb284 to c2999c3 Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/106-poll-allocator-fences-unlocked branch from 593418b to a345170 Compare November 27, 2026 05:14
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