Repository navigation
Conversation
Expose pso::console_mesh_in with explicit memory window count and route Mode::Mesh containers through it in shaders::precompile so translated/v2 caching and XCL_DIRECT_DXIL apply during precompilation just as at runtime. Also route standalone Vertex and Pixel stages through pso::console_to_dxil_in when XCL_DIRECT_DXIL=all is enabled. Includes unit test console_mesh_in_forwards_windows_and_populates_cache. Verified on Windows 11 / RTX 5080 (--limit 500 with XCL_DIRECT_DXIL=all): 22.9 s -> 1.1 s internal (23.28 s -> 2.01 s wall), 15.68 MB -> 12.31 MB, 0 errors; full cold 26,503-record pack precompiled in 311.8 s internal (322.2 s wall), 0 errors.
…eparation Keep capped compute pipelines deferred to runtime when XCL_PIPELINE_MAX_KB is set during startup preparation instead of failing precompilation after translation finishes cleanly (0 failures, 0 refused pipelines).
|
On I ran six fresh
Every exit-0 guest reported zero fixture failures. The failing launch reported PR #2613 addressed this distinction for graphics warmup by retaining the old per-program fallback for incomplete translations. Its treatment of This test covers launch admission for a synthetic pixel shader. Retail shader incidence, performance and world loading were not measured. AI use: OpenAI Codex with GPT-6.2 Astra adapted the synthetic shader, built both revisions and ran the paired launches; Codex coordinated and prepared this report. |
|
I checked the reservation boundary in In an isolated Windows Rust harness, I used the exact admission code and replaced only the memory query with a synchronized test source. It released eight workers from their first query with 3 GiB reserve plus 128 MiB available. Each job requested the 128 MiB estimate. With no priority bypass and no timeout reached, 8/8 workers entered while the first permits were still held, reserving 1,024 MiB against the 128 MiB budget, in 5/5 trials. Main A local control sampled memory first, then serialized the headroom check and permit acquisition under one mutex. 1/8 entered before release, 128 MiB reserved, in 5/5 trials. All eight finished and the counters returned to zero in both variants. This is a deterministic admission-policy test with injected headroom. It does not measure actual commit use, a compiler OOM, or retail performance. OpenAI Codex assisted with verification. |
|
I tested a local fix on #2950 head On native Windows with an RTX 5070 and the repository’s synthetic guest, the unused pixel shader containing A new regression test builds a single synthetic container with two pixel shader variants, placing the incomplete variant first and a supported one second. Stock #2950 compiled zero variants and reported two errors. The local fix compiled the supported variant and reported zero errors. All nine tests in These results cover graphics precompilation with synthetic inputs. The patch has not been submitted or tested on a retail title. AI use: OpenAI Codex with GPT-6.2 Astra adapted and independently reviewed the fallback and fixtures and ran the tests; Codex coordinated and prepared this report. |
PR #2950 changes startup handling of an incomplete mesh translationA synthetic guest reached its entry point on parent The input was a loose 128-thread mesh shader with its PSV0 metadata intact. The unsupported variant changed one instruction to
With explicit settings, the parent counted one unsupported translation as skipped. The head counted one error and zero skips, with the missing opcode in its diagnostic. The mesh branch calls The test covers startup classification and guest entry. It contains no retail game data and measures no game performance. AI use: OpenAI Codex with GPT-6.2 Astra generated and ran the fixtures; Codex coordinated and prepared this follow-up. |
|
Follow-up to the incomplete-mesh report: a local candidate treats only the explicit incomplete-translation result as a request to continue through the existing per-program path. Other mesh translation failures remain errors. It also keeps mesh variants out of the direct VS/PS-only filter during that fallback. The synthetic two-variant mesh container has an incomplete first program and a supported second program. With direct DXIL both The repository shader integration suite passed 10/10, including the graphics and mixed-mesh regressions. The local combined patch was independently checked against the pristine head. This is synthetic startup evidence; GTA VI behavior and performance were not measured. AI use: OpenAI Codex with GPT-6.2 Astra implemented, tested and independently reviewed the candidate; Codex coordinated and prepared this follow-up. |
Speeds up cold shader precompilation and prevents host OOM / stalled launches by adapting DXC/pipeline concurrency to available host resources, routing
Mode::Meshand direct graphics (Vertex/Pixel) stages throughpsoduringprecompile(), and allowingXCL_PIPELINE_MAX_KB-capped compute pipelines to defer cleanly to runtime.What is in it
crates/xcl/src/gpu/recomp/dxc.rs(0093a63):estimate_compile_mb) and dynamically scale active compile budget/permits against available host commit/RAM with a 3.0 GB floor (wait_for_memory_for).crates/xcl/src/shaders.rs(0093a63,2879c5b,0b3729b):default_pipeline_threads(4..=12) from CPU thread count and host RAM.Mode::Mesh(NGG) containers throughpso::console_mesh_insotranslated/v2caching andXCL_DIRECT_DXILmatch runtime pipeline creation instead of unconditionally falling back to HLSL + DXC (~35%of shader packs).XCL_DIRECT_DXIL=allis active, route standaloneVertexandPixelstages throughpso::console_to_dxil_in.XCL_PIPELINE_MAX_KB-capped compute pipelines to stay deferred to runtime during startup preparation instead of failingprepare_for_launchwith an error after translation finishes cleanly (0failures,0refused pipelines).crates/xcl/src/gpu/recomp/pso.rs(2879c5b):pub fn console_mesh_in(blob, ps, split_wave64, windows)and add unit testconsole_mesh_in_forwards_windows_and_populates_cache.Tested
32.0.16.2124), AMD Ryzen 7 5700X (8C/16T),rustc 1.91.1 (ed61e7d7e 2025-11-07), DXC/DXIL1.8.2502.11, release build--locked.cargo test -p xcl --lib dxc -- --test-threads=4(on0093a63):45 passed, 0 failed, 3 ignored(dump_dxc_lowering,blob_dxc_cost,dxc_time_levels)cargo test -p xcl --lib pso -- --test-threads=4(on2879c5b):53 passed, 0 failed, 1 ignored(repeated_pso_shader_compile)cargo test -p xcl --lib shaders -- --test-threads=4(on0b3729b):17 passed, 0 failed, 0 ignoredcargo test -p xcl --test shaders_e2e -- --test-threads=4(on0b3729b):8 passed, 0 failed, 0 ignored--precompilebenchmarks on an anonymized 26,503-record RPF9 corpus (NVMe SSD):--precompile --limit 300(HLSL default):18.33 s(main) ->14.196 s(0093a63, avg9.39/16cores,0errors)--precompile --limit 500(XCL_DIRECT_DXIL=all):23.278 swall /22.9 sinternal (0093a63,548.dxil,15.68 MB,0errors) ->2.014 swall /1.1 sinternal (2879c5b,48.dxil+500translated/v2,12.31 MB-21.5%, ~20.8x internal speedup,0errors)--precompile(XCL_DIRECT_DXIL=all, empty cache):311.8 sinternal /322.215 swall (5m 12s),26,308compiled (25,694translated/v2+677passthrough.dxil,3,723.93 MB),0errors,390paired GS skipped, avg11.32/16cores, peak1.72 GB WS / 1.79 GB PM.--direct --sample 2000 --max-bytes 0 --validate --threads 12):2000/2000 (100.0%)translated & validated in31.0 s(CS 205,GS 35,MS 708,PS 874,VS 178,0unsupported/validator errors/panics/timeouts).Regression run
Draft PR pending clean
scripts/smoke.ps1xcl-smoke v1runs onmainand0b3729b(earlier 60s launch on warmtranslated/v2cache finished shader preparation cleanly and entered the title, then aborted at 47s due to low free space on the host system drive forpagefile.sys).Not tested
cargo test --workspaceon0b3729b, non-NVIDIA GPUs, and a completed 60sscripts/smoke.ps1run.AI use