test: add startup_compute_dispatch C++ test #2904
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!2904
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2904"
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?
@KelboLive on GitHub · 2026-11-26 18:27 UTC · original
KelboLive:pr2847_real→main· +366 −61 · 8 files · 6 commits · closed without mergingChanges
Adds standalone C++ test for compute dispatch on a console command list:
Tests register with warp and hardware adapters (hardware skipped when no D3D12-capable GPU available).
Files
tests/startup_compute_dispatch.cpp— 369 line test fixturetests/cmake/startup_compute_dispatch.cmake— test registrationCleanup
nulWindows artifactpr2862_review.mdfrom root todocs/pr2849_review.md(merged, review obsolete)@KelboLive on GitHub · 2026-11-27 05:45 UTC · original · reviewed
What works
(33 root sig, 25 PSO, 37/39 root constants, 45 UAV, 14 Dispatch)
plus 5 negative controls (0 threads, no PSO, out-of-range constants,
out-of-range offset). Both warp and hardware adapters are tested.
UploadRingChunkgetsgenerationandsubmitsfields,is_upload_chunk_idle()walks thesubmit list checking fence completion, and
discard_upload_ring()handles list release.
frame_copy()now callsvalidate_and_note_upload_ring_use()whichensures cached frame copies aren't reused after the ring has been
submitted to the GPU. Good safety guard.
Issues
note_submits()now takes 3 parameters (queue, wrappers, nativelists). The existing call sites need updating -- verify all callers
pass the native list arg (or empty vector).
UploadReservationgaining agenerationfield means the callermust pass it to
frame_copy(). The diff showsframe_copy()defaults to
list=nullptr, but thegenerationmust be threadedthrough correctly for the upload ring tracking to work.
discard_mesh_lease_recording()call in the release pathis no longer inlined -- it now takes the list directly. Ensure the
call site passes
static_cast<ID3D12CommandList*>(...)correctly.Recommendations
note_submits()pass the third parameter.any negative controls could be factored into reusable helpers.
discard_upload_ring()should also resetrecordingsif it hasn'talready (to catch cases where the chunk is still recording).
Overall
Solid test add with useful upload ring generation tracking.
The C++ test covers the critical path well. Approvable.
@R0Y00 on GitHub · 2026-11-27 05:58 UTC · original · reviewed
At
0a627028, neithertests/startup_compute_dispatch.cppnortests/cmake/startup_compute_dispatch.cmakefrom the description is in the PR diff. The current diff changes the upload ring, queue submission and address-console fixtures, which overlap #2949. The PR also conflicts with current main. Please put the intended standalone compute-dispatch fixture and registration on a branch from current main so those changes can be reviewed on their own.@tedin7 on GitHub · 2026-11-27 09:36 UTC · original
This PR now conflicts with
main. Conflicting files:CMakeLists.txtdocs/startup-runtime.mdsrc/startup_stubs/d3d12_draw.inlsrc/startup_stubs/d3d12_xs_device.cppsrc/startup_stubs/upload_reservation.htests/startup_address_console_check.pytests/upload_reservation_check.cppCould you merge
maininto your branch (a merge commit, no force push needed) and resolve these? Thank you.AI-assisted; commands listed were executed locally. (
git merge-tree origin/main <head>)@JohnConnorNPC on GitHub · 2026-11-28 07:38 UTC · original
Thanks for working on this. I think
mainalready covers this PR in a newer form, so I'm closing it.gh pr view 2904 --json fileslists 8 files (+366/−61) of upload-ring chunk reuse. None of them is astartup_compute_dispatchfile (0 matches).0a627028is the head of #2847 (gh pr view 2847 --json headRefOid→0a627028), and #2847 was closed as superseded by #2849.mainalready has this behavior from #2849 (6ee878d8) and #2949 (98e4a2ee). Onmain,src/startup_stubs/upload_reservation.hdefinesUploadQueue::submitted(chunks, signaled), andCMakeLists.txtalready runsgate gate-ring gate-ring-reuse gate-ring-keep gate-ring-keep-release.gh pr view 2904 --json mergeable→CONFLICTING.If something here is still missing from
main, or you want to land the compute-dispatch fixture, you're welcome to open a new, narrowed PR based on currentmain. A fixture that fails onmainfirst would help.This comment was AI-assisted.
Pull request closed