decomp(jpeg): refine two grouped edge chroma declarations #1090

Merged
coah80 merged 1 commits from agent/bittle/jpeg-edge-triples-final into main 2026-10-03 10:08:34 +00:00
coah80 commented 2026-10-03 10:07:29 +00:00 (Migrated from github.com)

Small source change

In two edge converters, split the existing uninitialized redOffset, greenOffset, blueOffset declaration and retain red/blue/green order. Each same-order split was proved whole-object/full-report neutral before experimentation. No initializer, expression, assignment, type, scope, helper, data or linking change.

  • RGB565411edge: 95.37736% →95.42453%, 106/106 instructions, differences62 →61
  • RGBA420edge: 87.458336% →87.5%, 120/120 instructions, coarse score(12,77) unchanged

These are partial gains, not exact-match claims. Exactly six ordinary compiled permutations per function were officially scored. Four orders tie for best; the first minimal red/blue/green order is retained. Historical wider searches did not establish this isolated six-order current-context coverage; possible overlap is disclosed.

Independent combined parent verification on17130b4b

  • Only these two declaration replacements differ in production source
  • All12 sibling instruction streams in each unit unchanged; RGB565 remains7/13 exact, RGBA8 remains2/13 exact; matched code/data/link totals preserved
  • Full1027-unit comparison has no regressions; only these two functions improve
  • All allocated objects compared: only the two owned text sections change, each preserving24 relocations and all nontext data
  • Parent independently regenerated official reports for all12 saved permutation objects and confirmed both maxima
  • Parent freshly built the combined candidate and reran separate original/current-main/candidate models:12,689 RGB565411edge vectors /38,067 executions and12,039 RGBA420edge vectors /36,117 executions. Includes edge dimensions, saturation, row parity and contained aligned input/output overlaps; every106/120 instruction covered in all three respective objects. Output/guard checks pass. Bounded interpreter checks, not formal equivalence or Wii runtime testing
  • Workers additionally passed the repository9,456-case differential suite for each candidate
  • Both pools empty/identical; combined literal audit24 functions /0 arguments, no candidates/errors; two pre-existing unequal-size setters skipped
  • Full default progress/43U/ok, worktree and diff gates pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d

Uploaded treee0e5c320004d469f309c82d79d15264a9c94f83c equals independently tested combined tree. Separate evidence logs retain coverage and rebase details. No merge or auto-merge requested.

Note

Split grouped edge chroma declarations in JPEG converters to red, blue, green order

  • Splits the grouped declarations of the three chroma-derived offset locals in TMCJPEGDEC_converterYUV411toRGB565edge and TMCJPEGDEC_converterYUV420toRGBA8edge, and reorders them from red, green, blue to red, blue, green
  • No expressions, assignments, types, scopes, or output-store logic change; this matches the original code layout found by the declaration-order search
  • Adds experiment records in allhands-jpeg-rgb411edge-triple.attempts.md and rgba420edge-offset-orders.attempts.md covering the six tested permutations, build and comparison gates, and validation hashes

Macroscope summarized 1a02886.

## Small source change In two edge converters, split the existing uninitialized `redOffset, greenOffset, blueOffset` declaration and retain red/blue/green order. Each same-order split was proved whole-object/full-report neutral before experimentation. No initializer, expression, assignment, type, scope, helper, data or linking change. - RGB565411edge: 95.37736% →95.42453%, 106/106 instructions, differences62 →61 - RGBA420edge: 87.458336% →87.5%, 120/120 instructions, coarse score(12,77) unchanged These are partial gains, not exact-match claims. Exactly six ordinary compiled permutations per function were officially scored. Four orders tie for best; the first minimal red/blue/green order is retained. Historical wider searches did not establish this isolated six-order current-context coverage; possible overlap is disclosed. ## Independent combined parent verification on17130b4b - Only these two declaration replacements differ in production source - All12 sibling instruction streams in each unit unchanged; RGB565 remains7/13 exact, RGBA8 remains2/13 exact; matched code/data/link totals preserved - Full1027-unit comparison has no regressions; only these two functions improve - All allocated objects compared: only the two owned text sections change, each preserving24 relocations and all nontext data - Parent independently regenerated official reports for all12 saved permutation objects and confirmed both maxima - Parent freshly built the combined candidate and reran separate original/current-main/candidate models:12,689 RGB565411edge vectors /38,067 executions and12,039 RGBA420edge vectors /36,117 executions. Includes edge dimensions, saturation, row parity and contained aligned input/output overlaps; every106/120 instruction covered in all three respective objects. Output/guard checks pass. Bounded interpreter checks, not formal equivalence or Wii runtime testing - Workers additionally passed the repository9,456-case differential suite for each candidate - Both pools empty/identical; combined literal audit24 functions /0 arguments, no candidates/errors; two pre-existing unequal-size setters skipped - Full default progress/43U/ok, worktree and diff gates pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d Uploaded treee0e5c320004d469f309c82d79d15264a9c94f83c equals independently tested combined tree. Separate evidence logs retain coverage and rebase details. 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] > ### Split grouped edge chroma declarations in JPEG converters to red, blue, green order > - Splits the grouped declarations of the three chroma-derived offset locals in `TMCJPEGDEC_converterYUV411toRGB565edge` and `TMCJPEGDEC_converterYUV420toRGBA8edge`, and reorders them from red, green, blue to red, blue, green > - No expressions, assignments, types, scopes, or output-store logic change; this matches the original code layout found by the declaration-order search > - Adds experiment records in [allhands-jpeg-rgb411edge-triple.attempts.md](https://github.com/coah80/wii-ipl/pull/1090/files#diff-c1a4ddf87df9cfea59f2ee6946bf03fcf542e1a2953349efe6ee80ffb9e0de9d) and [rgba420edge-offset-orders.attempts.md](https://github.com/coah80/wii-ipl/pull/1090/files#diff-93d69fb29a6ff0557cf9b1e053ac9a8571ee01d3d8c81a0f880ea48c7de28e93) covering the six tested permutations, build and comparison gates, and validation hashes > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 1a02886.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 10:08:32 +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.