Repository navigation
Conversation
|
Update for head Update for head 64-lane AMD run (listed as untested) on an RX 9070 XT, plus an RTX 3060: both new end-to-end tests pass on both cards, with no skips. Head
Not tested: the D3D12 debug-layer tests (no |
|
Tested — AMD Radeon RX 6800M
The child tests assert warm Not tested: full workspace suite on this head, release profile, a retail shader archive or paired title smoke, other GPUs, and whether the changed path improves title behavior. Timings are single samples, not a performance comparison. AI use: OpenAI Codex (GPT-6; exact serving variant unavailable) and a Luna subagent selected the focused test, ran it, checked the exact-head log and adapter-selection code, and drafted this report. |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
luckyteagirl
left a comment
There was a problem hiding this comment.
The new VS/PS path increments compiled after every successful console_to_dxil_in, including a hit from its in-memory or translated disk cache. That function returns only Compiled, so a second --precompile run can report compiled 2, already cached 0 for graphics variants even when both came from the cache. The HLSL loop below distinguishes hits. Could the graphics path expose/count the cache outcome (or use a separate warmed counter) and add a warm second-run assertion for the summary? Source review at a3312c055cf3a31f77bcb7b1e278b7479d29dc41; I did not run the precompile command. AI-assisted review with Codex.
|
Updated RX 9070 / Wine verification for head Tested RX 9070 (RADV GFX1201), Mesa Built each source copy with
All counts have 0 ignored. The unit failure on all three sources was Both graphics fresh-process cases passed their cold The additional preparation check used one supported VS and one
An initial local probe incorrectly expected the HLSL main control to miss. I corrected that local expectation after checking the DXC and translated-cache paths, retained its logs, rebuilt the affected test binaries, and repeated the complete 24-invocation comparison above. Source, executable and cache hashes and raw counts were checked separately. Environment: Not tested Full workspace suite, guest entry or hosted AI use OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the changes, prepared the local fixture, built and ran the comparisons, independently checked source bytes, raw logs and cache snapshots, and wrote this update. Publication authorized by the account owner. |
a3312c0 to
2d229b9
Compare
|
Thanks @luckyteagirl and @SzczepanGrela — pushed
|
Retail title, RTX 5090: the large graphics pipelines now start their driver compile within milliseconds instead of seconds. One 600 s run per side. Our control's precompile was compute-only (see Not tested). Setup: RTX 5090 32 GB (driver 621.24), Ryzen 7 9800X3D, Windows 11, release,
Large graphics pipelines (≥ 200 KB DXIL) in the world-start stall (no frames shown). Gap = time from the previous driver compile finishing to this one starting, from the
The rest of the stall is the NVIDIA driver's own compile, which this PR does not change. Run-wide graphics compiles with no driver blob: 1,328 taking 106.7 s on the control, 1,447 taking 131.1 s here. Run totals: both reached 600 s with no removal or crash. Frames shown: 2,163 (control) vs 2,117. Two-second windows with no frame after 120 s: 206 vs 215 of 240. These totals are not a fair A/B, for two reasons:
Not tested
AI use: Claude Code (Claude Opus 5.5) built and ran both sides. Gemini (Antigravity) extracted the trace numbers. Claude Code recomputed the gap table from the raw logs and wrote this. |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
Ran the shaders end-to-end tests at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. Both new fresh-process tests pass here. The timings printed on this adapter were What this adds: the hardware reports in the thread are on an RTX 4060 (Ada) and WARP, at the earlier head Not tested: a full retail shader archive, a paired 60 s smoke run, the whole workspace suite, AMD and Intel GPUs, native wave64, Wine, release profile, title data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
Route standalone VS and PS variants through the exact runtime console_to_dxil_in path so precompile warms translated/v2 serialization and the selected HLSL/direct-DXIL backend instead of only manually warming HLSL output. Selection matches the runtime's first hardware VS/PS FSSM and exact stage, split, windows, and base-zero keys. Paired PS variants with nonzero VS sampler bases remain cold because the shader archive has no pipeline pairing data. GNU Windows-target cargo check passed. Fresh-cache Windows probes, GPU execution, and retail smoke were not available on this host. Adapted from PR xcl-dev#2613. Assisted-by: Codex (GPT-5.6-sol)
|
Correction to 7186156070, with the cleaner control I offered there.
So the large drop in my earlier comment comes mostly from precompiling graphics at all, which The full-precompile AI use: Claude Code (Claude Opus 5.5) ran the control, recomputed the gaps from the trace lines and wrote this. |
Route standalone VS and PS variants through the exact runtime console_to_dxil_in path so precompile warms translated/v2 serialization and the selected HLSL/direct-DXIL backend instead of only manually warming HLSL output. Selection matches the runtime's first hardware VS/PS FSSM and exact stage, split, windows, and base-zero keys. Paired PS variants with nonzero VS sampler bases remain cold because the shader archive has no pipeline pairing data. GNU Windows-target cargo check passed. Fresh-cache Windows probes, GPU execution, and retail smoke were not available on this host. Adapted from PR xcl-dev#2613. Assisted-by: Codex (GPT-5.6-sol)
|
Hosted Five launches compared clean
Could the hosted path preserve the old skip behavior for incomplete translations? Routing that case through the existing per-program handling would keep the successful cache warmup and let launch proceed past an unused unsupported shader. |
|
I tested a follow-up for the hosted startup failure reported above. When the runtime path refuses a graphics shader during The review branch retains current main The automatic integration had a stale |
Route console VS (hw == 4) and PS (hw == 5) FSSM variants in `xcl shaders --precompile` through `recomp::pso::console_to_dxil_in_outcome` instead of only the manual HLSL translate + compile_cached loop: - Warms the `translated/v2` cache used at runtime for both direct graphics (`XCL_DIRECT_DXIL=all`) and HLSL graphics (`XCL_DIRECT_DXIL=0`), warming at most one runtime VS and one runtime PS variant per container while keeping ES/GS skipped counting and Mode::Mesh handling unchanged. - Adds `recomp::pso::console_to_dxil_in_status` returning `(Compiled, bool)` and typed `recomp::pso::CompileOutcome` / `console_to_dxil_in_outcome` (sharing `INCOMPLETE_TRANSLATION_PREFIX` across both cold translations and `.err`-cached lookups) so `--precompile` increments `already cached` on in-memory or `translated/v2` disk cache hits and `compiled` only when translation or compilation actually runs. On `CompileOutcome::Incomplete`, falls through to the existing per-program `recomp::translate` loop (keeping `Mode::Vertex` / `Mode::Pixel` arms intact) so both standalone `--precompile` and hosted `prepare_for_launch` (xcl-dev#2555) preserve exact skip semantics without failing startup on unsupported shaders. - Reports explicit standalone PS `sampler_base=0` coverage alongside counts of PS and VS records carrying static samplers (which shift paired PS bases at pipeline creation). - Updates `crates/xcl/tests/shaders_e2e.rs` for `xcl-dev#1942`'s shared `container` helper and adds fresh-process end-to-end tests covering direct VS/PS warming, HLSL static-sampler `sampler_base=0` hit vs `sampler_base=1` miss, and incomplete VS (`v_cvt_off_f32_i4`) skip + supported VS warming across cold and warm `.err`-cached runs. Part of xcl-dev#2600 Part of xcl-dev#2508 Part of xcl-dev#1833 Assisted-by: Google Antigravity (Gemini 4 Neon)
2d229b9 to
d68c74e
Compare
|
Thanks for catching that
|
Route standalone VS and PS variants through the exact runtime console_to_dxil_in path so precompile warms translated/v2 serialization and the selected HLSL/direct-DXIL backend instead of only manually warming HLSL output. Selection matches the runtime's first hardware VS/PS FSSM and exact stage, split, windows, and base-zero keys. Paired PS variants with nonzero VS sampler bases remain cold because the shader archive has no pipeline pairing data. GNU Windows-target cargo check passed. Fresh-cache Windows probes, GPU execution, and retail smoke were not available on this host. Adapted from PR xcl-dev#2613. Assisted-by: Codex (GPT-5.6-sol)
Routes console vertex (
hw == 4) and pixel (hw == 5) FSSM variants inxcl shaders --precompilethroughrecomp::pso::console_to_dxil_in_outcome, warming the exacttranslated/v2runtime cache variants (includingXCL_DIRECT_DXIL=alldirect graphics variants), distinguishing cache hits from fresh compiles, preserving exact incomplete-translation skip semantics for both standalone--precompileand hostedprepare_for_launch(#2555), and explicitly reporting standalone PSsampler_base=0coverage alongside static-sampler shift counts. Part of #2600, Part of #2508, Part of #1833.What is in it
crates/xcl/src/gpu/recomp/pso.rs:console_to_dxil_in_status(blob, stage, sampler_base, split_wave64, windows) -> Result<(Compiled, bool), String>(withconsole_to_dxil_indelegating to it) returning whether the result came from the in-memory ortranslated/v2disk cache (true) vs fresh translation/compilation (false).INCOMPLETE_TRANSLATION_PREFIX(used acrossconsole_translation,finish_two_pass, andcompile_console_mesh), typedCompileOutcome::{Compiled, Incomplete, Failed}, andconsole_to_dxil_in_outcome(...)so both cold translations and.err-cached lookups distinguish incomplete translations (!Translation::complete()) from hard parse/interface/DXC failures.crates/xcl/src/shaders.rs(precompile):Stage::Vertex(hw == 4) and one runtimeStage::Pixel(hw == 5) FSSM variant per container viarecomp::pso::console_to_dxil_in_outcome(&blob, stage, 0, graphics_split, windows)(and usesconsole_to_dxil_in_statusfor compute), incrementingcachedon cache hits andcompiledonly on fresh compiles.CompileOutcome::Incomplete(_), falls through to the existing per-programrecomp::translateloop (keepingMode::Vertex/Mode::Pixelarms andgraphics_splitselection intact) so both standalone--precompileand hostedprepare_for_launch(when merged with xcl run: prepare shaders in the game window before title execution #25558b957bec) preserve exact skip behavior (0errors,1skip on startup) without aborting launch on unsupported shaders (addressing@CryingLaughing's report).ps_base0,ps_static_samplers, andvs_static_samplersfromCompiled.samplersand prints an explicit runtime-path coverage summary line when standalone PS or static-sampler VS records are warmed.crates/xcl/tests/shaders_e2e.rs:xbox_shader_with_osgfor#1942's sharedcontainerhelper.precompile_warms_direct_vs_ps_and_hits_in_fresh_process(XCL_DIRECT_DXIL=all) andprecompile_warms_hlsl_static_samplers_and_reports_base_shift(XCL_DIRECT_DXIL=0) and addsprecompile_skips_incomplete_vs_while_warming_supported_vsverifying cold + warm.err-cached--precompileskips an unsupportedv_cvt_off_f32_i4VS (0errors) while warming a supported VS (compiled 1 -> 0,already cached 0 -> 1) and confirmingCompileOutcome::Incomplete+ zero-DXC cache hit in a fresh process.Tested
rustc 1.100.0, DXC1.9.2609.5, debug + release.cargo clippy --all-targets -- -A clippy::approx_constant:0new warnings or errors across all 3 modified files (pso.rs,shaders.rs,shaders_e2e.rs).XCL_ADAPTER=warp,XCL_WARP=1):cargo test -p xcl --lib -- shaders:: --test-threads=4 --nocapture:10 passed, 0 failed, 0 ignoredcargo test -p xcl --test shaders_e2e -- --test-threads=1 --nocapture:11 passed, 0 failed, 0 ignoredcargo test -p xcl --lib -- gpu::recomp::pso:: --test-threads=4 --nocapture:27 passed, 0 failed, 1 ignoredcargo test --release -p xcl --lib -- shaders:: --test-threads=4 --nocapture:10 passed, 0 failed, 0 ignoredcargo test --release -p xcl --test shaders_e2e -- --test-threads=1 --nocapture:11 passed, 0 failed, 0 ignored(fresh_child_timing: mode=direct warm_translate_dxc_ms=3.501 native_pso_ms=1.228;mode=hlsl warm_translate_dxc_ms=3.064 native_pso_ms=0.815)cargo test --release -p xcl --lib -- gpu::recomp::pso:: --test-threads=4 --nocapture:27 passed, 0 failed, 1 ignoredcargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture:1445 passed, 0 failed, 47 ignoredacross38top-level workspace targets (SKIPPED GPU/host tests: wave64-only GPU tests on 32-lane RTX 4060, 3 per-lane wave32 refused subcases, 3 debug-layer tests withoutd3d12SDKLayers.dll,heap_window_out_of_memory_falls_back_to_the_switch_formwithoutXCL_HEAP_WINDOWS=1, andpso_measurement_compiles_an_exact_synthetic_recordwithout Windows Developer Mode; 0 skipped inshaders_e2e).origin/main(8b957bec, including#2555startup preparation):git merge-tree --write-tree origin/main HEADexits0; in a temporary detached merge8b957bec + d68c74e5, a syntheticprepare_for_launchtest (supported VS + unsupportedv_cvt_off_f32_i4VS underXCL_DIRECT_DXIL=all,XCL_UMA_WINDOWS=4, WARP adapter) passed both cold (compiled 1, already cached 0, errors 0, skipped (runtime pairing or unsupported translation) 1) and warm.err-cached (compiled 0, already cached 1, errors 0, skipped (runtime pairing or unsupported translation) 1) runs returningOk(()).Regression run
main (
e120925e3abc9956a8b9bae631969d32e8ccd43c, exact parent and ancestor oforigin/main8b957bec):PR:
Not tested
d3d12SDKLayers.dllnot installed on host),XCL_HEAP_WINDOWS=1, andpso_measurement_compiles_an_exact_synthetic_record(Windows Developer Mode disabled).--precompile/#2555prepare_for_launchrun (covered via isolated synthetic console VS/PS containers inshaders_e2eand the temporary8b957bec + d68c74e5prepare_for_launchcheck).#[ignore]tests.AI use
console_to_dxil_in_status,CompileOutcome/console_to_dxil_in_outcome, theprecompileruntime graphics warming, incomplete-translation fallthrough, cache-hit accounting, and coverage reporting, plus the fresh-process direct, HLSL static-sampler, and incomplete-VS tests, ran all clippy, WARP, RTX 4060, workspace,8b957becmergeprepare_for_launch, and paired 60 s smoke verifications, and drafted this PR description.