Repository navigation
cpu: publish RGBA8 textures from completed archive records - #850
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #830
The existing archive reader tells us which decompressed bytes reached stdout. For the two-frame experiment we also need to know exactly what the upload code can see when the second decode fails. This adds a source-built Zig entry that shares the existing allocation, decode and release loop and selects a texture publisher at compile time.
Each complete record supplies one row-major 4×4 RGBA8 image to
consume_archive_texture(const ArchiveTexture&). The red samples cycle through the decoded record. Green and blue identify the column and row, and alpha is opaque. The consumer has 16 bytes per row and owns no storage. It can copy the pixels during the call. The consumer in this PR writes the 64 bytes to stdout so the test can inspect every channel independently of D3D12.What I checked
The comparison uses the two synthetic streams already in the archive suite. The mapped run maps the reader, codec and source decoder. The AOT executable uses the lifted reader and decoder. The original reader's raw-byte tests still pass.
Reproduction
Windows x64, Release, MSVC 19.50, Zig 0.13.0, commit
9b53759.Six passed, zero failed or skipped. The two existing upload tests each checked five 16,384-byte readbacks. Those runs establish the #814 baseline. Connecting this publisher to that upload path, submitting two draws on the same queue, and checking fences and frame readback remain open in #830. The consumer contract and standalone reproduction command are in the experiment notes.
AI-assisted.