Repository navigation
Conversation
…tion prep_graphics: what translated_graphics_pso did between its checks and the driver call (the translated shaders, XCL's ABI root signature with their static samplers, the rect list GS, PC formats and topology), returned with the DXIL it points at. No change in behaviour; a later change makes the same desc outside the title (xcl pipelines). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lines.bin) Every pipeline with console shaders that goes to pso_async (its DXIL not in the cache yet, or made lazily: a retail title queues ~58 000 in its first minute) is appended to a journal: its desc field by field (no pointers, no padding: the same pipeline always hashes the same), its input layout and its shaders by hash, each shader once, with the run's memory windows. A pipeline's first build is marked as used. Entries of earlier runs are not written again (found from the frames' headers, the shaders stay on disk); a torn last frame is cut off. One title process writes it at a time (others get none). The reader (replay) gives the desc back with everything it points to owned and no pointer from the file. Another process can compile the title's pipelines from it; XCL_PSO_JOURNAL=0 turns it off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…al for the run A frame is now noted as written only once all of it is on disk; a failed write (a full disk) is cut back to where it started, so later frames stay readable, and the journal is off for the rest of the run. An input layout count read from the file is checked against the bytes there before anything is allocated for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A successful background build can be speculative. Conversely, a title that exits while waiting for a requested pipeline leaves no use record for the next run. Record the exact descriptor before resolving its stand-in, preserving shader-set tracking and the existing journal format. Assisted-by: Codex (GPT-6)
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
|
Tested #758 + #898 on a retail title (1.0.2.1, RX 7800 XT 16 GB, Ryzen 7 5700X3D, 32 GB, Windows 11, xcl
The wall on this title: loading needs ~10 pipelines at once, one big translated program takes 16–50 s of driver time on this card ( What does get the world drawing here: |
Stacked on #758. Only the top commit
dc4300da36dabelongs to this PR.The journal's
Urecord determines which queued pipeline an offline compiler should prepare first. #758 emits it when a build succeeds. That gives speculative preloads priority and loses a requested pipeline when the title exits during its build.What is in it
real::go_backgroundtopso_async::Pendingand record demand once, before the first bind starts or waits for a build. The on-disk format stays compatible. Existing journals retain the meaning of marks their older writers already emitted.Tested
cargo test -p xcl --lib bind_journal_tests -- --nocapturewith the new cases on the old writer: 0 passed, 4 failed. On this patch: 4 passed, 0 failed, 0 ignored. Cases exercise failed builds, in-flight builds, eager work and historical speculative preloads.cargo build --workspaceandcargo test --workspace --no-fail-fast -- --test-threads=4: D3D12.X: a journal of the pipelines a title queues (<data>\cache\pipelines.bin) #758 parentb617c88: Cargo reported 702 passed, 0 failed, 41 ignored. Of the reported passes, 2 skipped GPU execution. PR head: Cargo reported 706 passed, 0 failed, 41 ignored. Of the reported passes, 2 skipped GPU execution. The same two tests,gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware, require wave64.xcl run, matched saved profile, 51 previously used shader sets and a fresh pipeline journal per run. On the parent, 43/47 newly bound, single-descriptor compute shader sets carried a use marker. The first parent run stopped in the display driver before the title screen and is excluded from this comparison. On the patched writer, 46/46 newly bound compute sets were marked. Each of the 6 newly bound graphics shader sets had a marked descriptor (6 of 208 recorded variants). Its last sampled image was loading artwork and the title still exited at+0x23cf683.cargo build --release --locked -p xclandscripts/smoke.ps1 -Game <read-only retail executable> -Seconds 60on both clean commits.Regression run
Main:
PR head:
Not tested
AI use