runtime: trace paired slot 86 input writers and fences #2496
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2504"
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 sydney-0o on 2026-11-25T18:42:09Z.
Refs #870. Follows #2377 and #2375.
Set
X2W_MESH86_WRITER_TRACE=<n>to observe one DispatchMesh attempt using a slot 86 cache key. The trace reports both inputs before an early refusal, the most recent overlapping copy in the observed submission history, and the writer and fence submission IDs for each validated lease. A root binding without a proved extent is reported as an anchor. Submission reports forwarding or its first refusal.The new source-built check observes the root publication while the argument writer is still unsubmitted, matches both independent writer submissions to the DIRECT waits, and requires separate submit-time refusals after remapping either physical page.
Validation at
2b87fcfcWindows 10 host build 19045.6456, Windows Sandbox with vGPU disabled, Release x64, Microsoft Basic Render Driver app-local WARP 1.0.22.0, Agility SDK 1.620.2. The D3D12 debug layer was unavailable in the guest. Ran the commands registered by this CTest selection serially in the guest: 13 zero-exit passes and both refusal-census controls with their expected diagnostics. No software capability skips.
For app-local WARP setup, see the wrapped XMem lease fixture in
docs/experiments.md. The real writer and fence chain in #870 still needs a matched replay that reaches slot 86.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T18:57:22Z.
Review: COMMENTED
Review of head
2b87fcfc(code and fixture; Win2025 receipt follows separately).What I checked:
X2W_MESH86_WRITER_TRACEmust be a decimal ordinal (invalid or empty gives 0, off), one call per process, so logs stay bounded. With it off,trace_callstays 0 and the new branches inlist_execute_indirectdo nothing.mesh_xmem_mutexonly when the split path does not already hold it (locked), so no double lock. The copy history is a fixed 1024-entry ring, read newest first.note_mesh_xmem_writegainsslotandsource_kind. Both callers inlist_copy.inlare updated, with labels that match the source (upload, default-uav, uav-capable-buffer, buffer).startup_indirect_mesh_lease_warp_dual-traceruns the fixture at ordinals 2, 3, 4 and 6. It asserts the missing-writer refusal, two distinct writer submits matched to the DIRECT waits, and a separate refusal for each remap (root-srv-identity-changed,arguments-identity-changed). It guards the new log contract, and the refusal rows give it negative controls.X2W_MESH86_WRITER_TRACE. It follows #2377 and #2375, as the body says.Not blocking: the trace rows are plain log text, so a later wording change needs a matching test change. That is expected for this kind of fixture.
Commands run locally (Linux):
git diff --check origin/main...HEAD(clean),python3 tests/docs_links_check.py(pass),python3 tests/bidi_controls_check.py(pass). The check script is Windows/D3D12 only, so no mutation was run on Linux.The PR itself says the real writer and fence chain in #870 still needs a matched replay. I make no claim about game startup.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-25T19:09:10Z.
Independent Release verification of
44087b3c4d300a07b31e4c6b37240b02819047df.Windows 11 x64 build 26300.10075, MSVC 19.52.37029, RTX 4070 driver 621.24,
and in-box WARP 10.0.26100.10068. The fixture reported the D3D12 debug layer
enabled on both backends.
26/26 passed, including the CTest WARP trace and both expected refusal-census
controls. No skips. I also ran the same trace assertions on RTX 4070 by invoking
the fixture directly from the Release build directory:
root-srv-identity-changedat submission. 0/8 pixels changed.arguments-identity-changedat submission. 0/8 pixels changed.Three additional runs in
dualmode left the selector unset or set to3xand
4294967296. Each emitted zero trace rows and still rendered 8/8 redpixels in the ordered case.
This covers the public fixture on the RTX 4070 as well as WARP. The
saved-profile writer/fence trace in #870 remains a separate retest.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:10:58Z.
Win2025 WARP receipt for head
44087b3cafter updating with main. Targeted run on the tests this PR adds or changes; hardware variants skip on the WARP-only VM.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
44087b3c4d300a07b31e4c6b37240b02819047df:--preset dev):cmake --build --preset dev --target startup_indirect_draw_indexed xmem_shim d3d12_xs_shim -- -j 2):56.75s(configure4.05s)ctest --preset dev -R '^(startup_mesh86_srv_proof|startup_indirect_mesh_.*(warp|dual).*)$' --parallel 2 --no-tests=error --output-on-failure): 16/20 passed (29.10s:startup_indirect_mesh_warp1.86s,startup_indirect_mesh_amplified_warp1.42s,startup_indirect_mesh_console_warp4.02s,startup_indirect_mesh_xmem_arguments_warp1.93s,startup_indirect_mesh_xmem_arguments_skip_wait_warp1.35s,startup_indirect_mesh_create_result_warp0.22s,startup_indirect_mesh_request_warp1.92s,startup_mesh86_srv_proof2.75s,startup_indirect_mesh_lease_warp_dual-trace9.01s,startup_indirect_mesh_lease_warp_ordered_control3.68s,startup_indirect_mesh_cache_warp11.41s,startup_indirect_mesh_lease_warp_skip-wait2.68s,startup_indirect_mesh_lease_warp_dual4.15s,startup_indirect_mesh_lease_warp_dual-skip-srv3.18s,startup_indirect_mesh_lease_warp_dual-skip-argument2.80s,startup_indirect_mesh_lease_hardware_dual0.64s,startup_indirect_mesh_lease_hardware_dual-skip-srv0.34s,startup_indirect_mesh_lease_hardware_dual-skip-argument0.32s,startup_indirect_mesh_lease_warp_dual-init-only2.76s,startup_indirect_mesh_lease_hardware_dual-init-only0.37s); skipped (capability, not a pass):startup_indirect_mesh_lease_hardware_dual,startup_indirect_mesh_lease_hardware_dual-skip-srv,startup_indirect_mesh_lease_hardware_dual-skip-argument,startup_indirect_mesh_lease_hardware_dual-init-only/O2(--preset release):cmake --build --preset release --target startup_indirect_draw_indexed xmem_shim d3d12_xs_shim -- -j 2):80.01s(configure6.18s)ctest --preset release -R '^(startup_mesh86_srv_proof|startup_indirect_mesh_.*(warp|dual).*)$' --parallel 2 --no-tests=error --output-on-failure): 16/20 passed (5.24s:startup_indirect_mesh_warp0.25s,startup_indirect_mesh_console_warp0.22s,startup_indirect_mesh_amplified_warp0.10s,startup_indirect_mesh_xmem_arguments_skip_wait_warp0.13s,startup_indirect_mesh_xmem_arguments_warp0.23s,startup_indirect_mesh_create_result_warp0.06s,startup_indirect_mesh_request_warp0.07s,startup_mesh86_srv_proof0.68s,startup_indirect_mesh_lease_warp_dual-trace1.74s,startup_indirect_mesh_cache_warp1.55s,startup_indirect_mesh_lease_warp_ordered_control0.69s,startup_indirect_mesh_lease_warp_skip-wait0.60s,startup_indirect_mesh_lease_warp_dual0.82s,startup_indirect_mesh_lease_warp_dual-skip-srv0.65s,startup_indirect_mesh_lease_warp_dual-skip-argument0.67s,startup_indirect_mesh_lease_hardware_dual0.20s,startup_indirect_mesh_lease_warp_dual-init-only0.71s,startup_indirect_mesh_lease_hardware_dual-skip-srv0.19s,startup_indirect_mesh_lease_hardware_dual-skip-argument0.18s,startup_indirect_mesh_lease_hardware_dual-init-only0.18s); skipped (capability, not a pass):startup_indirect_mesh_lease_hardware_dual,startup_indirect_mesh_lease_hardware_dual-skip-srv,startup_indirect_mesh_lease_hardware_dual-skip-argument,startup_indirect_mesh_lease_hardware_dual-init-onlysccache: 12/173 hits; wall168.6sAI-assisted; commands listed were executed locally.