Repository navigation
Conversation
|
The library blobs are now separate, while both adapters still use Could the adapter selection also choose the prebuilt-list filename, keeping Static review only. AI-assisted with Codex. |
|
Reviewed: correct and minimal — WARP and hardware libraries are mutually incompatible, so a shared file got emptied on every switch. Recording |
|
I ran the production WARP save and reload path in separate processes. The synthetic cache directory starts with a 40-byte marker at host-pipelines.bin.
The test-only commit a855fd7 is directly on your exact head. It checks the library files and reload path. The shared prebuilt index review covers the cross-adapter index separately. AI-assisted (Codex 2). Please retain the Git author on cherry-pick or rebase. If folding the test into another commit, please retain Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com. |
|
@DrDarkDK thanks, right: the list is tagged with its library's bytes, so it needs a file per host too. Done in AI use: Claude Code (Claude Opus 5.5) made the change and drafted this reply. |
|
Independent verification of head
Independent verification by Claude Code (Claude Sonnet 5.5), an AI. No game files, dumps or shader names were used. Each PR head was merged (no conflicts) onto |
|
Tested
Splitting both |
|
I ran the same production-path test with both a library marker and an index marker at the hardware filenames.
Test-only commit f3e5b2c is directly on 39b921e and covers both paths in one fixture. The hardware paths use synthetic marker bytes. WARP uses the real D3D12 library save and reopen. AI-assisted (Codex 2). Please retain the Git author on cherry-pick or rebase. If folding the test into another commit, please retain Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com. |
39b921e to
131993d
Compare
|
Automated triage for the maintainers. Merge candidate. Now merges cleanly with CI: passing. Recommending a look, not approving. Generated by Claude Code |
…visak#2637) `host-pipelines.bin` was one file for every host. A run with VICTORY_D3D12_WARP=1 rejected the hardware library (the blob is for another adapter), started an empty one and saved it over the file; the next hardware run rejected that in turn and made every pipeline during play. The host now records whether it is on the software adapter, and a WARP host reads and writes `host-pipelines-warp.bin`; hardware keeps `host-pipelines.bin`, so existing caches stay valid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`prebuilt-pipelines.txt` is tagged with its library's bytes, so with one file for both hosts a WARP pre-build replaced the hardware list and the next hardware run refused it and prepared those pipelines again, though its library was intact. A WARP host now keeps `prebuilt-pipelines-warp.txt`; hardware keeps `prebuilt-pipelines.txt`. Raised by DrDarkDK in review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
131993d to
b605e29
Compare
|
@Creaa I moved the cross-process test from With app-local Agility 1.620.2 and WARP 1.0.22, three fresh save/reload pairs left the synthetic 40-byte hardware library and 35-byte hardware index byte-for-byte intact. Each save wrote both WARP-specific files, and a new process found the tagged entry in the WARP prebuilt index. All 14 pipeline-library tests and strict all-feature GPU Clippy passed. If you take the test, please retain its Git author on cherry-pick or rebase, or add |
|
@andrewpozdnakov7-jpg thanks, taken as is with you as its author: AI use: Claude Code (Claude Opus 5.5). |
fuzeofficlal
left a comment
There was a problem hiding this comment.
Reviewed and verified head 940d41009e785b7f455ca897289f2f22f0e43cfe (clean merge with origin/main 63bcca43) on Windows 11 x64 with NVIDIA GeForce RTX 5090 and D3D12 WARP (VICTORY_D3D12_WARP=1, VICTORY_D3D12_DEBUG=1, Rust 1.98.1).
Code review
crates/victory-gpu/src/host.rs(L46,L190,L257): recordingHost::softwaredirectly from the existingVICTORY_D3D12_WARPdiagnostics switch is minimal and compiles cleanly both with and without--features diagnostics(and stays inside the Windows-onlyhostmodule). Minor cosmetic nit: stray blank line atL256in theHostinitializer.crates/victory-gpu/src/pipeline/library.rs(L133-158,L168-172,L374-377): bothlibrary()andsave()route throughhost_library_file()(host-pipelines-warp.binvshost-pipelines.bin) andprebuilt_file(host_software())(prebuilt-pipelines-warp.txtvsprebuilt-pipelines.txt), respecting whatever cache directoryuse_pipeline_cacheconfigures while keeping adapter-independentearly-pipelines.txtshared.- Folding in
warp_cache_save_and_reload_preserve_hardware_files(L555) gives genuine cross-process coverage of the WARP save/reload path.
Verification
cargo xtask policy:191 files okcargo clippy --locked -p victory-gpu --all-targets -- -D warnings(default and--all-features): 0 warningspipeline::library::tests:- RTX 5090 (default): 13 passed, 0 failed
- RTX 5090 (
--features diagnostics,VICTORY_D3D12_DEBUG=1): 14 passed, 0 failed - WARP (
VICTORY_D3D12_WARP=1,--features diagnostics,VICTORY_D3D12_DEBUG=1): 14 passed, 0 failed (WARP save: hardware blob 40 -> 40 bytes, hardware index 35 -> 35 bytes)
- Additional 4-process cross-adapter check sharing one temporary cache directory (
VICTORY_D3D12_DEBUG=1): saved a real compute PSO + prebuilt entry on RTX 5090 (host-pipelines.bin2,250 B,prebuilt-pipelines.txt71 B), then saved on WARP (host-pipelines-warp.bin1,846 B,prebuilt-pipelines-warp.txt73 B) and verified both hardware files remained SHA-256 identical; fresh RTX 5090 and fresh WARP processes each reloaded only their own prebuilt key and loaded their cached PSO from disk without recompiling, with 0 D3D12 Debug Layer messages.
Clean fix for #2637; approving.
Dukestar69
left a comment
There was a problem hiding this comment.
LGTM — verified on RTX 5090 (Windows / D3D12) against origin/main (63bcca4).
- Tracking
Host::softwareand isolating the WARP pipeline library file prevents WARP diagnostic runs from clobbering or rejecting the hardware GPU's pipeline cache. cargo test -p victory-gpu --lib pipeline::library:: -- --test-threads=1: 13 passed, 0 failed (includingwarp_and_hardware_hosts_keep_their_own_libraryandeach_host_reads_back_its_own_prebuilt_list).cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
The host pipeline library was one file,
host-pipelines.bin, for every host. A run withVICTORY_D3D12_WARP=1rejected the hardware library, started an empty one and saved it over the file; the next hardware run rejected that one and made every pipeline during play. A WARP host now keeps its library inhost-pipelines-warp.bin; hardware keepshost-pipelines.bin, so existing caches stay valid. Fixes #2637.What is in it
crates/victory-gpu/src/host.rs:Host::software, set when the device is made on the software adapter (the existingVICTORY_D3D12_WARPdiagnostics switch).crates/victory-gpu/src/pipeline/library.rs:library_file(software)/host_library_file(); the library is read from and saved to the file of this run's host. Testwarp_and_hardware_hosts_keep_their_own_library.Same file: the pre-build's list (
prebuilt-pipelines.txt, tagged with its library's bytes) also has a WARP file,prebuilt-pipelines-warp.txt(raised by @DrDarkDK in review). Testeach_host_reads_back_its_own_prebuilt_list: two tagged lists in one folder, each read back for its own library.crates/victory-gpu/src/pipeline/library.rs(test only, by @andrewpozdnakov7-jpg,940d410):warp_cache_save_and_reload_preserve_hardware_files(diagnostics builds) saves and reloads the WARP library in fresh processes over marker bytes at the hardware file names and checks both stay byte for byte; it passes here (hardware blob 40 -> 40 bytes, index 35 -> 35).Tested
main63bcca4(rebased again 2026-11-26 after conflicts with the depth-bounds field inhost.rsand in the tests module; both sides kept).descriptor::host::tests::dynamic_slots_are_held_until_releasedandmemory::tests::lists_share_a_table_and_copies_keep_their_viewsfail on this RTX 4070 on plainmain63bcca4too.cargo test -p victory-gpu --lib library: 13 passed after the rebase, including the two new tests.cargo clippy --workspace --all-targets --locked -- -D warningsandcargo clippy -p victory-gpu --all-targets --locked --features diagnostics -- -D warnings: clean.cargo xtask policy: 184 files ok.cargo test --workspace --locked --no-fail-fast: 507 passed, 3 failed, 6 ignored, and thevictory-shaderbinary ends with 0xC0000005 (Shader tests: heap_direct_texture_reads_mark_their_heap_index kills the test process on a real GPU (RTX 5070, main 67e8ae1) #2571, fixed by Shader tests: an empty root-constant list is set as the one constant it declares (#2571) #2596 / Shaders: bind a zero dword for empty root-constant slices #2587, not on this base). Outside this change:dynamic_slots_are_held_until_releasedandlists_share_a_table_and_copies_keep_their_viewsfail the same way onmainon this NVIDIA card (Test report: RTX 5070 (Blackwell), Windows 11, 70564ae: 471 passed, 5 failed, 7 ignored (4 from the 1,000,000 view heap cap) #1744);dstorage::a_page_list_filled_after_its_request_startsis intermittent onmaintoo (5 of 10 runs fail onmain, 3 of 10 with this change).Not tested
host-pipelines.bin, as before.AI use
🤖 Generated with Claude Code