replay: the display library line names the sidecar by SHA-256 and git blob id
The planner's condition on the display sidecar: every play states which display library it ran. The report's display library line now gives the sidecar's length, its SHA-256, and its git blob id (the SHA-1 of "blob LENGTH\0" and the bytes). The blob id names the file in the host's tree: every stream so far holds blob b1aea1f0, 47,426 bytes. The doc also says the sidecar holds the host's display shaders alone, and that a player makes only the device's library from source of no arguments from it. The validation crate takes sha1 0.11 (RustCrypto, MIT OR Apache-2.0; the same digest family as sha2 0.11) for the blob id. Test: the integration test expects the 5-byte sidecar's SHA-256 and the blob id `git hash-object` gives for the same bytes (8d7ffd7e). Verified by the lane check named in the hand-over.
This commit is contained in:
1 parent
0ee01c4eda
commit
37fffd39fc
6 files changed
+31
-12
No files matched your search
@@ -44,8 +44,9 @@ hold guest data and is never committed. Tests write their own streams.
|
||||
- **The display library sidecar.** `NAME.display.metallib` beside the first segment, as
|
||||
`NAME.range`, is the metallib of the host's own display shaders, which the host makes as a
|
||||
library from source: the stream's `newLibraryWithSource:options:error:` of the device with no
|
||||
arguments. A program's own libraries reach the stream as data (`newLibraryWithData:error:`,
|
||||
section 9), never as source. A player makes that library of the sidecar, as of data; a stream
|
||||
arguments. It holds the host's display shaders alone, never a program's: a program's own
|
||||
libraries reach the stream as data (`newLibraryWithData:error:`, section 9), never as source. A
|
||||
player makes that one library of the sidecar, as of data, and nothing else of it; a stream
|
||||
without one leaves it skipped and counted, with the host's draws that use it.
|
||||
|
||||
| kind | record | payload |
|
||||
@@ -463,9 +464,10 @@ counted from 0), completes the work committed so far, reports as at the stream's
|
||||
`until-frame F` as `--until-frame` does. A sidecar that reads as neither `last-frame F` nor
|
||||
`whole` is an error.
|
||||
- **The display library.** The report's line after `range` is `display library the stream's
|
||||
sidecar, N bytes` where the stream has `NAME.display.metallib` (section 1), and the host's
|
||||
library from source is made of it on either runtime; else `display library none: the host's
|
||||
library from source is skipped`.
|
||||
sidecar, N bytes, sha256 HEX, git blob ID` where the stream has `NAME.display.metallib` (section
|
||||
1), which names the file the play ran by its SHA-256 and its git blob id in the host's tree, and
|
||||
the host's library from source is made of it on either runtime; else `display library none: the
|
||||
host's library from source is skipped`.
|
||||
- **Streams recorded before the completion fix.** Where the stream's header lacks bit 1 (section
|
||||
6), the report's first line is, by itself, `recorded before the recorder's completion fix: the
|
||||
stream may differ from what the program did`, so no table taken from the report loses it.
|
||||
|
||||
Reference in new issue
Block a user