Repository navigation
Conversation
The direct backend stores translated containers separately from the HLSL DXIL cache. Use its fixture-local DXIL dump to check the driver key and verify a rejected blob is replaced for the next process.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge. — Devin |
|
Tested: current PR head merged onto current The disassembled Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
Compute pipelines prepared offline can already contain a driver blob for the whole shader. This change lets split-eligible runtime requests use that blob and reduces cold build time for a narrow class of repeated compute programs.
What is in it
Tested
Windows, NVIDIA RTX 4090. Measurements below apply to the pre-rebase implementation based on 0829441. On two recorded compute shaders, median cold driver build times fell from 3.51 s to 0.51 s and from 3.33 s to 0.50 s. Both forms matched CPU-expected counters and all 65,536 output IDs at 1,024 groups of 64 active lanes. At small dispatch sizes the compact form took several microseconds longer.
Before rebase,
cargo test --release -p xcl --test gpu_compute_e2e -- --nocapture --test-threads=1withXCL_HEAP_WINDOWS=1ran 5 tests, all passed, zero ignored or skipped. On head 2092425, using an isolated Cargo target directory, cargo test --locked -p xcl --lib -- --nocapture --test-threads=4 reported 1,224 passed, 1 failed, 26 ignored, with 27 runtime skip messages. The failing bridged-mask test counted three group barriers where it expects one. The same isolated test on unmodified base 68a284a also counted three barriers and failed. On fa14dc4 (the later commit restores comment text), five cold trials on the first recorded shader per form on this head gave medians of 4.07 s plain and 0.60 s automatic. On the second shader the five-trial medians were 4.07 s plain and 0.52 s automatic. Both dense replays matched every expected ID and counter. On 2092425, cargo test --locked -p xcl --test gpu_compute_e2e -- --nocapture --test-threads=1 with XCL_HEAP_WINDOWS=1 passed all 5 tests with zero failures, ignores or runtime skips.On head 49aae6c,
cargo test --locked -p xcl --test gpu_compute_e2e -- --nocapture --test-threads=1withXCL_HEAP_WINDOWS=1passed all five tests with zero failures, ignores or runtime skips with each ofXCL_DIRECT_DXIL=0and1. The cache regression now checks the driver key and confirms a fresh process loads the replacement after rejecting a corrupt blob.Full workspace on 49aae6c, after
cargo build --locked --workspace:cargo test --locked --workspace --no-fail-fast -- --nocapture --test-threads=4reported 1,295 passed, 1 failed, 46 ignored and 26 explicit runtime skip messages. The sole failure was the bridged-mask barrier count described above. All four synthetic title integration tests passed.Warm loading on three split-eligible shaders (fa14dc4, five trials per mode, RTX 4090, implicit driver cache disabled, up to four workers). Times are median milliseconds spent creating PSOs on the driver. Shader translation and disk I/O are outside the timer.
An offline whole blob saves 1.25–2.39 s per shader when the pieces would be cold. When all piece blobs exist, loading them in parallel takes less driver wall time. A whole pipeline executes in one dispatch.
Regression run
Paired title smoke runs are pending. This PR is a draft.
Not tested
In-game performance and non-NVIDIA driver performance.
AI use
OpenAI Codex, GPT-6. Implemented the changes, ran offline tests and measurements, and prepared the PR.