Skip to content

D3D12.X: forget a command list before the runtime frees it - #85

Draft
bmjask wants to merge 1 commit into
stack/081-dxc-link-gate-oomfrom
stack/082-forget-list-before-release
Draft

bmjask wants to merge 1 commit into
stack/081-dxc-link-gate-oomfrom
stack/082-forget-list-before-release

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #84.

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

What and why

This unit isolates d3d12.x: forget a command list before the runtime frees it as one reviewable step in the redesign.

Upstream overlap

This is patch-identical to upstream PR xcl-dev#2691; PR xcl-dev#2852 is a newer treatment of the same release-order problem. This draft is reconciliation-only.

What is in it

  • 5a4326b7 is the cleaned-stack form of integrated commit 07281054.

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/082-forget-list-before-release branch 2 times, most recently from f12e7e2 to deb43d9 Compare November 27, 2026 05:14
cl_release dropped XCL state keyed by a PC command list address only after the runtime's final Release had freed the list. A list created on another thread could immediately reuse that address and lose its bind state, allocator, last submit, and DRED marks. Probe the final reference and forget keyed state before the freeing Release, matching the established resource-release pattern.

A fake list whose Release reuses its address immediately verifies the new list keeps its state.

Assisted-by: Claude Code (Claude Opus 5.5)
Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/081-dxc-link-gate-oom branch from 079c02c to f470851 Compare November 28, 2026 01:35
@bmjask
bmjask force-pushed the stack/082-forget-list-before-release branch from deb43d9 to 309e355 Compare November 28, 2026 01:36
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

@github-actions github-actions Bot added the stale label Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant