README: saved driver blobs belong to the DXIL a build makes #2234
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2234
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Anon64 on GitHub · 2026-11-25 10:55 UTC · original
Anon64:readme/driver-blobs-per-build→main· +4 −0 · 1 files · 1 commits · openThe 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
@raylitebull on GitHub · 2026-11-25 11:00 UTC · original
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).@DavidM1911 on GitHub · 2026-11-25 16:31 UTC · original
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
@Anon64 on GitHub · 2026-11-25 17:19 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-26 00:59 UTC · original
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
@luckyteagirl on GitHub · 2026-11-26 08:51 UTC · original · reviewed
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.
70d5f59b42tob91f6ee9e6@Anon64 on GitHub · 2026-11-26 21:09 UTC · original
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.
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.