diff options
| author | MoonEyes <14891700+MoonEyes@users.noreply.github.com> | 2026-11-26 00:07:37 +0100 |
|---|---|---|
| committer | MoonEyes <14891700+MoonEyes@users.noreply.github.com> | 2026-11-26 00:07:37 +0100 |
| commit | dcdcade3260bbbae9d4458df75e2785cb401f63c (patch) | |
| tree | c9eb2b0af725c494a7d80c56d05c37d589f08b4a /docs | |
| parent | cdbbb39554eb5743bf285aab07862920ec5c938f (diff) | |
runtime: address review of the pipeline order recorder
- open(): when the existing log does not end with a newline (a process killed
mid-line), write one first so the next session line is not glued to the cut
line and its records are not filed under the previous run.
- Fix the hook comments (vulkan_replay.h, d3d12_vulkan_device.cpp, docs,
README): the hook never blocks and allocates nothing, but the readiness
callbacks take a non-blocking try_lock on the first request of a pipeline
and of a variant.
- Close the order log after the exit pipeline cache write, not before.
- Remove the unused Slot::written and Slot::build_written.
- Tests: cut file then new session, flush stops at an unpublished slot,
unknown session version rejected. Trailing whitespace fixed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/d3d12_vulkan.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index 3023e0549..77411ffd8 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -2424,7 +2424,7 @@ Pipeline creation: | |||
| 2424 | with `S 1 <vendor hex> <device hex>`. Each line ends with an FNV-1a checksum: a cut or damaged line is skipped on | 2424 | with `S 1 <vendor hex> <device hex>`. Each line ends with an FNV-1a checksum: a cut or damaged line is skipped on |
| 2425 | read, never fatal. The hook sits in replay's `ComputePipeline::requested` / `GraphicsPipeline::requested`, called | 2425 | read, never fatal. The hook sits in replay's `ComputePipeline::requested` / `GraphicsPipeline::requested`, called |
| 2426 | where a submission is prepared, also for a handle that exists already (a warm-up build, a cached one); the | 2426 | where a submission is prepared, also for a handle that exists already (a warm-up build, a cached one); the |
| 2427 | recorder decides "first" with one compare-and-swap in a table made at start, takes no lock and allocates nothing, | 2427 | recorder decides "first" with one compare-and-swap in a table made at start, never blocks and allocates nothing (a non-blocking `try_lock` on the first request of a pipeline and of a variant), |
| 2428 | and a thread of its own appends every 250 ms, so a killed process loses at most that. The record holds 8192 lines | 2428 | and a thread of its own appends every 250 ms, so a killed process loses at most that. The record holds 8192 lines |
| 2429 | per run (the rest is counted, not kept); a file past 8 MiB is set aside as `pipeline_order.log.prev`. At exit (the | 2429 | per run (the rest is counted, not kept); a file past 8 MiB is set aside as `pipeline_order.log.prev`. At exit (the |
| 2430 | exit cache save, or the device's release) one line gives the counts: `[rt] pipeline-order: requested N, already | 2430 | exit cache save, or the device's release) one line gives the counts: `[rt] pipeline-order: requested N, already |