storage: implement next DirectStorage/BCPack slice (Part of #1198) #2083
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2083
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2083/head"
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?
@tedin7 on GitHub · 2026-11-25 00:04 UTC · original
tedin7:x2w-1198-next-slice→main· +399 −0 · 2 files · 3 commits · merged 2026-11-25 01:57 UTCPart of #1198
What this unblocks: the "follow one failing request's generation through its status poll and a later write to the same destination" experiment the owner asked for in #1198, as a source-built fixture.
What it adds
startup_storage_refused_reusereuses one mapped page (no release in between) with three page-destination zlib requests in one Submit, all ending at the first page's end (page_offset 0xF000,destination_size 0x1000):Also checked: fence order and positions, the stand-in log outcomes, and that sentinel, R1, R2 and V never share a byte at any destination offset.
Negative control
startup_storage_refused_reuse_accept_refused_control: a consumer that takes R1's destination as data must fail ("matches the stream prefix in 0 of 4096").Not covered: the console's own status-array layout (still the open semantics question).
Verification
Executed locally (Linux):
git diff --check: clean.x86_64-w64-mingw32-g++ -std=c++17 -Wall -Wextra -fsyntax-only tests/startup_storage_refused_reuse.cpp: only the same function-cast warnings the sibling test has.Win2025 commands not yet executed (no Windows build on this host):
cmake --build --preset release --target startup_storage_refused_reusectest --preset release -R startup_storage_refused_reuse --output-on-failureAI-assisted; commands listed were executed locally.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 01:34 UTC · original · edited 2026-11-25 01:36 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
efbc9b9ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@R0Y00 on GitHub · 2026-11-25 01:48 UTC · original
The Windows Release fixture passed both CTest cases. I updated the three generated requests after #2129 to use distinct 64-bit CancellationTag values independent of their decoded lengths. The failed/valid/failed sequence gives E_FAIL/S_OK/E_FAIL at the respective fences, and the invalid consumer matches 0 of 4096 bytes. This verifies the stand-in against a source-built sequence.