Repository navigation
Bound explicit-frame render-pass snapshots - #1178
oliverames wants to merge 3 commits into
Conversation
|
Head ad984ce4 fixes the clang-tidy failure this PR caused. The bounded snapshot code in clang-tidy run 41840087538 on ad984ce4 now reports baseline 240 and no |
ad984ce to
6b35540
Compare
|
@seedds Flagging from my open-PR index of my 32 open PRs here: this one stays draft pending exact-head device coverage and hosted checks. The description above is still the full picture, nothing new from me. Happy to rebase, split or retitle whenever review suits. |
|
@seedds Marking this ready for review now, so it stops waiting in draft on me. The remaining item from the description is still open: exact-head device coverage and hosted checks. It can carry on alongside a review instead of ahead of it. The description stays the source of truth; happy to rebase, split or retitle whenever review suits. |
b44f4f0 to
2d34096
Compare
|
Rebased onto current main: one conflict in dm/gfx/tests/Makefile (kept main's new test targets plus t_texsnap). make GAME=040074A01BF12000 check_t_texsnap: 16 checks, 0 failed; test_docs.py OK. |
916d304 to
4c16477
Compare
…assedToNonnull in nvn_mtl.m (15 to 14)
29f5fbb to
599f470
Compare
|
@seedds I merged current main into this branch in cd69dee. Main removed the |
What and why
Variable pass numbers made it easy to miss DKB's AA outputs when selecting
DM_NVN_TEXSNAPindices. This adds opt-inDM_NVN_TEXSNAP=allfor one explicitly selected dump frame, with at most 256 snapshots and 512 MiB of retained texture allocations. Copies use the existing ordered Metal 4 pass-end stream. Normal rendering stays unchanged when capture is disabled.Each copy records its frame, absolute pass, texture serial, level, format, dimensions and allocation. Unsupported formats, layered/nonzero-slice passes, discarded stores and allocation failures are reported as skips. Budget exhaustion is reported as truncation. A missed requested frame is explicitly incomplete, and a new selected frame resets the budget. These are pass outputs, not proof of the exact textures sampled by a draw.
@seedds, this supports the Switch 2 games running on iPhone investigation. The diagnostic may help other titles that reuse render targets within a frame. It does not establish a DKB shimmer fix, sustained warm stability, or complete draw-input equivalence. Exact-head device coverage and hosted checks are still pending. No game assets or shader sources are included.
Checked
Tests: the focused Metal-validation fixture passes 16 checks in RGBA8 and 16 in RG11B10Float, including GPU readback after a later overwrite, byte/count limits and repeated-frame budget reset. The absent-frame summary was inspected. 11 documentation tests, the environment-switch test and
git diff --checkpass. Scope is the opt-in snapshot path. To reproduce:Games run, with title ID and version: DKB (title ID and version not stated; the fixture command uses
GAME=040074A01BF12000). With this patch adapted onto the existing combined DKB build, the physical iPhone completed 70 seconds of gameplay and preserved the pre-AA color plus edge, weight and resolve pass outputs at 1676×943. All four raw files transferred with validated headers and lengths. The capture logged 91 copies, 47 skips, 0 truncations and 333,300,096 retained bytes, and correctly marked the overall history incomplete. The drawable endpoints remained 2346×1320. This was an adapted combined build, not this exact branch head. Phone executable SHA-256:b1c5c25742e00fcddfe827fb10632f790e43757f4367be74201fe5b8097c9c43.Devices and OS: iPhone 17 Pro Max (iOS version not stated). The fixture's Mac model and macOS version are not stated.
For a change to the shader chain, the host or a tool that every game uses, the
scripts/regress.py check --gamesreport: not stated, beyond "broad five-game regressions were not run."Measurements before and after: not stated. The only memory figure is the 333,300,096 retained bytes of the phone capture, against the 512 MiB cap.
Front ends
None: no front end has to act on this.
Docs
docs/reference/<subsystem>.mdentry, andpython3 dm/tools/docs_symptoms.pywas run (the symptom index). The diff changesdocs/agents/04-graphics.mdanddocs/env_switches.tsv, not a game note or adocs/referenceentry, and the description does not say the symptom index was run.dmsh_chain.py --headerwas run anddm/gfx/nvn/dmsh_chain.his part of the change. Not applicable: no chain tool changed.Nov 14: rebased onto main
bee218d97(head599f470d), with no merge commit.docs/env_switches.tsvanddm/tools/lint_c_baseline.tsvconflicted (this PR'sNullablePassedToNonnullcount kept, main's removedRetainCountrow left out), and clang-tidy onnvn_mtl.mandt_texsnap.mhas no pair above or below the baseline.t_texsnappasses 16 checks in RGBA8 and 16 withTEXSNAP_TEST_HDR=1, andtest_lint_cand the documentation tests pass. Earlier: rebased onto main6c676444on 2026-11-09 (head4c164773).t_texsnap's rule now sits aftercheck_t_readbackindm/gfx/tests/Makefileinstead of at the end of the file, where every new test on main conflicted with it. After the rebaset_texsnappasses 16 checks in RGBA8 and 16 withTEXSNAP_TEST_HDR=1, andtest_docs.py(6 tests, where the Tests line above counts 11 from the earlier base) andtest_env_switches.pypass.