Skip to content

Recompiler: assemble DXIL containers with one bitcode copy - #60

Draft
bmjask wants to merge 1 commit into
stack/056-bounded-pipeline-waitsfrom
stack/057-dxil-container-one-copy
Draft

bmjask wants to merge 1 commit into
stack/056-bounded-pipeline-waitsfrom
stack/057-dxil-container-one-copy

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #59.

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

What and why

This unit isolates recompiler: assemble dxil containers with one bitcode copy as one reviewable step in the redesign.

What is in it

  • 2a00d41f is the cleaned-stack form of integrated commit 3c703a68.

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.

Write the DXIL program header and bitcode directly into one exactly sized container allocation. Remove intermediate part, string, and signature allocations while preserving all public formats and digest coverage.

Keep an independent golden full-PSV byte fixture from the prior serializer so a same-length field reordering cannot hide behind the new assembly helpers.

The upstream release microbenchmark reported 2.18-2.47x faster 1-2 MiB container assembly. GNU Windows-target cargo check passed here; Windows/MSVC, GPU tests, and title smoke were not run on this host.

Adapted from PR xcl-dev#2664.
Assisted-by: Google Antigravity (Gemini 4 Neon)
Assisted-by: Codex (GPT-5.6-sol)

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/056-bounded-pipeline-waits branch from 6b0226e to ee55634 Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/057-dxil-container-one-copy branch from d9bdfe2 to 64dc0c0 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