decomp(jpeg): retain officially scored RGB565411 intermediate #1089

Merged
coah80 merged 1 commits from agent/bittle/rgb411-observed-final into main 2026-10-03 09:50:15 +00:00
coah80 commented 2026-10-03 09:49:10 +00:00 (Migrated from github.com)

Scope and result

Reorders only existing uninitialized leading declarations in TMCJPEGDEC_converterYUV411toRGB565. Preserves u8 luminance, all other types, initializers, expressions, assignments, scopes, helpers and linking flags.

Function fuzzy 90.599075% →90.89862%; unit96.805305% →96.84735%. Still217/217 instructions, raw differences144 →142. Honest partial improvement, not exact.

Explicit recorded repeat and selection

A previous1000-evaluation run was correctly rejected because the tool-final source scored90.18433%. It had not recorded intermediate official scores. After AES demonstrated the structural/fuzzy objective mismatch, one explicitly repeated1000-cap run was authorized to measure every compiled snapshot; no new order-coverage claim is made.

The unchanged official declsearch used an ordinary-Ninja recorder that never skipped compilation. It recorded1000 evaluations plus one final restoration, all actual successful compilations with source stability and source/object hashes; no failures or no-work calls. Official objdiff scored all1001 frozen snapshots using a private copy of project settings, original target and candidate object paths, without deduplication or live artifact swapping. Batch aggregate totals were not used.

Snapshot0442 is the best admissible measured order at90.89862%, auxiliary score(21,142). The tool-final structural choice(17,138) remains lower official fuzzy at90.18433%. Search hit its cap. No global/permutation-space or retained-order local-optimum claim; no continuation.

Independent parent verification on180e620c

  • Parent rechecked all snapshot source/object hashes, real build records and exact/sibling/data gates, and independently regenerated their official reports in a separate private project; same winner
  • Selected source freshly rebuilt to the saved object; full1027-unit report has no regressions and only this function improves
  • All12 sibling instruction streams preserved; seven exact functions, matched code2648/6184 and empty data unchanged; allocated-object comparison changes only owned text, preserving24 relocations
  • Parent independently reran original/current-main/candidate scalar pixel model:7469 vectors /22407 executions, including6400 saturation vectors and621 contained aligned input/output overlaps. All217 instructions covered in each; outputs/guards pass. Bounded interpreter checks, not formal equivalence or Wii runtime testing
  • Worker additionally passed9456-case repository differential audit
  • Pool empty/identical; literal audit12 functions /0 arguments, no candidates/errors; pre-existing unequal-size setter skipped
  • Full default progress/43U/ok, worktree and diff gates pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d

Uploaded tree68f5e8b88bd5f69fcfa80a23fe584feb1079d919 equals parent-tested tree. Detailed recorder, selection and coverage evidence included without original binary material. No merge or auto-merge requested.

Note

Retain declaration order for YUV411-to-RGB565 converter in JPEG decoder

Reorders local declarations in TMCJPEGDEC_converterYUV411toRGB565 — cb now follows chromaSkip and greenOffset now precedes blueOffset — matching the officially scored snapshot from a 1,000-evaluation declaration-order search. Adds a report at allhands-jpeg-rgb411-fuzzy-observed.attempts.md documenting the search, snapshot selection (0442), and scoring results. Logic in Texture_MCUtoRGB565.c is otherwise unchanged.

Macroscope summarized 32b5d46.

## Scope and result Reorders only existing uninitialized leading declarations in TMCJPEGDEC_converterYUV411toRGB565. Preserves u8 luminance, all other types, initializers, expressions, assignments, scopes, helpers and linking flags. Function fuzzy 90.599075% →90.89862%; unit96.805305% →96.84735%. Still217/217 instructions, raw differences144 →142. Honest partial improvement, not exact. ## Explicit recorded repeat and selection A previous1000-evaluation run was correctly rejected because the tool-final source scored90.18433%. It had not recorded intermediate official scores. After AES demonstrated the structural/fuzzy objective mismatch, one explicitly repeated1000-cap run was authorized to measure every compiled snapshot; no new order-coverage claim is made. The unchanged official declsearch used an ordinary-Ninja recorder that never skipped compilation. It recorded1000 evaluations plus one final restoration, all actual successful compilations with source stability and source/object hashes; no failures or no-work calls. Official objdiff scored all1001 frozen snapshots using a private copy of project settings, original target and candidate object paths, without deduplication or live artifact swapping. Batch aggregate totals were not used. Snapshot0442 is the best admissible measured order at90.89862%, auxiliary score(21,142). The tool-final structural choice(17,138) remains lower official fuzzy at90.18433%. Search hit its cap. No global/permutation-space or retained-order local-optimum claim; no continuation. ## Independent parent verification on180e620c - Parent rechecked all snapshot source/object hashes, real build records and exact/sibling/data gates, and independently regenerated their official reports in a separate private project; same winner - Selected source freshly rebuilt to the saved object; full1027-unit report has no regressions and only this function improves - All12 sibling instruction streams preserved; seven exact functions, matched code2648/6184 and empty data unchanged; allocated-object comparison changes only owned text, preserving24 relocations - Parent independently reran original/current-main/candidate scalar pixel model:7469 vectors /22407 executions, including6400 saturation vectors and621 contained aligned input/output overlaps. All217 instructions covered in each; outputs/guards pass. Bounded interpreter checks, not formal equivalence or Wii runtime testing - Worker additionally passed9456-case repository differential audit - Pool empty/identical; literal audit12 functions /0 arguments, no candidates/errors; pre-existing unequal-size setter skipped - Full default progress/43U/ok, worktree and diff gates pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d Uploaded tree68f5e8b88bd5f69fcfa80a23fe584feb1079d919 equals parent-tested tree. Detailed recorder, selection and coverage evidence included without original binary material. No merge or auto-merge requested. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Retain declaration order for YUV411-to-RGB565 converter in JPEG decoder > Reorders local declarations in `TMCJPEGDEC_converterYUV411toRGB565` — `cb` now follows `chromaSkip` and `greenOffset` now precedes `blueOffset` — matching the officially scored snapshot from a 1,000-evaluation declaration-order search. Adds a report at [allhands-jpeg-rgb411-fuzzy-observed.attempts.md](https://github.com/coah80/wii-ipl/pull/1089/files#diff-25f7bcf2bbcf38ccb2a55fc98aeb6ac2e4727b95618699879f29884b799e3bac) documenting the search, snapshot selection (0442), and scoring results. Logic in [Texture_MCUtoRGB565.c](https://github.com/coah80/wii-ipl/pull/1089/files#diff-5c9e5cd4d235724c9e4882611e36ba794e9821ede7e7396a48272a942676ee86) is otherwise unchanged. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 32b5d46.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 09:50:13 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.