startup: keep shadow-only descriptor table entries in the capture summary #1483
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1490"
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 tedin7 on 2026-11-24T12:50:41Z.
What
describe()intools/startup/capture.pynow pairs the shadow and token id lists withitertools.zip_longest(..., fillvalue=0)instead ofzip. Two regression checks are added totests/startup_capture_check.py:check_describe_shadow_onlyandcheck_describe_one_sided_ids.Why
on_TABLstoresshadow=ids[:entries]andtokens=ids[entries:]. When a table carries only the shadow half,tokensis empty andzipyields nothing, so the summary printed "0 of N entries known" and dropped every entry. The line that prints(shadow N token M)already treats an emptytokensas a valid case, so the two lines disagreed. The current writer (src/startup_stubs/d3d12_capture.inl) always emits2 * entriesids, or no ids whenentriesis 0, so this hardens the reader against shorter files.on_TABLis unchanged because it matches the writer layout. Theused[:64]limit is unchanged. Output for full-length tables is unchanged.Tested
Linux, pure Python:
python3 -B tests/startup_capture_check.py: all 7 checks okpython3 -B tests/docs_links_check.py: okpython3 -B tests/bidi_controls_check.py: okgit diff --check: cleanNegative control: the new test file was run against
git show origin/main:tools/startup/capture.py(copied outside the repo).check_describe_shadow_onlyfailed there because the output lacked "2 of 2 entries known" (it printed "0 of 2"). It passes with the fix.Not run: nothing Windows-specific is involved (no MSVC, no CMake build, no D3D12). The test is already registered in CMakeLists.txt, which is untouched.
Left out
Docs are unchanged:
docs/startup-runtime.mddoes not describe the table summary format.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T12:58:40Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
b9b60f6bb0b6af0173faa014333486732ec7a937:--preset dev):ctest --preset dev -R '^startup_capture$' --parallel 4 --no-tests=error --output-on-failure: 1/1 passed/O2(--preset release):ctest --preset release -R '^startup_capture$' --parallel 4 --no-tests=error --output-on-failure: 1/1 passedAI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T12:58:50Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
b9b60f6ℹ️ 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.