feat(libSceFreeTypeOt): restore outline bitmap forwarding #20047

Merged
THEMANnt merged 1 commit from upstream-pr/20047 into main 2026-11-15 20:23:26 +00:00
THEMANnt commented 2026-11-14 13:46:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-11-14T13:46:33Z.


What

Restore FT_Outline_Get_Bitmap forwarding from #19411 after the revert in #19762. Keep 4RRjK-Wd1lU exported by libSceFreeTypeOt and call the existing bitmap adapter through FreeTypeOutlineGetBitmap_nid_no_patch. This prevents the patched ELF import from resolving back to the Ot export. The rasterization stays in libSceFreeType.

RiverWhy and kaiffeetasse traced the self-binding in #19762. The bitmap work currently shared by #19410 and #19415 moves here. Those two branches have follow-up revisions prepared for after this lands. #13730 handles other instances of the same Linux problem.

Tested

On ac9ac0ef09, guest_freetype_outline_bitmap, guest_freetype_ot, and guest_freetype_ot_patched each passed three consecutive runs on Ubuntu 24.04.5 (GCC 13.3, Ninja, Release, WSL2) and Windows x64 (GCC 15.2, Ninja, Release). The Ot test compares rendered pixels with native FreeType. The original forwarding timed out at 20.02 s on Linux with the same test. Restoring the fix passed in 0.01 s. Linux nm -D and Windows objdump -p show the patched Ot module defines 4RRjK-Wd1lU. The Linux binary has no import of that NID. Conventions and git diff --check passed. The overlap checker flagged shared files on eight branches; manual inspection found bitmap implementation overlap only in #19410 and #19415.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5311846822 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20047). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-11-14T13:46:33Z. --- ### What Restore `FT_Outline_Get_Bitmap` forwarding from #19411 after the revert in #19762. Keep `4RRjK-Wd1lU` exported by libSceFreeTypeOt and call the existing bitmap adapter through `FreeTypeOutlineGetBitmap_nid_no_patch`. This prevents the patched ELF import from resolving back to the Ot export. The rasterization stays in libSceFreeType. RiverWhy and kaiffeetasse traced the self-binding in #19762. The bitmap work currently shared by #19410 and #19415 moves here. Those two branches have follow-up revisions prepared for after this lands. #13730 handles other instances of the same Linux problem. ### Tested On `ac9ac0ef09`, `guest_freetype_outline_bitmap`, `guest_freetype_ot`, and `guest_freetype_ot_patched` each passed three consecutive runs on Ubuntu 24.04.5 (GCC 13.3, Ninja, Release, WSL2) and Windows x64 (GCC 15.2, Ninja, Release). The Ot test compares rendered pixels with native FreeType. The original forwarding timed out at 20.02 s on Linux with the same test. Restoring the fix passed in 0.01 s. Linux `nm -D` and Windows `objdump -p` show the patched Ot module defines `4RRjK-Wd1lU`. The Linux binary has no import of that NID. Conventions and `git diff --check` passed. The overlap checker flagged shared files on eight branches; manual inspection found bitmap implementation overlap only in #19410 and #19415. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
MarcZX10 commented 2026-11-14 14:17:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T14:17:02Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this; the change restores typed outline bitmap forwarding through the shared adapter and adds coverage for the Ot export.

What I ran

Reviewed head ac9ac0ef09643c20d19328c0e897a57da5f2cd49. I read all five changed files and the prepared description, commit list, manifest, and diff through repo_read.py. I did not run commands or tests; the test results in the description are author-reported.

Results

Check Result Note
Diff and changed code review passed All five changed files read
Tests and build not run Author reports Linux and Windows test runs
Console behavior not run Not measured on console

Findings

Blocking

None.

Non-blocking

None.

Not verified

The claimed test runs, binary export inspection, conventions check, and git diff --check were not independently verified. Console runtime behavior was not tested. All files marked reviewed in the manifest were read; no changed files were excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5904840399 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20047#pullrequestreview-5904840399). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T14:17:02Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this; the change restores typed outline bitmap forwarding through the shared adapter and adds coverage for the Ot export. ## What I ran Reviewed head `ac9ac0ef09643c20d19328c0e897a57da5f2cd49`. I read all five changed files and the prepared description, commit list, manifest, and diff through `repo_read.py`. I did not run commands or tests; the test results in the description are author-reported. ## Results | Check | Result | Note | | --- | --- | --- | | Diff and changed code review | passed | All five changed files read | | Tests and build | not run | Author reports Linux and Windows test runs | | Console behavior | not run | Not measured on console | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The claimed test runs, binary export inspection, conventions check, and `git diff --check` were not independently verified. Console runtime behavior was not tested. All files marked reviewed in the manifest were read; no changed files were excluded. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-15 19:20:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T19:20:11Z.

Review: COMMENTED


Reviewed — comments

This review covers head 2afc9ecb90; no blocking defects were verified, but host tests and the console provider were not verified.

What I ran

Read the prepared diff and all five changed files listed as reviewed in the manifest using repo_read.py. No commands or tests were run.

Results

Check Result Note
Diff and changed files passed All five reviewed files read
Tests not run Test outcomes in the description are author reported
Console behavior not run Provider remains unmeasured

Findings

Blocking

None.

Non-blocking

  • The added test exercises positive pitch in gray and mono modes, but not negative pitch or extreme pitch/row dimensions. Consider covering those bitmap layout cases to guard the adapter’s buffer-size calculation at core/libs/prx/libSceFreeType/src/OutlineBitmap.cpp:41.

Not verified

  • No build or tests were run; reported Ubuntu and Windows results are author reported.
  • Console provider behavior was not measured.
  • All five files listed under reviewed in manifest.json were read. No changed files were excluded by the manifest.

To get this to a good state

Nothing is required. Optional: add bitmap layout coverage for negative pitch and large dimensions.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5912415731 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20047#pullrequestreview-5912415731). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T19:20:11Z. **Review:** COMMENTED --- # Reviewed — comments This review covers head 2afc9ecb902f71f5e226f6c5c26c1d4e0c7cbd11; no blocking defects were verified, but host tests and the console provider were not verified. ## What I ran Read the prepared diff and all five changed files listed as reviewed in the manifest using `repo_read.py`. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and changed files | passed | All five reviewed files read | | Tests | not run | Test outcomes in the description are author reported | | Console behavior | not run | Provider remains unmeasured | ## Findings ### Blocking None. ### Non-blocking - The added test exercises positive pitch in gray and mono modes, but not negative pitch or extreme pitch/row dimensions. Consider covering those bitmap layout cases to guard the adapter’s buffer-size calculation at `core/libs/prx/libSceFreeType/src/OutlineBitmap.cpp:41`. ## Not verified - No build or tests were run; reported Ubuntu and Windows results are author reported. - Console provider behavior was not measured. - All five files listed under `reviewed` in `manifest.json` were read. No changed files were excluded by the manifest. ## To get this to a good state Nothing is required. Optional: add bitmap layout coverage for negative pitch and large dimensions.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!20047
No description provided.