Skip to content

D3D12.X: share idle command allocator spares - #159

Draft
bmjask wants to merge 1 commit into
stack/155-preallocate-opus-outputfrom
stack/156-share-idle-allocators
Draft

bmjask wants to merge 1 commit into
stack/155-preallocate-opus-outputfrom
stack/156-share-idle-allocators

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #158.

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

What and why

This unit isolates d3d12.x: share idle command allocator spares as one reviewable step in the redesign.

Upstream overlap

This is sourced from draft upstream PR xcl-dev#2725 and is retained only as an internal reconciliation draft.

What is in it

  • b1021103 is the cleaned-stack form of integrated commit bc0f924c.

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/155-preallocate-opus-output branch from 4976472 to e65ae9e Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/156-share-idle-allocators branch from b102110 to 7d8a2de Compare November 27, 2026 00:46
@bmjask
bmjask force-pushed the stack/155-preallocate-opus-output branch from e65ae9e to c17a571 Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/156-share-idle-allocators branch from 7d8a2de to 0f811de Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/155-preallocate-opus-output branch from c17a571 to ef09132 Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/156-share-idle-allocators branch from 0f811de to 68bbdf1 Compare November 27, 2026 05:14
A retail world run measured hundreds of free PC allocators stranded in separate title-allocator namespaces while non-local memory kept growing. Let an allocator without an idle spare take a same-type spare from another namespace before creating another native allocator.

Fence probes run outside the pool lock. Exact backing snapshots and donor reset tokens reject concurrent use or an unlocked native Reset, then the candidate is transferred and claimed through the requester's normal reset generation. Adapted from PR xcl-dev#2725.

The Windows GNU cross-target library/test check passes; native Windows tests and smoke were unavailable.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/155-preallocate-opus-output branch from ef09132 to 6c4ff88 Compare November 27, 2026 12:35
@bmjask
bmjask force-pushed the stack/156-share-idle-allocators branch from 68bbdf1 to 2124732 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