Repository navigation
Conversation
|
Independent check of The fixture verified five disk hits in a fresh process, recovery when either pass’s blobs were rejected, and the expected pixel readbacks for both translated mesh and geometry. This covers the published stack with synthetic input. Integration with current main, the title’s ExecuteIndirect path, and retail performance remain untested here. AI-assisted. Codex (GPT-6 family, exact variant unavailable) ran the tests and drafted this report. |
|
Code review on
What is needed before merge:
|
gefydev
left a comment
There was a problem hiding this comment.
Review of 024b2e2 (read against main bf9eebd; I did not build or run it).
This now overlaps #1836, which was merged. #1836 merged on 2026-11-25 00:04 UTC, after this PR was opened. That is why real.rs conflicts. On main, finish_two_pass already caches the compute pass blob in memory and on disk (compute_blob_key(&tp.cs, rs, 0), driver_cache::path(&tp.cs, 0)). #1836 also added GRAPHICS_BLOBS (256 MiB), graphics_path, graphics_blob_key (field-by-field state hashing, which avoids the padding problem) and read_pso_cached_blob. After a rebase, the compute half of this PR would be a second cache under a different key for the same blob. What is new is the mesh pass cache, which should go through GRAPHICS_BLOBS and graphics_blob_key rather than a separate hasher (two_pass_identity.rs in #1941), a second pso_cached_blob, and COMPUTE_BLOBS. #902 also keeps slow graphics pipeline blobs on disk.
No measured gain at this head. The fresh-process ranges overlap: 2.10–2.45 s with persistence off and 2.21–2.28 s with it on. The 34× figure is historical and includes warm DXIL and NVIDIA driver caches. A run on AMD, or on NVIDIA with the driver's shader cache cleared, would show whether this cache helps.
Code points:
- Shared RAM budget. Mesh blobs share the 512 MiB
COMPUTE_BLOBSbudget with ordinary compute blobs, and that cache has no eviction. Withkeep_ram = bytes >= COMPUTE_BLOB_MIN_DXIL || took >= min, nearly every MS+PS pair qualifies, so mesh blobs can crowd out the compute blobs the cache was made for. - Misleading
recordin the compile log.driver_compile_identifiedgets the two-pass identity hash asrecord. That field is documented as the console record's hash that matches[SHADER]lines, so the logged "record" will not match anything. - Removed diagnostic. The "two-pass … PSO gated: …, waited N ms" log is gone. The compile log now prints "huge, ungated here" for these builds and drops the slot wait time.
XCL_PSO_DISK_CACHE_MIN_MScovers only the two-pass path. Ordinary computekeep()still usesKEEP. The variable is not documented in the README.- Weakened assertion in an existing test.
compute_blob_testschanges the exactbefore - 3assertion to thetotal == suminvariant. This makes sense with the new concurrent test, but please say why in the description, or keep the exact check by giving that test its own key. - Duplicated test helpers and stale expectations. The e2e re-implements the synthetic container helpers (
fssm,xbch,dxil_part,mesh_psv) that already exist inshaders_e2e.rs,gpu/xbox.rsandgpu/recomp/mod.rs. Itstp-cs-*file and counter expectations change once the compute half is rebased onto #1836. - AI use. "Google Antigravity; its model is unrecorded" does not meet CONTRIBUTING's requirement to name the exact model.
What is good: build_two_pass_pso takes at most one cold slot per pair and none for blob attempts. Eviction with Arc::ptr_eq handles another thread's replacement correctly. Owning the partial ID3D12PipelineState on failure is cleaner than the manual Release it replaces. The cross-process replay and corrupt-blob e2e is a strong test.
Suggested path: rebase onto main, drop the compute pass half (or explain why two keys for one blob are wanted), cache the mesh pass through GRAPHICS_BLOBS and graphics_blob_key, and add a measurement where the driver's own cache is cold.
Review written with Claude Code (Claude Opus 5.5); I checked each point against the code.
PR #1942 GPU verificationD3D12.X: persist both PSOs for translated mesh and geometry
Tested
Failures Twenty library tests failed at
Four other library tests under
The Not tested
AI use
All 25 GPU SKIPPED entries |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
…etry The mesh pass of a two-pass (MS / GS) pipeline had no driver blob on disk: every run compiled it in the driver again. xcl-dev#1942 keeps both passes under keys of the stream's contents (pointers replaced by what they point to), the static samplers, the window count and the adapter and driver. Conflicts with the graphics blob cache resolved: the graphics cache and remember_compute_blob stay as they were; the two-pass passes use xcl-dev#1942's build_two_pass_pso (its compute pass key replaces the DXIL-only name, so compute-pass files of earlier runs are compiled once more); its blob reader is the existing read_pso_cached_blob; the gate keeps the commit headroom of the program's size. driver_compile is left to the tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s driver blobs named after adapter, driver and windows)
Keep NGG compute and passthrough mesh graphics driver blobs under independent canonical keys. Retry rejected entries under the existing cold-compile policy and validate fresh-process replay, per-pass corruption, and GPU output on synthetic inputs. Part of xcl-dev#1269. Related to xcl-dev#1836 and xcl-dev#902. Assisted-by: OpenAI Codex (GPT-6)
024b2e2 to
bdef448
Compare
|
@gefydev @raylitebull The rebase is at The original 250 ms retention policy remains in production. The small synthetic fixture seeds its entries through a test-only hook. The exact compute-blob accounting assertion remains intact. The parser, shader CLI, and GPU fixtures share the container builders, and the mesh fixture and recompiler test share the mesh PSV builder. At this exact head on RTX 4060 Laptop (616.56), Independent AMD fixture and paired retail smoke remain pending. The local driver-cache-disable probe skipped because Windows Developer Mode is off, so there is no driver-cold speedup claim. Current work used OpenAI Codex ( |
|
Tested on \7ca016442286780915653fc871acb86fb2a85754\ (\7ca01644, clean PR head on \origin/main\ \�49be183):
Not tested
AI use
|
Keep successfully created PSOs usable when driver blob export fails or returns empty data. Validate the rendering and actual cache effects of the cold fixture before skipping the optional replay stage. Assisted-by: OpenAI Codex (gpt-6.2-sol)
|
@Lum7nt I fast-forwarded the branch to On this head, all four focused mesh-stream unit tests passed, including mocks for The full debug workspace suite on RTX 4060 Laptop reported 1438 passed, 0 failed, and 47 ignored. Clean exact-head retail smoke is in progress. |
Prime1997
left a comment
There was a problem hiding this comment.
Read-through and GPU run of f9c9df3. An AI tool (Claude Code) helped with the reading and ran the tests; each point below was checked against the code at this head.
Test results (RTX 3060 Ti 8 GB, NVIDIA 617.14 / 32.0.16.1714, i5-10400, Windows 11 26200.9974, rustc 1.100.0, DXC 1.9.2609.5, debug, isolated cache and data roots):
gpu_two_pass_cache_e2e: 1 passed, 0 failed. The full disk replay half ran here, because this driver does export cached blobs. That complements the earlier RTX 3060 report on 581.42 where the driver did not.shaders_e2e: 8 passed, 0 failed.- The two new unit tests pass.
Points for the author
keep_compute_blobchecks for the key and then inserts in a separate step (the same check-then-insert shape is already on main; this PR only adds a condition to it). Two threads building the same pipeline can both pass the check, and the byte total is then counted twice for one stored blob. The cap gets hit early rather than anything breaking, but taking the entry once (or subtracting the replaced size) would keep the total honest.pub fn force_driver_cache_fixture_retention()is a process-wide switch in non-test code. It is#[doc(hidden)], and#[cfg(test)]is not available because the caller is an integration test, but a cargo feature that only the e2e enables, or an environment check, would stop anything else from flipping it.- The on-disk names here are
gfx-<hash>-<bytes>.pso, while the nvidia-dev line (which already carries the earlier head 024b2e2 through e6657c0) writestp-ms-/tp-cs-. After this lands, people coming from that line will have two sets of files for the same pipelines. Worth a sentence in the description, or a one-time cleanup. - Nothing bounds the disk directory. Not new with this PR, but the new entries make it grow faster, so a note or a follow-up issue would help.
None of these block the change as far as I can tell. Point 1 predates this PR and could be a follow-up.
Generated by Claude Code
Persist the passthrough mesh graphics driver blob for translated console MS and VS+GS pipelines. Current main already persists their compute blobs. Part of #1269.
What is in it
Tested
f9c9df37703babb4f6bb9b51841e18c813751c2con RTX 4060 Laptop (616.56), Ryzen 7 8845HS, Windows 11 build 26200.9974, Rust 1.98.1 MSVC and DXC 1.8.2502.11.cargo test --offline --locked -p xcl --lib mesh_stream_tests -- --nocapture --test-threads=1passed 4 with no skips. The two new mocks coverE_UNEXPECTEDand an empty successful export.cargo test --offline --locked -p xcl --test gpu_two_pass_cache_e2e -- --nocapture --test-threads=1passed 1 with no skips, including five fresh-process hits, corrupt-blob recovery for each pass, and both pixel readbacks.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputpassed 1,438 with 0 failures and 47 ignores. There were 26 explicit skip markers (21 no native wave64, 3 refused wave32 per-lane operations, 1 no heap windows, and 1 Windows Developer Mode unavailable).7ca01644passed the local Radeon 780M cache fixture and paired retail smoke. Lum7nt reported the older RTX 3060 driver's export refusal at that head. The five baseline failures on that setup are recorded in the report.Regression run
Clean release builds on the same RTX 4060 Laptop GPU and retail workload. XCL used a separate title state and DXIL cache for each run.
Main
PR head
Not tested
AI use
OpenAI Codex (
gpt-6.2-sol) rebased, implemented the fallback coverage, tested the patch, and prepared the report. The original implementation also used Google Antigravity. Its exact model was unrecorded.