Skip to content

D3D12.X: complete graphics driver cache identity - #162

Draft
bmjask wants to merge 1 commit into
stack/158-indirect-dispatch-abifrom
stack/159-graphics-cache-identity
Draft

bmjask wants to merge 1 commit into
stack/158-indirect-dispatch-abifrom
stack/159-graphics-cache-identity

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #161.

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

What and why

This unit isolates d3d12.x: complete graphics driver cache identity as one reviewable step in the redesign.

Upstream overlap

This completes cache identity around upstream PR xcl-dev#902 and is retained as a reconciliation draft.

What is in it

  • b74a4d28 is the cleaned-stack form of integrated commit d000f97f.

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/158-indirect-dispatch-abi branch from 73f4430 to cf2dbf2 Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/159-graphics-cache-identity branch 2 times, most recently from be68ec3 to 2ac2ded Compare November 27, 2026 01:01
Translated graphics PSOs could share a driver-blob key even when one retained a native geometry shader that the other did not. Hash and size the final GS bytes, including native GS bytecode, rather than only XCL's generated rectangle shader.

Scope bounded RAM entries to the effective per-device root signature. Persisted paths remain adapter-scoped and encode the static-sampler ABI, while in-process entries can no longer cross devices.

Stream-output declarations are pointer-backed state not represented by the descriptor key, so leave those pipelines uncached instead of aliasing different layouts. An unreadable nonempty GS is also conservatively uncached. This follows the cache-identity findings in PR xcl-dev#902 and issue xcl-dev#2508.

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/158-indirect-dispatch-abi branch from 15f27a6 to 7d7359c Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/159-graphics-cache-identity branch from 2ac2ded to 65071bb 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