Repository navigation
Conversation
# Conflicts: # tests/startup_indirect_draw_indexed.cpp
This was referenced Nov 29, 2026
Leyukaka
marked this pull request as draft
November 29, 2026 19:52
lukaslw-lab
approved these changes
Nov 30, 2026
lukaslw-lab
left a comment
Contributor
There was a problem hiding this comment.
Reviewed 4991e866 (own commit over #3493 196adf8c) by reading the diff; not built or run. Draft PR.
Verdict: approve. The switch-off path is inert and the sidecar writer is careful. One SHOULD can follow before the profile tool reads .t57. No MUST.
- SHOULD skip the capture when the title's depth handle did not resolve.
list_targetsbinds no depth for a handle that maps to no descriptor (d3d12_xs_device.cpp:4480-4484) but still setstargets_bound(:4532), socapture_slot57_targetsrecordsdsv 0 writable 0, a tuple the title never bound. A reviewed profile built from it would drop the depth attachment. Adepth_unresolvedflag onPass, checked next tod3d12_draw.inl:1013, would keep runtime misses out. - NIT the fixture binds one RTV with one sample only. Multi-RTV order (
rtvs[i]copy), a sample-count mismatch refusal and the derived slot 55 "no tuple" rule are untested. A two-RTV observe would catch an order bug cheaply. - Checked, no finding:
- Switch off:
requested_mesh_variantstays empty, so neitherlist_targets:4533nor the capture does any work. The env lookup moved before therealcheck, as the PR body says. fixed_mesh_capture_variantis written and read underrequest_lock. The return value is built before the guard is released.bound_targets[i]cannot be null oncetargets_boundis set (:4464-4470).Pass{}resets the new fields per recording.- Writer: the per-variant mutex serialises read-modify-replace across processes, and
FreeLibraryWhenCallbackReturnspins the DLL. The 2048 B read limit is well above 8 tuples plusoverflow. A malformed file is left untouched. - The
publish_request_filerefactor keepspublish_shader_request's old result formove_flags == 0.
- Switch off:
Tests: startup_indirect_mesh57_targets_<backend> proves view formats (28/29/30 from typeless resources), dedupe, rebind, DSV writability, reuse across recordings after the request is released, and overflow counting. _off_ proves no .s57/.t57 is written. CI's pr filter (CMakePresets.json) does not include either name, so CI did not run them. Only the author's local 14/14 (WARP + hardware) covers this head.
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #3416
Stacked on #3493: until it merges, this PR also shows its commits. Only the last commit (4991e86) is new.
Why
A reviewed slot 57 profile needs the desktop render target formats, the DSV format and the sample count and quality. The creation capture written under
X2W_MESH57_CAPTURE_STATEdoes not contain them. The views bound when the indirect mesh call executes do.What
Under
X2W_MESH57_CAPTURE_STATEonly, a matching-root slot 57 indirect mesh call (placeholders included) records the bound attachments inreq_<16-digit-variant-hex>.t57, next to the.s57archive and with the same stem.One LF-terminated line per distinct tuple:
Example:
targets 1 29 dsv 55 writable 1 samples 1 0.0with writable0means no depth view is bound.overflow <observations>line that counts observations outside the retained set, repeats of an unretained tuple included.Switch off: no work, allocation, file I/O or new lock. One environment lookup per indirect mesh call with a placeholder pipeline remains.
Switch on: the draw path adds no lock and does not wait for disk. It queues a value copy (variant, formats, samples, paths) to a background writer, capped at 256 outstanding items. A declined submit is retried on a later draw. The file is replaced atomically. Writes are best effort: a saturated queue or process exit can leave observations unpublished.
docs/startup-runtime.mddocuments the switch and the sidecar.Tests
Two new CTests per backend,
startup_indirect_mesh57_targets_<backend>andstartup_indirect_mesh57_targets_off_<backend>, reuse the existing fixture binary. They cover duplicate binds, a format change on one recording, typeless color and depth resources with typed views, DSV writability, capture across recordings, overflow and the switch-off case.14/14 passed, no skips, on WARP and on hardware.
Mutations, each built and run against the two new WARP tests, all killed:
overflow 1writable 0instead of1Not covered
The profile tool does not read
.t57yet. That is a follow-up.