Repository navigation
Conversation
Return the cached Arc<Compiled> to pipeline builders so repeated shader requests reuse the compiled storage. Keep the VS and PS owners alive while the driver consumes their bytecode. Assisted-by: Codex (gpt-6.1-sol)
PR #2085 native Windows compatibility checkTested
cargo test --locked -p xcl --lib -- gpu::recomp::pso::compile_time_bench::repeated_console_shader_requests_share_dxil --exact --nocapture --test-threads=1The run used the unoptimized test profile with Not tested
AI use
|
|
Regression run for this PR: head main this PR: No device removals or crashes; 101 % of main's frames, 100 % of its peak commit. Not tested: the whole suite; world loading; whether these 60 s build pipelines that share DXIL. Written with Claude Code (Claude Opus 5.5) from runs on this machine. |
The translated shader cache owns an
Arc<Compiled>, butconsole_to_dxil_inclones its DXIL and samplers before returning. Repeated pipeline builds therefore allocate and copy bytecode that is already cached. Return the shared owner and keep it alive while the driver consumes the bytecode.What is in it
Arc<Compiled>from the console-to-DXIL entry points.Tested
x86_64-pc-windows-gnullvmbinaries on Linux. Release build succeeded.gpu::recomp::pso::using Proton Experimental Wine, DXC 1.9.2609.5 and vkd3d-proton 3.2.0 with the compatibility patch from Linux: docs/linux.md, scripts/linux and Wine start-up checks for vkd3d-proton and DXVK (#154, #241) #257. 17 passed, 0 failed, 1 ignored. The ignored test is the existing opt-in benchmark.retail_vs_ps_through_the_pso_hook_render_and_read_backunder the same environment with a local shader pack. 1 passed, 0 failed. Checked 435 pixels inside and 3501 outside the triangle. No GPU skips in these focused runs.Regression run
Paired retail smoke runs on main and this head commit remain to be collected.
Not tested
AI use
Codex (gpt-6.1-sol) prepared the code, regression test and description and ran the listed Linux checks.