startup: clear tables on root change and log dropped root constants #1737
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1744"
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-24T18:02:46Z.
Two gaps around
SetGraphicsRootSignatureandSetGraphicsRoot32BitConstantsin translated draws.Changes
list_graphics_root(slot 34): a root signature different from the current one now also drops the bound descriptor tables (view_tables), as61a55f63already does for the root addresses. Setting the same signature again keeps them, so a title that rebinds the same signature does not lose its tables. Root constants on a signature change are handled in #1726 and are not repeated here.list_root_constants(slot 40): a call with parameter >= 16 or offset >= 8 is logged asroot constants dropped, and one whose count passes the eighth word asroot constants truncated, for the first four such calls in the process. Behaviour is unchanged: the same words are stored or dropped as before.startup_root_reset_{warp,hardware}(tests/startup_root_reset.cpp,tests/startup_root_reset_check.py): a 1D texture is drawn through a bound table with no change, with the same root signature again (table kept), after a switch to another signature and back (table gone, the shader reads zeros), and after six out-of-range slot 40 calls (table kept, exactly four log lines: three dropped, one truncated).docs/startup-runtime.mdanddocs/experiments.md.Verified (Windows Server 2025 + Linux)
At commit
50df4c2d04472c2c5d412626e833d8c62849ba7a:--preset dev):cmake --build --preset dev --target startup_stream_consumer -- -j 8(3.53s),ctest --preset dev -R '^(startup_root_reset_warp|startup_root_cbv_warp|startup_mrt_.*_warp|startup_stream_draw_warp|startup_1d_srv_warp|stream_root_srv_warp)$' --parallel 6 --no-tests=error --output-on-failure-> 7/7 passed (6.70s,startup_root_reset_warp3.41s)./O2(--preset release):cmake --build --preset release --target startup_stream_consumer -- -j 8(1.15s),ctest --preset release -R '^(startup_root_reset_warp|startup_root_cbv_warp|startup_mrt_.*_warp|startup_stream_draw_warp|startup_1d_srv_warp|stream_root_srv_warp)$' --parallel 6 --no-tests=error --output-on-failure-> 7/7 passed (6.88s,startup_root_reset_warp3.63s).view_tablesclear inlist_graphics_root):startup_root_reset_warpFAILED onswitch_root(actualkept texture pixels instead of zeros).view_tablesunconditionally on everylist_graphics_root):startup_root_reset_warpFAILED onsame_root(actualread zeros instead of texture pixels).git diff --check,tests/docs_links_check.py,tests/bidi_controls_check.py: pass.git merge-treeagainstorigin/main,#1701, and#1726: 0 conflicts.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T18:24:16Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
50df4c2ℹ️ 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.