Skip to content

feat(libScePsml): report not initialized from the context and dispatch calls - #4298

Closed
utkuhalis wants to merge 1 commit into
boykopovar:mainfrom
AnyTogether:pr/psml-not-initialized
Closed

utkuhalis wants to merge 1 commit into
boykopovar:mainfrom
AnyTogether:pr/psml-not-initialized

Conversation

@utkuhalis

Copy link
Copy Markdown
Contributor

What

scePsmlMfsrInit and scePsmlMfsr2Init throw, because there is no machine-learning upscaler. That means libScePsml can never be initialized. Before this change, scePsmlMfsrGetContextBufferRequirement1100, scePsmlMfsrCreateContext1100 and scePsmlMfsrGetDispatchMfsrPacket1100 already returned 0x8A810001 (not initialized). The other context, shared-resource, requirement, dispatch and capture calls threw instead.

They now return the same not-initialized error, without reading their arguments:

  • MFSR v1: scePsmlMfsrCreateContext1300 and 800M3_2, scePsmlMfsrGetContextBufferRequirement800M3_2, scePsmlMfsrGetDispatchMfsrPacket900, 1000 and 1300, scePsmlMfsrCreateSharedResources, scePsmlMfsrGetSharedResourcesInitRequirement, scePsmlMfsrReleaseContext, scePsmlMfsrReleaseSharedResources, scePsmlMfsrRequestCapture
  • MFSR v2: scePsmlMfsr2CreateContext, scePsmlMfsr2CreateSharedResources, scePsmlMfsr2GetContextInitRequirement, scePsmlMfsr2GetDispatchPackets, scePsmlMfsr2GetSharedResourcesInitRequirement, scePsmlMfsr2ReleaseContext, scePsmlMfsr2ReleaseSharedResources

Their signatures are still unknown, so they stay declared without parameters. The existing TechnicalDebt entry for the 1100 calls now also covers these calls. scePsmlMfsrInit, scePsmlMfsr2Init and the size, config, mip-bias and capture-progress queries are unchanged and still throw.

Tested

  • Checked locally on macOS: tools/check_conventions.py passes, and clang++ -fsyntax-only passes on both changed files with the build's flags.
  • guest_psml_tests gains a loop that calls each of nine of these exports and requires 0x8A810001.
  • The code comes from my fork, where the same change is built and the tests pass on macOS x86-64 under Rosetta 2. Upstream's libraries do not build on macOS, so Linux and Windows rely on CI.
  • No title-level behaviour was verified on a console.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes

@github-actions

Copy link
Copy Markdown

Progress report (e013f8c → 462c9e6)

📈 System libraries: 87.07% (+0.52%, +18 implemented functions)

✅ 18 implemented
Library Name
libScePsml_debug scePsmlMfsr2CreateContext
libScePsml_debug scePsmlMfsr2CreateSharedResources
libScePsml_debug scePsmlMfsr2GetContextInitRequirement
libScePsml_debug scePsmlMfsr2GetDispatchPackets
libScePsml_debug scePsmlMfsr2GetSharedResourcesInitRequirement
libScePsml_debug scePsmlMfsr2ReleaseContext
libScePsml_debug scePsmlMfsr2ReleaseSharedResources
libScePsml_debug scePsmlMfsrCreateContext1300
libScePsml_debug scePsmlMfsrCreateContext800M3_2
libScePsml_debug scePsmlMfsrCreateSharedResources
libScePsml_debug scePsmlMfsrGetContextBufferRequirement800M3_2
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket1000
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket1300
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket900
libScePsml_debug scePsmlMfsrGetSharedResourcesInitRequirement
libScePsml_debug scePsmlMfsrReleaseContext
libScePsml_debug scePsmlMfsrReleaseSharedResources
libScePsml_debug scePsmlMfsrRequestCapture
⚪ 18 behaviourally empty (constant return or throw)
Library Name
libScePsml_debug scePsmlMfsr2CreateContext
libScePsml_debug scePsmlMfsr2CreateSharedResources
libScePsml_debug scePsmlMfsr2GetContextInitRequirement
libScePsml_debug scePsmlMfsr2GetDispatchPackets
libScePsml_debug scePsmlMfsr2GetSharedResourcesInitRequirement
libScePsml_debug scePsmlMfsr2ReleaseContext
libScePsml_debug scePsmlMfsr2ReleaseSharedResources
libScePsml_debug scePsmlMfsrCreateContext1300
libScePsml_debug scePsmlMfsrCreateContext800M3_2
libScePsml_debug scePsmlMfsrCreateSharedResources
libScePsml_debug scePsmlMfsrGetContextBufferRequirement800M3_2
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket1000
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket1300
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket900
libScePsml_debug scePsmlMfsrGetSharedResourcesInitRequirement
libScePsml_debug scePsmlMfsrReleaseContext
libScePsml_debug scePsmlMfsrReleaseSharedResources
libScePsml_debug scePsmlMfsrRequestCapture

@oneandonlydean

oneandonlydean commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Closing: no title is shown to stop in any of these 18 calls on main, their signatures stay unknown, and each becomes a constant return, so the effect is +18 in the progress report. Reopen with the title ID and the log line when a title reaches one.

@utkuhalis
utkuhalis deleted the pr/psml-not-initialized branch October 12, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants