Skip to content

[WIP] shader: offline native compute cache follow-up - #3348

Draft
romn4rch wants to merge 2 commits into
R0Y00:mainfrom
romn4rch:copilot/pr-1994-wip-4dff51a0d
Draft

romn4rch wants to merge 2 commits into
R0Y00:mainfrom
romn4rch:copilot/pr-1994-wip-4dff51a0d

Conversation

@romn4rch

Copy link
Copy Markdown
Contributor

Draft replacement for #1994; this is intentionally incomplete and is not ready to merge. The branch contains partial toolchain-fingerprint and unit-regression work. Still outstanding: the one-program/#1441 artifact-boundary rescope and a fenced GPU readback of the offline-produced artifact with an identity-refusal control. Required cache/GPU validation could not run because the configured CTest suite, DXC, LLVM, probe binaries, and offline-artifact GPU harness are unavailable.

The original PR remains open. This draft overlaps its scope and is published only to preserve the partial work; please keep only one submission if this work later becomes complete.

ArnabSaga and others added 2 commits November 28, 2026 14:59
Add a bounded offline translation pipeline and revision-2 cache for two source-built gfx1013 compute programs.

- Reuse pixel_aot and compute_store_aot for native instruction decoding and lowering.
- Compile generated HLSL into validated and signed desktop DXIL.
- Add canonical records, deterministic cache keys and SHA-256 artifact verification.
- Enforce dependency identity, root-signature compatibility and backend PSO evidence.
- Implement ownership-aware publication, request quarantine and cache refusal handling.
- Add source-built fixtures, negative controls and reproducible Windows/WSL documentation.

Verification:
- Native machine-code preflight: PASS.
- Offline native cache: 156/156 checks passed.
- WARP and Intel Iris Xe root/PSO creation: PASS.
- Selected upstream regression tests: 9/9 passed.
- Fresh native code, records, HLSL and CSOs match the previously accepted vectors.
- Stale validated manifests are rejected.
- Documentation, bidi and diff checks passed.

Tested against upstream commit 3682b34.

This contribution is offline-only. It introduces no slot 62 loader, C++ runtime integration, production slot 67 parsing, Dispatch or ExecuteIndirect implementation.

The verification scripts are manually invoked and are not registered in CTest.

Refs R0Y00#1412
Related to R0Y00#1954.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

2 participants