startup: count BCPack requests by format #1615
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1622"
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 lambirou on 2026-11-24T15:13:15Z.
Problem
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.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T15:27:25Z.
Review: COMMENTED
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.
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-24T18:45:33Z.
@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.