Skip to content

D3D12.X: shard pending pipeline lookups by stand-in - #138

Draft
bmjask wants to merge 1 commit into
stack/134-cache-hot-hook-slotsfrom
stack/135-shard-pending-pipelines
Draft

bmjask wants to merge 1 commit into
stack/134-cache-hot-hook-slotsfrom
stack/135-shard-pending-pipelines

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #137.

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

What and why

This unit isolates d3d12.x: shard pending pipeline lookups by stand-in as one reviewable step in the redesign.

What is in it

  • c99d852b is the cleaned-stack form of integrated commit f02d32d0.

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/135-shard-pending-pipelines branch from c99d852 to bb61f07 Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/134-cache-hot-hook-slots branch from a5de045 to 4d5a973 Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/135-shard-pending-pipelines branch from bb61f07 to 0f44e45 Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/134-cache-hot-hook-slots branch from 4d5a973 to e67a9cf Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/135-shard-pending-pipelines branch from 0f44e45 to 2b22440 Compare November 27, 2026 05:14
After the single-lookup bind improvement, every recording thread still took one process-wide PENDING map lock. The xcl-dev#1708 bind benchmark measured about 102 ns per completed bind with four callers, versus about 21 ns with one, leaving unrelated command-list recorders serialized.

Route exact stand-in addresses across 64 fixed shards. Insert, lookup, and release remain single-shard operations; the retained Pending owns the shared Build independently, and constant-time queued accounting needs no registry-wide snapshot. Tests cover parallel lifetimes, raw-address replacement, shard distribution, and lock independence.

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

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/135-shard-pending-pipelines branch from 2b22440 to b52d3df 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