runtime: correlate and prove a slot 86 Mesh draw through presentation #3727
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3727"
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 lambirou on 2026-12-01T11:34:58Z.
Problem
The slot 86 Mesh path could create a desktop PSO and record a DispatchMesh, but there was no source-built proof that one selected draw reaches the target before composition and appears in the presented frame, with a skipped-draw control and a correlation across record, close and submission.
Change
X2W_MESH86_PRESENT_TRACE=1, naming the list pointer, recording id, published mesh key and group counts. The default path is unchanged when the switch is off.Tests
ctest --preset release --no-tests=error -R '^startup_mesh86_present_' -V— 2/2 pass on WARP and RX 9060 XT (driver 32.0.32029.2010).Limits
This is a source-built fixture; it does not establish full-game startup or title scene output. The sampled root SRV shape is reported, not fixed here (the #3639/#3640 work covers it).
Refs #3641, #3541, #3638
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-02T14:45:51Z.
Review: COMMENTED
Reviewed
b7d2a01f; read the recording/submission correlation and the presentation fixture, not built here.Verdict: approve. The trace is opt-in, bounded to 48 rows per stage, and records the same id at indirect-record time, list close, reset and queue submission. The argument record is read only when its title bytes are readable, so an unreadable record reports
groups_known=0instead of faulting.mesh86_trace_id()is documented as "call under allocator_lock"; the record path does, butqueue_executereadsstate.mesh86_trace_recordingwithout a visible lock on the same field. If the list cannot be submitted concurrently with a record/reset, add that invariant to the comment; otherwise the field needs the same lock.first_callscounter, so the 48-row bound is shared by every list. That is intentional for log volume, but the comment should say it is process-wide rather than per recording.X2W_MESH86_PRESENT_TRACEorX2W_D3D12_TRACE_DIRECT_MESHis set; reset logs an unsubmitted recording and clears it; close and submit log the same id; the fixture proves the target and presented-frame correlation.The PR remains stacked on the Mesh86 bases and is currently
DIRTY; rebase before merge.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T16:18:13Z.
Review: COMMENTED
I trial-merged
db6ee6bawith main6e3a181blocally. The sole conflict was CMakePresets.json; keeping main's pr filter and adding startup_mesh86_present_warp resolved it. Independent MSVC Debug CTest^startup_mesh86_present_(warp|hardware)$passed 2/2, including skipped-draw/refusal controls and target/present readback. The hardware leg used RTX 4060 Laptop (32.0.16.1656), debug layer enabled. Please sync this PR with that preset resolution so required CI can validate the new head.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T18:40:53Z.
Review: APPROVED
Re-reviewed
851dd366. The preset conflict resolution keeps the main checks and registers the new presentation test. Independent Windows 11 build 26300 / MSVC Debugctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^startup_mesh86_present_(warp|hardware)$'passed 2/2 on inbox WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656, with the D3D12 debug layer enabled. The source-built fixture checks both target and composed-frame readback, list recording correlation, the skipped-draw control and the root-SRV refusal.