sync: merge main into cpp-migration #3038
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!3038
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/3038/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-27 09:35 UTC · original
tedin7:sm2-sync-main-cpp→cpp-migration· +10773 −368 · 130 files · 39 commits · closed without mergingPart of #1198
What this unblocks: cpp-migration catches up with main (37 commits), so PRs based on cpp-migration stop falling behind.
Merge commit of origin/main into cpp-migration (no rebase, no force). Four conflicts, resolved keeping both sides:
src/startup_stubs/d3d12_compute_dispatch.inl: the in-process translation (translate_compute_natively) stays next to the new root SRV resolver; the per-key retry gate uses main'smanifest_retry.due()and still tries the native translation first.tests/startup_stream_consumer.cpp: main's table-offset / root-changed / heap-changed modes plus cpp-migration'sdispatch-records32.tests/startup_run_ps1_check.py: the stub record carries both the native SDK field and main's title id and storage fields.tools/startup/gfx2hlsl.py: main'svconstliteral tracking now sits inset_v(git had paired it with the wrong function).Verification:
git merge origin/mainon a branch from origin/cpp-migration;python3 -m py_compile tools/startup/gfx2hlsl.py tests/startup_run_ps1_check.py: ok.AI-assisted; commands listed were executed locally.
@tedin7 on GitHub · 2026-11-27 10:07 UTC · original
Focused Windows receipt for head
e3397e416(pull/3038/head, default pool, dev and release run in parallel, Windows 11 build 26100, WARP and the VM's hardware adapter).75aa29d3): 370/372 passed on dev and on release. The two red tests,startup_compute_dispatch_native_{warp,hardware}, were a real conflict between the two sides: main moved the runtime request revision tox2w-startup-shader-29/29cs, while the C++ reader on cpp-migration, two fixtures and one doc still hashed revision 28 ("compute request key mismatch").e3397e416moves them to 29.e3397e41): 23/24 passed on dev and on release.startup_compute_dispatch_native_warpskips (no 32-lane waves on WARP) and_hardwareskips on the VM adapter;native_compute_clear,native_direct_containerandnative_startup_request_cache_warppass.native_startup_request_cache_hardware, debug layer "Shader wants wave lane count of 32 but maximum wave lane count for device is 4". The VM adapter has 4-lane waves. It fails the same way on an unrelated cpp-migration PR head (#3018,fb760133), so it is not caused by this merge; the test needs a wave-size skip.AI-assisted; commands listed were executed locally.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-27 10:07 UTC · original · edited 2026-11-27 10:14 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
e3397e4ℹ️ 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.
@R0Y00 on GitHub · 2026-11-27 10:14 UTC · original
Thanks for the independent Windows receipt and for isolating the four-lane adapter failure. The sync through
main8a901eb2already landed oncpp-migrationasb8f49259. It accepts current revision-29 and archived revision-28 cache requests. On the RTX 4060 Laptop, the cache hardware test passed in Debug and Release/O2; the two separate wave32 fixtures reported their WARP capability skips. Please close this overlapping draft. The four-lane skip innative_startup_request_cache_hardwarecan be handled as a separate focused change against the current branch.@chatgpt-codex-connector[bot] on GitHub · 2026-11-27 10:14 UTC · original · reviewed
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
e3397e4167ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@ -7503,0 +7848,4 @@'lowered in this slice' % (name, tok))raise Unsupported('%s descriptor %s is not four constant SGPRs' % (name, tok))words = ['0x%08xu' % (value & 0xffffffff) for value in values]base = ((values[1] & 0xff) << 32) | values[0]@chatgpt-codex-connector[bot] on GitHub · 2026-11-27 10:14 UTC · original
For a constant T# describing byte base
0x100000, the encoded base is0x1000: bothbvh_model.descriptor()and the native fixture'sdescriptor_for()storebase >> 8. This code instead emitssrv 0 bvh base 0x1000 ..., so the manifest names the wrong allocation. The latervals[0] & 0xffcheck also rejects valid 256-byte-aligned bases such as0x123400. Reconstruct the byte address with the missing left shift and validate alignment on that address rather than on the encoded units.Useful? React with 👍 / 👎.
@ -7503,0 +7883,4 @@node = self.const_u32(cs[0])node_reg = reg_range(cs[0])if node is None and node_reg and node_reg[0] == 'v' and not getattr(self, 'has_branches', True):node = getattr(self, 'vconst', {}).get(node_reg[1])@chatgpt-codex-connector[bot] on GitHub · 2026-11-27 10:14 UTC · original
In a straight-line compute shader,
v_mov_b32 v16, 5,v_mov_b32 v28, 0x15, thenv_swap_b32 v16, v28leavesvconst[16]equal to 5 becauseop_v_swap_b32()emits register writes directly without callingset_v(). A subsequentimage_bvh_intersect_raytherefore hardcodes node0x05even though the actual operand is0x15, intersecting the node at offset 0 instead of offset 128. Update or invalidate the literal cache for all VGPR destination writes, including direct-emission helpers, before using it to fold the node operand.Useful? React with 👍 / 👎.
@R0Y00 on GitHub · 2026-11-27 10:16 UTC · original
Thanks for preparing the branch sync. We merged cpp-migration into main in #3039 (
91cbedd6), so I’m closing this sync PR.One change is worth following up separately:
e3397e41updates the native startup request keys and fixtures to revision 29. On current main, tests/native_direct_container_check.py still constructs a revision-28 key. Please carry the revision alignment into a focused PR against main and verify that the runtime producer and offline compiler accept the same graphics and compute requests. The original commit remains linked here for reference.Pull request closed