Repository navigation
startup: clear tables on root change and log dropped root constants - #1744
Merged
Merged
Conversation
…log dropped root constants
…n root signature changes
tedin7
marked this pull request as ready for review
November 24, 2026 18:24
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour 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. |
This was referenced Nov 24, 2026
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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), as 61a55f6 already 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 startup: record SetGraphicsRoot32BitConstant (slot 38) #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.