Skip to content

Shaders: prewarm observed indirect split pipelines - #174

Draft
bmjask wants to merge 1 commit into
stack/170-cache-write-failuresfrom
stack/171-prewarm-observed-indirect
Draft

bmjask wants to merge 1 commit into
stack/170-cache-write-failuresfrom
stack/171-prewarm-observed-indirect

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #173.

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

What and why

This unit isolates shaders: prewarm observed indirect split pipelines as one reviewable step in the redesign.

What is in it

  • 879f4175 is the cleaned-stack form of integrated commit f26b4195.

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/170-cache-write-failures branch from 22e494e to adf9fff Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/171-prewarm-observed-indirect branch from 879f417 to a487c80 Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/170-cache-write-failures branch from adf9fff to 623db6a Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/171-prewarm-observed-indirect branch from a487c80 to 21077b7 Compare November 27, 2026 01:01
bmjask pushed a commit that referenced this pull request Nov 27, 2026
…ker::Link

Fix two linked-compilation bugs in dxc.rs introduced alongside accessor-library linking (#174):\n\n1. Keep LINK_GATE open and propagate transient E_OUTOFMEMORY errors directly from compile_linked_or_fallback instead of permanently disabling linked compilation and falling back to the heavier compile_whole path under memory pressure. Deterministic non-OOM failures still close LINK_GATE once and fall back to compile_whole.\n2. Forward the shader optimization tier and caller extra arguments to IDxcLinker::Link, and reject library blobs whose length cannot be represented by the API.\n\nAdd unit tests for OOM gate retention, link argument boundaries, and live DXC argument forwarding.\n\nPart of #174\nPart of xcl-dev#1566\nPart of xcl-dev#1269\nPart of xcl-dev#1833\n\nAssisted-by: Google Antigravity (Gemini 4 Neon)\nAssisted-by: Codex (GPT-5.6-sol)
bmjask pushed a commit that referenced this pull request Nov 27, 2026
…ker::Link

Fix two linked-compilation bugs in dxc.rs introduced alongside accessor-library linking (#174):

1. Keep LINK_GATE open and propagate transient E_OUTOFMEMORY errors directly from compile_linked_or_fallback instead of permanently disabling linked compilation and falling back to the heavier compile_whole path under memory pressure. Deterministic non-OOM failures still close LINK_GATE once and fall back to compile_whole.
2. Forward the shader optimization tier and caller extra arguments to IDxcLinker::Link, and reject library blobs whose length cannot be represented by the API.

Add unit tests for OOM gate retention, link argument boundaries, and live DXC argument forwarding.

Part of #174
Part of xcl-dev#1566
Part of xcl-dev#1269
Part of xcl-dev#1833

Assisted-by: Google Antigravity (Gemini 4 Neon)
Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/170-cache-write-failures branch from 623db6a to b5a4f67 Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/171-prewarm-observed-indirect branch from 21077b7 to 6940cf6 Compare November 27, 2026 05:14
Record the canonical console compute record hash when a split chain reaches ExecuteIndirect. The bounded journal lets used-only preparation distinguish the few split programs whose GPU-written dimensions require the exact whole fallback.

Build their duplicate pieces and whole form with the indirect-CBV root and cache namespace, while preserving direct-root pieces and leaving unobserved split programs unchanged.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/171-prewarm-observed-indirect branch from 6940cf6 to 2118746 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