startup: record SetGraphicsRoot32BitConstant (slot 38) #1726
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!1726
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1726/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?
@tedin7 on GitHub · 2026-11-24 17:53 UTC · original
tedin7:x2w-frontier-b2-slot38→main· +127 −4 · 8 files · 6 commits · closed without mergingRecords the command-list call
SetGraphicsRoot32BitConstant(console slot 38, desktop 34 + 4) so a translated shader can read a single root constant word. Slot 38 is DERIVED from the desktop order plus the console shift; it has not been seen in a title log.Changes
list_root_constant(parameter, value, offset)insrc/startup_stubs/d3d12_draw.inlstores one word in the per-list table that slot 40 already fills. A null list, parameter >= 16, or offset >= 8 is dropped. Nothing is forwarded to the desktop list.list_graphics_root(slot 34) now also clears the stored root constants when the root signature changes, next to the root addresses cleared by61a55f63. Setting the same root signature again keeps them. This applies to slot 40 too.tests/startup_mrt_check.pygets eleven cases (set, overwrite, offset 3 read at offset 3 and at offset 0, preserving offset 0 written through slot 40 while writing offset 3 through slot 38, corner (15, 7), four out-of-range calls, same root, switched root, and no call). They run in the existingstartup_mrt_{fxc,dxc}_{warp,hardware}tests, driven bydraw_root_constantintests/startup_root_cbv.cppand alternate root creation intests/startup_stream_setup.cpp. No change toCMakeLists.txt.docs/startup-runtime.mdanddocs/experiments.mddescribe the slot and its synthetic coverage.Verified
At commit
d251d8fbb6b2ead97aea77a9a9facf7f0d3d3b98:git diff --check,python3 -B -m py_compile tests/startup_mrt_check.py,python3 -B tests/docs_links_check.py(17 files, 367 links),python3 -B tests/bidi_controls_check.py(1304 files): pass.--preset dev):cmake --build --preset dev --target startup_stream_consumer -- -j 8(25.06s);ctest --preset dev -R '^(startup_mrt_|startup_root_cbv_|startup_stream_draw_)' --parallel 6 --no-tests=error --output-on-failure: 8/8 passed (10.70s:startup_mrt_fxc_warp,startup_mrt_dxc_warp,startup_mrt_fxc_hardware,startup_mrt_dxc_hardware,startup_root_cbv_warp,startup_root_cbv_hardware,startup_stream_draw_warp,startup_stream_draw_hardware)./O2(--preset release):cmake --build --preset release --target startup_stream_consumer -- -j 8(41.25s);ctest --preset release -R '^(startup_mrt_|startup_root_cbv_|startup_stream_draw_)' --parallel 6 --no-tests=error --output-on-failure: 8/8 passed (9.69s).startup_mrt_dxc_warp):list_root_constantto ignoreoffset(constants[parameter][0] = value):startup_mrt_dxc_warpfailed on('offset3', '0 3', '01000000020000000100c07f01000080', '01008000020080000100407f01008080')(exit 1).std::fill_n(&pass.constants[0][0], 16 * 8, 0u)inlist_graphics_root:startup_mrt_dxc_warpfailed on('switch_root', '0 0', '01008000020080000100407f01008080', '01000000020000000100c07f01000080')(exit 1).Not verified
llvm-mcstep: this change has no shader assembly.AI-assisted; commands listed were executed locally.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 18:25 UTC · original · edited 2026-11-24 18:28 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
d251d8fℹ️ 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.
@tedin7 on GitHub · 2026-11-25 13:51 UTC · original
Closing this PR for now to keep the Windows test queue short. Nothing is wrong with it and the branch stays as it is.
We will reopen it once the queue is clear, re-run the Win2025 WARP checks at its head, and post the result here.
AI-assisted; commands listed were executed locally.
Pull request closed