Skip to content

DXC: keep LINK_GATE open on OOM and forward linker arguments - #84

Draft
bmjask wants to merge 1 commit into
stack/080-gpu-owned-texture-metadatafrom
stack/081-dxc-link-gate-oom
Draft

bmjask wants to merge 1 commit into
stack/080-gpu-owned-texture-metadatafrom
stack/081-dxc-link-gate-oom

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #83.

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

What and why

This unit isolates dxc: keep link_gate open on oom and forward linker arguments as one reviewable step in the redesign.

Upstream overlap

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

What is in it

  • d894ed3f is the cleaned-stack form of integrated commit ee716ba5.

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/080-gpu-owned-texture-metadata branch from d430e3a to abbcf1a Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/081-dxc-link-gate-oom branch from d894ed3 to 42f83e3 Compare November 27, 2026 00:46
…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/080-gpu-owned-texture-metadata branch from abbcf1a to b65df2f Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/081-dxc-link-gate-oom branch from 42f83e3 to 079c02c 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