Skip to content

D3D12.X: enqueue texture page waits outside global state - #144

Draft
bmjask wants to merge 1 commit into
stack/140-abort-sparse-reusefrom
stack/141-enqueue-page-waits-unlocked
Draft

bmjask wants to merge 1 commit into
stack/140-abort-sparse-reusefrom
stack/141-enqueue-page-waits-unlocked

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #143.

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 texture page waits outside global state as one reviewable step in the redesign.

What is in it

  • f3d82627 is the cleaned-stack form of integrated commit 74d9a1a6.

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/140-abort-sparse-reuse branch from 90d1bfc to bd5e0f3 Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/141-enqueue-page-waits-unlocked branch from f3d8262 to 396c6b0 Compare November 27, 2026 00:46
@bmjask
bmjask force-pushed the stack/140-abort-sparse-reuse branch from bd5e0f3 to c6dc74e Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/141-enqueue-page-waits-unlocked branch from 396c6b0 to bd1c01f Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/140-abort-sparse-reuse branch from c6dc74e to 819b9fc Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/141-enqueue-page-waits-unlocked branch from bd1c01f to 48a347b Compare November 27, 2026 05:14
Texture page preparation called the native title-queue Wait while holding the device-wide PAGES registry. A driver call on one queue therefore serialized streaming, bookkeeping, and unrelated queues behind a global state lock.

Give each title queue a lifecycle-scoped preparation gate, reserve its monotonic mapping fence value under PAGES, and enqueue the native wait after releasing PAGES. The gate prevents same-queue submissions from overtaking a reserved wait while different queues remain independent; exact queue retirement removes both waited state and its gate.

The Windows GNU library/test cross-check passed with the existing warnings. Windows MSVC runtime, GPU, and smoke tests were not available here.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/140-abort-sparse-reuse branch from 819b9fc to 2ce55a8 Compare November 27, 2026 12:35
@bmjask
bmjask force-pushed the stack/141-enqueue-page-waits-unlocked branch from 48a347b to 09217d6 Compare November 27, 2026 12:35
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