Skip to content

D3D12.X: publish single descriptors outside shared heap locks - #115

Draft
bmjask wants to merge 1 commit into
stack/111-publish-texture-writesfrom
stack/112-publish-descriptors-unlocked
Draft

bmjask wants to merge 1 commit into
stack/111-publish-texture-writesfrom
stack/112-publish-descriptors-unlocked

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #114.

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

What and why

This unit isolates d3d12.x: publish single descriptors outside shared heap locks as one reviewable step in the redesign.

What is in it

  • 99ace148 is the cleaned-stack form of integrated commit f24fe432.

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/112-publish-descriptors-unlocked branch 2 times, most recently from a14c75f to 7106ffd Compare November 27, 2026 01:01
Single-descriptor publication called CopyDescriptorsSimple while holding
the heap registries, serializing unrelated descriptor work and allowing a
driver callback to deadlock heap teardown.

Snapshot the exact heap generation and strong source owner, validate the
source and destination handles, and lease the destination slot before
dropping all registry locks. Defer shared-range reuse until overlapping
copies finish, and reject stale slots after raw-address reuse.

Assisted-by: Google Antigravity (Gemini 4 Neon)
Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/112-publish-descriptors-unlocked branch from 7106ffd to f1be927 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