Repository navigation
Conversation
A compute program of 256 KB of DXIL or more is compiled on the background workers one at a time (BIG_COMPILES), after a check for 3 GiB of free commit. That slot was taken only when no kept driver blob was found, so a program whose blob the driver refused (xcl-dev#634, xcl-dev#636) went on to the full compile without it: after a driver update several of the workers could do so at once. build_reusing builds from the blob first and then admits the compile, if one is needed: a big one on a worker takes the slot, now also after a refusal. The slot is held to the end, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Test run of Tested
Review: Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Independent native Windows NVIDIA RTX 5080 build/test run and code review at head Code Review
Tested
Not tested
AI use: Antigravity (Gemini 4 Neon) performed the code review, ran the RTX 5080 workspace tests, and drafted this comment. |
|
Closing: #1524, merged today, covers this. On AI use: Claude Code (Claude Opus 5.5) compared the code and wrote this. |
A compute program of 256 KB of DXIL or more is compiled on the background workers one at a time (
BIG_COMPILES), after a check for 3 GiB of free commit. Since #636 / #634 that slot is taken only when there is no kept driver blob. When the driver refuses the blob, the program is compiled in full without it. A driver update can refuse many kept blobs in one run, and then several workers can compile at once. Found by reading the merged code; it was not seen in a run.I searched the open PRs: #567 bounds the commit wait, #214 the number of driver compiles, #714 and #744 change the kept files. None of them changes this path. #214 and #744 touch the same function.
What is in it
hle/d3d12x/real.rs:build_reusingbuilds from the blob first and admits the compile if one is needed, now also after a refusal. The refused blob is dropped before the wait. The slot is held to the end of the function, as before; a title thread and a blob the driver takes still skip it.a_refused_blob_is_compiled_under_the_admission_of_a_compile: the order of the steps with and without a blob, refused or not. It fails with main's order put into the helper and passes with the change.A title thread that binds a program whose refused blob a worker is waiting to recompile now waits for that worker's turn, as it already does for a program with no blob.
Tested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 699 passed, 3 failed, 41 ignored on this tree; 702 passed, 0 failed, 41 ignored on the same tree before one comment was reworded.placed_title_textures_share_vram_and_preserve_pixels("cubemap extra_pages must be reused at same va", the one Tests: check cubemap tile reuse independently of idle page reclamation #447 is about) and two tests that then find its lock poisoned. It is on main too:cargo test -p xcl --lib -- --test-threads=4fails there the same way in 4 of 6 runs on64b3f35, and in 5 of 6 with this change.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.Regression run
Second of two runs of each build, no input. An earlier pair of runs of this change was discarded because a button was pressed during it, so it went on to another scene.
main:
this PR:
Not tested
AI use
🤖 Generated with Claude Code