Repository navigation
Conversation
v0lumehi
force-pushed
the
harness-usage
branch
2 times, most recently
from
October 26, 2026 19:21
273aa98 to
b0f350c
Compare
This was referenced Oct 26, 2026
v0lumehi
force-pushed
the
harness-usage
branch
from
October 26, 2026 19:42
b0f350c to
7b14259
Compare
…ds#272) A game's usage manifest, dm/games/<id>/usage.tsv, written by its owner with regress.py usage: the features of its translated shaders (stages, binding kinds, image and buffer atomics with or without a used result, transform feedback, layer and integer outputs, translator notes, texture types) and, from one run of its smoke route with DM_HLECOUNT and the NVN call rows, the NVN functions, HLE functions and SVCs it called, its present path and its profile keys. Names and counts only. regress.py impact <base>..<head> maps the functions around the changed lines through the host's callers (a scanner: NVN(...), HLE(...) and {"symbol", fn} tables as roots, static functions kept to their file) and the rules of dm/tools/impact_map.tsv to manifest rows, and lists the games that use them, those reached only through a broad rule, and the profiles without a manifest. Manifests for Breath of the Wild, Tears of the Kingdom and Hades (main 89744da). On c3a0880 (image atomics, seedds#178) it names neither Zelda for image atomics (they have none) but both for the bindless and driver-read changes; Hades is not affected. On seedds#135 (the prepare step) it names both Zeldas for pipeline_prepare and Hades only through the front end's broad rule.
v0lumehi
force-pushed
the
harness-usage
branch
from
October 26, 2026 23:47
7b14259 to
e28cfc0
Compare
seedds
added a commit
that referenced
this pull request
Oct 27, 2026
From PR #329 (stacked on #328): a game's usage manifest, dm/games/<id>/usage.tsv, written by its owner with regress.py usage (shader features of its chain build, and the NVN / HLE functions, SVCs and present path of one smoke-route run; names and counts only), and regress.py impact <base>..<head>, which maps the functions around the changed lines through the host's callers and the rules of dm/tools/impact_map.tsv to manifest rows. Manifests for Breath of the Wild, Tears of the Kingdom and Hades. Fixed on top of the PR: - impact checked the head out as a git worktree under the harness root, so it stopped (PermissionError on /Volumes/NX) for exactly the contributors it is for, who have no games and no harness root. The call graph is now read from the git object store at the head revision, and the report is printed and written only to --out or an existing harness root. - A hunk mapped only to the function at its first line: a hunk spanning two functions named one. Every added line is mapped now, and a pure deletion maps to the function around it (it was moved one line up). - Functions defined in headers were not in the call graph: the frame step (nvn_fstep.h, static inline, called from nvnQueuePresentTexture) reached no entry point, so 4acde72 named no game. Headers are scanned, and their functions are visible to every file. 4acde72 now names both Zeldas through nvnQueuePresentTexture. Co-authored-by: v0lumehi <aljic.zijad@gmail.com>
Owner
|
Thanks, merged as b3f97ef (rebased on main, one commit, you as co-author). Confirmed first: the tests pass on main + this PR (298 with the new ones), and the three impact runs in the description reproduce. Three bugs fixed on top:
|
Know-It-All-Brother
pushed a commit
to Know-It-All-Brother/nxnative
that referenced
this pull request
Nov 9, 2026
From PR seedds#329 (stacked on seedds#328): a game's usage manifest, dm/games/<id>/usage.tsv, written by its owner with regress.py usage (shader features of its chain build, and the NVN / HLE functions, SVCs and present path of one smoke-route run; names and counts only), and regress.py impact <base>..<head>, which maps the functions around the changed lines through the host's callers and the rules of dm/tools/impact_map.tsv to manifest rows. Manifests for Breath of the Wild, Tears of the Kingdom and Hades. Fixed on top of the PR: - impact checked the head out as a git worktree under the harness root, so it stopped (PermissionError on /Volumes/NX) for exactly the contributors it is for, who have no games and no harness root. The call graph is now read from the git object store at the head revision, and the report is printed and written only to --out or an existing harness root. - A hunk mapped only to the function at its first line: a hunk spanning two functions named one. Every added line is mapped now, and a pure deletion maps to the function around it (it was moved one line up). - Functions defined in headers were not in the call graph: the frame step (nvn_fstep.h, static inline, called from nvnQueuePresentTexture) reached no entry point, so 57eae66 named no game. Headers are scanned, and their functions are visible to every file. 57eae66 now names both Zeldas through nvnQueuePresentTexture. Co-authored-by: v0lumehi <aljic.zijad@gmail.com>
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.
Stacked on #328 (all commits but the last are that PR; review the last one, "regress.py usage / impact"). Roadmap: #313, "Usage manifests".
regress.py checkcovers the games on your own Mac. For the others, the question before a chain or host change is which games it can reach at all. This adds two commands:regress.py usage --games <id> --write, run once by someone who owns the game: writesdm/games/<id>/usage.tsv, its usage manifest. From the game's translated shaders: stages, binding kinds, image and buffer atomics (with or without a used result), transform feedback, layer and integer outputs, the translator's notes, texture types. From one quick run of its smoke route withDM_HLECOUNTand the NVN call rows: the NVN functions, HLE functions and SVCs it called, its present path, its profile keys. Names and counts only, no game data.regress.py impact <base>..<head>(or one commit): maps the change to manifest rows and lists the games that use them, those reached only through a broad rule (every game of the API), and the profiles without a manifest as unknown. The mapping is the functions around the changed lines, followed through the host's callers to the NVN entry points and HLE functions that reach them (dm/tools/usage.py, a scanner overNVN(...),HLE(...)and symbol tables; static functions stay within their file), plus the rules ofdm/tools/impact_map.tsvfor what a call graph cannot see (a chain tool to the shader features it emits, the prepare step to the games that run it). A changed file no rule maps is listed, andtest_usage.pychecks that every rule matches a file.Manifests for Breath of the Wild, Tears of the Kingdom and Hades (built on 89744da) come with it.
What it says on past changes
On c3a0880 the two games it broke are "unknown": no one with those games has written a manifest yet. With one each, the same run would have named them for
shader:image_atomic*, which is the point of asking owners to runusageonce.Limits: the call-graph scan is textual and over-approximates (a change in
nvn_mtl.mreaches the present path of every NVN game through shared helpers); the rules are coarse by design and say why for every match. It tells you whom to ask, not whether something broke: that staysregress.py checkon the games you have.docs/agents/06-dev-loop.mdgets a section on it and the pre-PR list addsregress.py impact main..HEAD.Checked:
dm/tools/tests(277 tests, newtest_usage.py),lint_python.py(no new findings), the three impact runs above on an M2 Max, CI on the fork.