Skip to content

D3D12.X: enqueue sparse title waits outside global state - #128

Draft
bmjask wants to merge 1 commit into
stack/124-poll-sparse-fences-unlockedfrom
stack/125-enqueue-sparse-waits-unlocked
Draft

bmjask wants to merge 1 commit into
stack/124-poll-sparse-fences-unlockedfrom
stack/125-enqueue-sparse-waits-unlocked

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #127.

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

What and why

This unit isolates d3d12.x: enqueue sparse title waits outside global state as one reviewable step in the redesign.

What is in it

  • b8dee333 is the cleaned-stack form of integrated commit abd52802.

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/124-poll-sparse-fences-unlocked branch from f8e275a to fd76489 Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/125-enqueue-sparse-waits-unlocked branch from b8dee33 to 443b3c3 Compare November 27, 2026 00:46
@bmjask
bmjask force-pushed the stack/124-poll-sparse-fences-unlocked branch from fd76489 to d42c4d3 Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/125-enqueue-sparse-waits-unlocked branch from 443b3c3 to 42b477e Compare November 27, 2026 01:01
Sparse submission preparation called the native title-queue Wait while holding the global sparse state. A driver-side callback or an unrelated sparse operation could therefore stall behind that state even though the wait only needs an exact fence/value snapshot.

Serialize preparation per title queue, reserve its monotonic wait under sparse state, then enqueue the native wait after releasing that state. The per-queue gate prevents a concurrent submission from overtaking the thread that reserved its wait.

Checked with the Windows GNU target; Windows MSVC runtime, GPU, and smoke tests were not available here.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/125-enqueue-sparse-waits-unlocked branch from 42b477e to bbf78c4 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