Repository navigation
Conversation
|
Note: I couldn't run |
# Conflicts: # dm/gfx/nvn/nvn_mtl.m
0762d88 to
9bd184a
Compare
|
Rebased onto main (04811a6); no changes besides conflict resolution (the g_red_once size line next to obj_is_tex). |
…rmsToProtocol: the answer is kept per class Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Texture checks without conformsToProtocol: the answer is kept per class tex_mtl_'s stale sRGB / linear view check asked conformsToProtocol:MTLTexture of every serial-table object; it walks the class's protocol lists. obj_is_tex keeps the answer for the last 8 classes (the serial table holds NvPkg and a few texture classes). Also mtl_tex_gpu_owned and tex_upgrade's holder check.
9bd184a to
e7f94c2
Compare
|
Rebased onto main (2e6edda), retitled to the Checked on this commit (M4 Max): host build, |
|
Now that this Mac has the chain lock's compiler (Xcode 27.2), regress.py check (full): PASSBaseline
BOTW
|
Texture resolution repeatedly walks the same Objective-C protocol lists before checking for a stale sRGB or linear view. Store the class and conformance result in a small thread-local cache, and use the same lookup for texture upgrades and GPU ownership checks. The cache holds class identities without changing the lifetime of the objects checked. The focused alias and ownership tests pass, as do the iPhone SDK compile and documentation checks. On an M6, 800,000 comparisons across eight workers matched the direct query, and the median warm lookup took 3.2 ns against 74 ns for the direct query. Breath of the Wild 1.9.0 passes the quick route with pipeline archives off on both hosts. Co-authored-by: Xipz <60103178+Xipzer@users.noreply.github.com>
|
Landed on The revised cache keeps eight class/result pairs per thread. Lookup misses still use On an M6, 800,000 comparisons across eight workers matched the direct query, including nil and class eviction. The isolated median was 74 ns per direct query and 3.2 ns per warm-cache lookup. Breath of the Wild 1.9.0 passed the quick regression against The sRGB alias, texture upgrade, and dirty-upload ownership tests passed again after rebase, along with the iPhone SDK compile and docs checks. The iPhone check was compile-only. |
tex_mtl_'s stale sRGB / linear view check (#1069's follow-up) callsconformsToProtocol:@protocol(MTLTexture)on every serial-table object it resolves. That walks the class's protocol lists. In Breath of the Wild, at about 3,000 calls a frame, it was a third oftex_mtl_'s time (44 of 130 samples) and 1.5% of the submit thread on the Mac.obj_is_texkeeps the answer for the last 8 classes seen. The serial table only holdsNvPkgand a few texture classes, so after the first few calls it is oneobject_getClassand a compare. A racing reader recomputes at worst. Three other per-call checks use it too:mtl_tex_gpu_owned, the GPU-owned test andtex_upgrade's holder check.Graphics tests pass.
t_nvnaborts with the BotW profile onmainas well (present snapshots on,up_owner_checkfrom the present path), and passes withDM_PRESENT_SNAP=0.