startup: implement command-list slots 41/43/45/46 root constants and views (Part of #870) #2017
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!2017
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2017/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 23:11 UTC · original
tedin7:x2w-frontier-slots41-46→main· +228 −16 · 5 files · 4 commits · closed without mergingPart of #870
What this unblocks: compute root CBV/SRV arguments and both root UAV slots on a recording list (slots 41, 43, 45, 46), so compute and UAV-writing draws stop losing their root views.
Slots 41, 43, 45 and 46 are the desktop slots 37, 39, 41 and 42 plus four (compute CBV, compute SRV, compute UAV, graphics UAV). Checked first: none is on main and no open PR touches them (#1975 covers 37/39, #1726 slot 38, #1803 slots 33/35).
upload_from_title, as slot 44 does) and bound on the desktop list. Only with a real compute root set.root_view_store.h, with a host-only test.Verification:
g++ -std=c++17 -Wall -Wextra -Isrc tests/startup_root_view_store.cpp -o /tmp/rvs && /tmp/rvs:root view store ok(run on Linux).git diff --check: clean.ctest -R startup_root_view_store.d3d12_xs_device.cpponly builds on Windows, so the wiring is uncompiled. Needs the Win2025 target before merge.AI-assisted; commands listed were executed locally.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 23:14 UTC · original · edited 2026-11-24 23:22 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
42c71e2ℹ️ 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.
@ -1580,0 +1581,4 @@add_executable(startup_root_view_store_check tests/startup_root_view_store.cpp)target_include_directories(startup_root_view_store_check PRIVATE src)target_compile_features(startup_root_view_store_check PRIVATE cxx_std_17)add_test(NAME startup_root_view_store COMMAND startup_root_view_store_check)@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 23:22 UTC · original
This adds publicly observable startup behavior and a new CTest, but updates neither the README nor
docs/experiments.md, contrary to the public-capability documentation requirement inAGENTS.md. Searching those documents forstartup_root_view_storefinds no reproduction guidance. Add the host-only test command and describe the implementation boundary—compute CBV/SRV data is copied, while UAV addresses are only recorded—so contributors can reproduce the measured behavior without mistaking stored UAV bindings for working GPU writes.AGENTS.md reference: AGENTS.md:L208-L209
Useful? React with 👍 / 👎.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 23:22 UTC · original
When slot 43 binds a root SRV into a buffer larger than 64 KiB, this copies only its first
0x10000bytes. Root SRVs are not subject to the constant-buffer size limit: a valid shader access such asByteAddressBuffer.Load(0x10000)will read beyond this upload slice into uninitialized ring memory or the next upload, silently producing incorrect compute results. Resolve the backing buffer/range or otherwise determine the SRV's required extent instead of using the same fixed copy limit for both view types.Useful? React with 👍 / 👎.
@R0Y00 on GitHub · 2026-11-24 23:31 UTC · original
Please connect this to the shared compute acceptance fixture in #1441/#1974/#1975. The stored UAV address has not reached the native list, and copying an arbitrary CBV/SRV prefix cannot establish the guest range the shader may read. Bind a live placed buffer with a known offset, or constrain a copied read-only range to a validated layout and size. A fenced UAV readback with a nonzero offset and a missing-root refusal should verify that Dispatch records only when all required root arguments are bound.
@ -1580,0 +1581,4 @@add_executable(startup_root_view_store_check tests/startup_root_view_store.cpp)target_include_directories(startup_root_view_store_check PRIVATE src)target_compile_features(startup_root_view_store_check PRIVATE cxx_std_17)add_test(NAME startup_root_view_store COMMAND startup_root_view_store_check)@tedin7 on GitHub · 2026-11-25 01:06 UTC · original
Fixed in 494df6d6:
docs/experiments.mdnow has a section for slots 41/43/45/46 with the host-only ctest command and the implementation boundary (compute CBV is copied, compute SRV and UAV addresses are only recorded, a stored UAV address is not a working GPU write).AI-assisted; commands listed were executed locally.
@tedin7 on GitHub · 2026-11-25 01:06 UTC · original
Fixed in 494df6d6: the 64 KiB prefix copy now applies to the CBV only. A root SRV has no such bound and its extent is unknown, so slot 43 only records the address and binds nothing, so no read can return unrelated ring memory. Win2025 dev and release: 22/22 ctest passed at this head.
AI-assisted; commands listed were executed locally.
@tedin7 on GitHub · 2026-11-25 10:48 UTC · original
Thanks, this was right: the stored UAV address did not reach the native list, and a prefix copy cannot establish what a root SRV may read.
Pushed
480c6fb7, rebased onto currentmain(25317c63):RootViewStore::covers(mask), the check a Dispatch will use to record only when every declared root view is bound.tests/startup_root_view_store.cppcovers it, including the missing-root case.docs/experiments.mdstates this boundary.Not done yet: the fenced UAV readback with a nonzero offset and the missing-root Dispatch refusal. Both need the direct Dispatch (slot 14) from #1974, which is still open. I will add them here after #1974 lands on
main, tied to the shared compute fixture in #1441/#1974/#1975. Until then the binding is unmeasured on a live dispatch; the docs say so.Verification (local, Linux only):
g++ -std=c++17 -Isrc tests/startup_root_view_store.cppthen run:root view store okgit diff --check: cleanAI-assisted; commands listed were executed locally.
@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.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 23:22 UTC · original · reviewed
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
42c71e2a02ℹ️ 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".
Pull request closed