[WIP] shader: offline native compute cache follow-up #3350
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3350
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3348"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@romn4rch on GitHub · 2026-11-28 11:23 UTC · original
romn4rch:copilot/pr-1994-wip-4dff51a0d→main· +3377 −0 · 5 files · 2 commits · draftDraft 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.
@Leyukaka on GitHub · 2026-11-29 08:36 UTC · original · reviewed
Comment on
4dff51a0(draft). Evidence: reading the diff and the head blobs, plusgit merge-treeagainst main1341bd6b(clean). Nothing was built or run.4dff51a0.tests/compute_native_cache_check.py:141now hashes--llvmon the Windows host (77f9530dcalledexpected_identity()with no library). Its default (:32, :113) is the Linux path/usr/lib/llvm-15/lib/libLLVM-15.so.1, and the command at docs/experiments.md:18106-18108 passes no--llvm. The read fails, :148 setsidentity = {}, and :152identity["translator"]raises KeyError. The same string is passed to the WSL translate stage (:257), so one value has to name the library on both sides. Fix: hash the library inside the WSL worker and carry the hash back, or take separate host and WSL paths.stage_compilebuildsexpectedwithoutlibrary(tools/startup/compute_native.py:1274), so it has nollvmkey.inspect_entry(:957) andverify_translation_receipt(:1161) compare only fields present inexpected, and the manifest'sllvmis copied from the receipt (:1327) or from the old manifest (:1315). docs/experiments.md:18078-18080 says a manifest from another LLVM library is stale and the compile stage rebuilds it. Only the translate stage can see that.publish_refusal, :1086),inspect_entryreturnsrefusedwithout comparing one (:930-948), and all three stages skip refused keys (:1183, :1216, :1282). docs/experiments.md:18053-18055 documents this as permanent per revision. The effect is that a translator change which would accept the program is not retried until REVISION changes or the cache is deleted. Recordingtranslatorandpipelinein the refusal manifest would let the translate stage retry.RWTexture2D<uint>. The required HLSL isRWByteAddressBuffer outputData : register(u0);(tests/compute_native_check.py:199), with the root signatureSRV(t0),UAV(u0),...(:115).tests/compute_native_check.py --unitonly, which istool_unit_checks(:479): the group-product refusal, and that thellvm/compiler/validatorhashes change with their files. The second check still passes if thevalidatorargument is ignored, because its dxil.dll sits beside dxc.exe (:498-500), which is the fallback path (compute_native.py:212).serialize/parse,cache_key,parse_manifest,writer_lock,stage_request,publish_refusal/publish_error/publish_corruptand the missing, stale, refused and corrupt branches ofinspect_entryuse only the standard library and repository files, so they can run in the Linux job without LLVM, DXC or WSL. So cantranslate_text(:176) andcontrols(:223), which lower authored text.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.