startup: count BCPack requests by format #1622
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!1622
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1622/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?
@lambirou on GitHub · 2026-11-24 15:13 UTC · original
lambirou:startup/bcpack-format-census→main· +79 −5 · 4 files · 1 commits · merged 2026-11-24 16:26 UTCProblem
The DirectStorage stand-in currently reports a single
bcpack-blankcount, so a loading log cannot tell which BCPack formats a title actually asks for. That makes the BC6H decision blind: format 6 is still zero-filled, while BC1 and BC7 are decoded.Change
src/startup_stubs/xcrdapi.cpp.x2w-dstorage BCPack summaryline at process exit, for examplerequests formats=1:2 6:1 7:4; zero-filled formats=6:1.docs/startup-runtime.md.This is measurement only. It does not claim BC6H decoding; that remains a follow-up if the summary shows format 6 traffic. PR #1390 already covers BC3/BC4/BC5.
Verification
Result:
startup_stubs1/1 passed. Observed line:python -B tests/docs_links_check.pychecked 16 Markdown files and 348 links;git diff --checkis clean.Rebased onto
origin/main(578d1e1c) on 2026-11-24; the rebased head852ab34brebuilt and passed the same checks.Not tested
Refs #1139, #1198. No game files, dumps or XCL code are included.
Licence
MIT, as the rest of the repository. The implementation, fixture changes and documentation are original work; no XCL code, tables, game files or third-party binaries are included.
AI use: implementation, test update and verification were drafted by a Codex subagent; the orchestrator reviewed the diff and reran the targeted build and CTest above.
@lambirou on GitHub · 2026-11-24 18:45 UTC · original
@R0Y00 Ready for maintainer review.
Rebased onto
origin/main(578d1e1c); head852ab34b; Windows checks pass. The earlier review ata1f24c3found no blocking issues, but that head is no longer current after the rebase.Scope is measurement only: BCPack requests and zero-filled destinations are counted per format 1..15, and the source-built consumer sends format 6 and checks the zero-filled result. BC6H decoding is not included. No game data.
@tedin7 on GitHub · 2026-11-24 15:27 UTC · original · reviewed
Reviewed at commit
a1f24c3dd16806e4fefbf30ce083053ac6276516.Findings
src/startup_stubs/xcrdapi.cpp:bcpack_requests[16]andbcpack_blank[16]are indexed bybcpack = (options >> 1) & 0xF(0..15, guarded byif (bcpack)) usingInterlockedIncrement/InterlockedCompareExchange, andlog_bcpack_summaryis registered once viastd::atexitinDStorageGetFactory.tests/startup_stub_consumer.cppandtests/startup_stub_check.py: cover an unhandled format 6 (BC6H) request alongside BC1 (format 1) and BC7 (format 7), verifying zero-filled destination output,HRESULT == 0, and thex2w-dstorage BCPack summarycounts.Verification
python3 -B tests/docs_links_check.py-> passed (16 Markdown files, 348 links).python3 -B tests/bidi_controls_check.py-> passed (1263 tracked files).--preset dev):ctest --preset dev -R '^(startup_heartbeat_commit|startup_storage_directory_batch|startup_stubs)$' --parallel 4 --no-tests=error --output-on-failure-> 3/3 passed (30.29s)./O2(--preset release):ctest --preset release -R '^(startup_heartbeat_commit|startup_storage_directory_batch|startup_stubs)$' --parallel 4 --no-tests=error --output-on-failure-> 3/3 passed (30.27s).No blocking issues found.
AI-assisted; commands listed were executed locally.