startup: record bound slot 57 targets with the creation capture #3761
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3761"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by R0D4X on 2026-12-01T16:56:53Z.
Refs #3416
Refs #3502
Refs #3724
Summary
Unstacks
Leyukaka's slot 57 bound-target capture commit (4991e866from #3502, authorship preserved inf893187d) directly onto currentmain(959306d4) without the #3493 dependency, resolves thed3d12_draw.inlcache-index anddocs/startup-runtime.mdmerge conflicts, and addresses all items fromlukaslw-lab's review of #3502 in09df3efa:f893187d):publish_request_fileaccepts an optionalbool* already_existedout-parameter sopublish_shader_requestkeepsnote_cache_writeandcache_index().count_contradiction()intact while sharing the atomic write helper withwrite_mesh57_targets.depth_unresolved,09df3efa): AddedPass::depth_unresolved, set inlist_targetswhen a non-null depth handle is unreadable or maps to no desktop descriptor (!resolved), and checked incapture_slot57_targetsso runtime depth misses never record a bogusdsv 0 writable 0tuple.09df3efa): Expandedmesh57_target_captureintests/startup_indirect_draw_indexed.cppto cover:unresolved_dsv{0}) refusal,[rtv1, rtv0]->targets 2 29 28 dsv 0 writable 0 samples 1 0).09df3efa): Addedstartup_indirect_mesh57_targets(_off)?_warpto theprtest preset inCMakePresets.json.Verification
Environment: Windows 11 x64 (
10.0.26300.9974), MSVC19.44.35230, Windows SDK / DXC10.0.26100.0, NVIDIA GeForce RTX 5080 (10de:2c02, driver32.0.16.2140), Microsoft Basic Render Driver (10.0.26100.9818), D3D12 debug layer enabled.Commit under test:
09df3efa.dev: 10/10 passed (0 skipped), WARP + RTX 5080.release: 10/10 passed (0 skipped), WARP + RTX 5080.tests/docs_links_check.py: passed (208 Markdown files, 803 links).tests/mesh57_profile_draft_check.py: passed.New mutation checks (all 4 killed in
devagainststartup_indirect_mesh57_targets_warp)pass.depth_unresolvedcheck incapture_slot57_targetstargets 1 30 dsv 0 writable 0 samples 1 0collect_samplestargets 1 28 dsv 55 writable 1 samples 4 0directcheck inrequest_slot57_meshtargets 1 30 dsv 55 writable 0 samples 1 0std::fill_nwithtarget_formats[0])targets 2 29 29instead oftargets 2 29 28No game files, dumps, or private paths included.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-12-02T22:28:22Z.
Ran this on a Windows test PC at
8dde5cb1, built with thedevpreset (MSVC 19.44). I picked the mesh57 tests that touch this change:startup_indirect_mesh_request,startup_indirect_mesh57_targets,startup_indirect_mesh57_targets_off,native_fixed_mesh57andnative_fixed_mesh57_mrt, each in the_warpand_hardwarevariants. That's 10 tests, and all 10 passed (8.4 s total).tests/docs_links_check.pyandtests/mesh57_profile_draft_check.pyalso exit 0. I didn't run the rest of the suite.AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T22:33:20Z.
Thanks for rerunning the 10 WARP and hardware fixtures on
8dde5cb1. I checked the merge againstmain67862ee4. Three paths still conflict. InCMakePresets.json, add the two target-capture WARP checks to the current selector so the newer fixtures stay selected. Ind3d12_draw.inl, keep main'spublish_mesh_requestroute for the.s57state and record the variant only when that submission succeeds. Instartup_indirect_draw_indexed.cpp, keep both main's slot-86 presentation fixture and the new slot-57 target fixture. Once the branch is updated, the same 10-test selection can verify the combined tree.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T22:52:37Z.
I resolved the three conflicts locally against
main517854f0. On the combined tree I caught an ordering issue: the RTX 4060 Laptop run foundreq_fb9bfc547f049d15.t57while the corresponding.s57was still absent. The fixture waits for target callbacks, and main now queues the creation archive onRequestPublisher. I tested a one-line fix in the existing fixture wait that drains the mesh-request queue against the same timeout before waiting for the target callbacks. Afterward the target case passed 20 consecutive runs on inbox WARP and 20 on RTX 4060 Laptop. The full 12-case slot-57/slot-86 selection passed, with the debug layer enabled and no skips. Please include that fixture wait in the branch update so CI can test the combined tree.Imported from R0Y00/Xbox2Windows. Originally posted by R0D4X on 2026-12-03T14:17:49Z.
Rebased onto
upstream/main(e7277aa4) and added the ordering fix at2d5be5e8:CMakePresets.json(kept current selector and addedmesh57_targets(_off)?),src/startup_stubs/d3d12_draw.inl(keptpublish_mesh_requestfor.s57and recordedfixed_mesh_capture_varianton success),src/startup_stubs/d3d12_xs_device.cpp(kept bothX2W_MESH57_DERIVE_STATEandcapture_slot57_targets), andtests/startup_indirect_draw_indexed.cpp(kept both main's slot-86 presentation/derived-mesh fixtures andmesh57_target_capture).mesh_request_instanceagainst the sametimeoutinx2w_d3d12_fixture_wait_mesh57_targetsbefore waiting for target-write callbacks, so.s57is on disk alongside.t57.tests/standin_exports_check.pyfor the addedx2w_d3d12_fixture_wait_mesh57_targetsexport (d3d12_xs: 87 entries, 52 unmeasured).Verification (
2d5be5e8)10.0.26300.9974), MSVC19.44.35230(Debug), Windows SDK / DXC10.0.26100.0, NVIDIA GeForce RTX 5080 (10de:2c02, driver32.0.16.2140), Microsoft Basic Render Driver (10.0.26100.9818), D3D12 debug layer enabled.ctest --preset dev --no-tests=error -R '^(startup_indirect_mesh_request|startup_indirect_mesh57_targets(_off)?|native_fixed_mesh57(_mrt)?)_(warp|hardware)$': 10/10 passed (0 skips).ctest --preset dev --no-tests=error -R '^startup_mesh86_present_(warp|hardware)$': 2/2 passed (0 skips).ctest --preset dev --no-tests=error --repeat until-fail:10 -R '^startup_indirect_mesh57_targets_(warp|hardware)$': 10/10 consecutive passes on both WARP and RTX 5080.tests/standin_exports_check.py(481 cases, 6/6 mutations killed PASS),tests/docs_links_check.py,tests/mesh57_profile_draft_check.pyall passed.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T14:43:33Z.
CI passed on
2d5be5e8. The new mainadfc0d94creates two conflicts in a local trial merge: CMakePresets.json and tests/startup_indirect_draw_indexed.cpp. Please keep both the #3935 indexed-snapshot smoke selector and the mesh57 target selectors, and preserve the snapshot mutation around Submit alongside the capture wait/drain. The slot57 runtime changes merge cleanly. The archive and target fixture needs a rerun at the next head.Imported from R0Y00/Xbox2Windows. Originally posted by R0D4X on 2026-12-03T15:06:03Z.
Rebased onto
upstream/main(b78e10df) atf5a8b430, resolving the two conflicts inCMakePresets.json(keeping bothstartup_indirect_translated_indexed_snapshot_warpfrom #3935 andmesh57_targets(_off)?) andtests/startup_indirect_draw_indexed.cpp(keeping bothx2w_d3d12_snapshot_pool_usedandx2w_d3d12_fixture_wait_mesh57_targetsalongside the snapshot fixture and the target capture wait/drain).Verification (
f5a8b430)10.0.26300.9974), MSVC19.44.35230(Debug), Windows SDK / DXC10.0.26100.0, NVIDIA GeForce RTX 5080 (10de:2c02, driver32.0.16.2140), Microsoft Basic Render Driver (10.0.26100.9818), D3D12 debug layer enabled.ctest --preset pr -N: accepted the selector (startup_indirect_mesh57_targets_warp,startup_indirect_mesh57_targets_off_warp,startup_indirect_translated_indexed_snapshot_warp, 349 tests).ctest --preset dev --no-tests=error -R '^(startup_indirect_mesh_request|startup_indirect_mesh57_targets(_off)?|startup_indirect_translated_indexed_snapshot|native_fixed_mesh57(_mrt)?)_(warp|hardware)$': 12/12 passed (0 skips).tests/standin_exports_check.py: 481 cases, 6/6 mutations killed PASS.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T15:27:25Z.
Review: APPROVED
Independently reviewed
394a56b8. The fixture wait drains the request publisher before reading or deleting its private test archive, along with waiting for target sidecars. The PR preset retains the prior draw report and indexed snapshot selectors. MSVC Debug, Windows 11 build 26300:ctest --preset dev --no-tests=error -j 1 -V -R '^startup_indirect_mesh57_targets(_off)?_(warp|hardware)$'passed 4/4. I also ranctest --preset dev --no-tests=error -j 1 --repeat until-fail:5 -V -R '^native_mesh57_outcomes_(warp|hardware)$': both adapters passed five consecutive runs with accepted=1 and refused=1. WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656, D3D12 debug layer enabled. No capability skips.