Skip to content

D3D12.X: reuse pending pipeline entries on bind - #133

Draft
bmjask wants to merge 1 commit into
stack/129-count-queued-buildsfrom
stack/130-reuse-pending-pipelines
Draft

bmjask wants to merge 1 commit into
stack/129-count-queued-buildsfrom
stack/130-reuse-pending-pipelines

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #132.

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

What and why

This unit isolates d3d12.x: reuse pending pipeline entries on bind as one reviewable step in the redesign.

Upstream overlap

This overlaps upstream PR xcl-dev#1708 and is retained only as an internal reconciliation draft.

What is in it

  • 1182cad2 is the cleaned-stack form of integrated commit e4151b95.

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/129-count-queued-builds branch from b114ddd to a68c4e1 Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/130-reuse-pending-pipelines branch from 1182cad to 06eaf73 Compare November 27, 2026 00:46
@bmjask
bmjask force-pushed the stack/129-count-queued-builds branch from a68c4e1 to fe3906b Compare November 27, 2026 01:00
@bmjask
bmjask force-pushed the stack/130-reuse-pending-pipelines branch from 06eaf73 to 4e76fe4 Compare November 27, 2026 01:01
A bind looked up the same stand-in twice in the global pending map. Completed compute pipelines also entered the wait path, taking completion and demand locks and trying to promote work whose real pointer was already published.

Adapt xcl-dev#1708 to the integrated shared Build model: resolve through the first retained Pending entry and return a completed real pipeline after one acquire load. Zero still takes the existing budget, spared, wait, and failed-build paths.

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

Source implementation and measurements: xcl-dev#1708 by CallMeBrado, written with OpenAI Codex (GPT-6).

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/129-count-queued-builds branch from fe3906b to 9bd6256 Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/130-reuse-pending-pipelines branch from 4e76fe4 to 27787db 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