README: saved driver blobs belong to the DXIL a build makes #2224
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2234"
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?
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T10:55:07Z.
The README says
--precompile --pipelinessaves driver blobs "for the next run", but not that the next run has to make the same DXIL. Compute blobs are looked up by the exact DXIL bytes and flags (driver_cache::pathinhle/d3d12x/real.rs). So a warm-up made with one build, or withXCL_DIRECT_DXILset differently, is missed, and those pipelines compile on the title's threads again. This adds one bullet saying so, next to the existing note on translated-shader reuse.Seen on an RTX 3060 12 GB with a retail title. After a warm-up made with a PR branch, a run of
mainhad 4-16 cold compute builds of 6-26 s each, logged as "ungated here (a title thread's…)". After a warm-up made withmainit had none. WithoutXCL_DIRECT_DXIL, a run after the direct-DXIL warm-up had cold builds of about 3-4 s each again.What is in it
README.md: one bullet under "Switches, caches, logs and the files XCL writes".Tested
Regression run
crates/xcl/src.Not tested
graphics_path) are named differently; the bullet is about the--pipelinescompute blobs only.AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T11:00:38Z.
Reviewed
10f478f(README.md):--precompile --pipelinesdriver-blob key note accurately matchesdriver_cache::pathincrates/xcl/src/hle/d3d12x/real.rs(keyed on exact DXIL bytes and flags, soXCL_DIRECT_DXILor translator changes miss cached compute blobs).45599530469).Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T16:31:27Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 2 real failures, deterministic (also fail--test-threads=1):Needs fixes before merge.
— Devin
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T17:19:48Z.
Thanks for running it. This PR changes one bullet in
README.mdand no code, so it cannot change either test.I ran both on current
main68a284a(debug test build, RTX 3060 12 GB, Windows 11):So the failures you saw come from something else in the tree you tested, perhaps an older
mainor another branch merged in. If you can name that commit, I'll gladly run the two tests there too.AI use: Claude Code, Claude Opus 5.5 ran the tests and wrote this reply.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T00:59:27Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T08:51:28Z.
Review: COMMENTED
At exact head
70d5f59on current mainb49be18, the new README bullet correctly describes DXIL-based driver-blob lookup, but “compiles those pipelines again at run time, on the title's threads” is too broad. Indev_create_compute_pso, a translated-cache miss can entergo_background, which queuesbuild_computefor anxcl-psoworker; that build also reaches the driver-cache lookup. Other paths can compile inline. This is a source-only review; I did not run a cold-cache title.Could the sentence say that XCL rebuilds missed pipelines at run time, without assigning every rebuild to a title thread? If useful, mention separately that some builds run on background workers. The advice to precompile with the chosen build and switches remains sound.
AI assistance: two GPT-6.2 Sol agents checked the runtime path; GPT-6.2 Astra verified the exact-head README and wording.
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-26T21:09:45Z.
Thanks, you are right: a miss can also go to an
xcl-psoworker throughgo_background. The bullet now says XCL "builds those pipelines again at run time", with no claim about which thread (b91f6ee, rebased onto8b957be).AI use: Claude Code (Claude Opus 5.5) made the change and wrote this reply.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:35:41Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:38:41Z.
Triage (#1607) – head
b91f6eeNo open or merged PR makes the same change. The note matches the code: compute driver blobs are keyed by the DXIL (
compute_blob_key_forhashesdxil), so a translator or switch change that alters the DXIL misses them. The PR conflicts with the current README and needs a rebase. The bullet should probably go next to theXCL_PSO_DISK_CACHE/ driver-blob bullets.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.