Complete RFC 1950 custom decompression jobs on a DirectStorage file queue #1121
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1128"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T01:34:53Z.
Refs #870. This follows the factory/staging fixture in #963 with a real Windows file queue. A source-built file request selects custom format zero, the worker consumes one RFC 1950 stream, and
SetRequestResultsreturns the codec HRESULT with the original request ID. The destination is published only on exact input and output lengths and a valid zlib checksum.Verified six Release cases on Windows build 26200 with Microsoft.Direct3D.DirectStorage 1.3.0 and statically linked zlib 1.3.1. Success consumed 116 bytes and produced the expected 768 bytes. Truncation, a bad checksum, trailing input and destination sizes one byte above and below the expected size all returned
0x8007000din the codec and the DirectStorage status slot. Guards and failed destinations stayed intact. The event stayed pending before completion and a second dequeue returnedS_FALSE.The experiment is opt-in through
DSTORAGE_SDK_ROOT; the docs include the configure command and dependency versions. Only source is included.Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-24T01:44:15Z.
Review: APPROVED
Independent Windows 11 Release and Dev run and review.
Environment
out/dstorage-sdk)out/zlib-install)92f3377f(92f3377f491805ee583b0e593e183204c1e5f7b2)Configure & Test Commands
Release Preset:
Observed Statuses & Readbacks:
Dev Preset Verification:
All 6/6 tests passed identically (0.13 sec).
Linters & Documentation:
Invariant Checks Summary
0xca) before and after the destination buffer remained intact. On each of the 5 error scenarios (truncated,checksum,trailing,oversize,undersize), the destination buffer was not overwritten and the codec returned0x8007000d(ERROR_INVALID_DATA).WaitForSingleObject(event, 0) == WAIT_TIMEOUTandstatus->IsComplete(0) == FALSEwere verified before custom queue servicing.complete_one()dequeue returnsS_FALSEwith no pending requests.0x00000000for success and0x8007000dfor all error cases.Everything reproduces cleanly.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T01:38:12Z.
The queue test already checks that completion stays pending after Submit while the custom worker still owns the request. Please add the distinct check immediately before manual Submit, after enqueueing the request, status and event: no codec request available, no completion event, and the destination sentinels untouched. Keep the existing post-Submit check. This will make the two ordering guarantees independently observable.
I independently ran all six Windows Release cases on
92f3377fwith DirectStorage 1.3.0 and zlib 1.3.1. They also passed with the additional pre-Submit event and destination checks in my independent local fixture. The original six cover the successful readback and the five malformed-input or output-length cases.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T02:24:30Z.
I pushed the pre-Submit control as
3ebaaddb. The Release run with the real DirectStorage custom queue still passed all six scenarios with the optional SDK and zlib configured. The new assertion checks both events and the entire destination sentinel before manual Submit. The existing assertion still checks that completion is pending while the worker owns the request.