feat(libSceAgcDriver): export sceAgcDriverGetHsOffchipParam #3883
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3883"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by hansjm10 on 2026-10-11T18:37:55Z.
What
PS5 FSR4 Showcase (PPSA99011, 01.000.010 from the homebrew catalog) relinks with #3804's
--trap-sdk-syscall-stubs(#2136). Onmaina11c8f7f7it then stops in the loader:r28hEh6cNH0issceAgcDriverGetHsOffchipParam(tools/nid_names.py). It is the title's only absent import:tools/import_audit.pycounts 213 of 215 implemented, 1 throwing stub and this one.The change declares it in
libSceAgcDriver/Unimplemented.cppas a throwing stub. The twouint16_toutput pointers andint32_treturn follow ps5-vulkan, the Vulkan layer the showcase pins at4bb0c8b. Its callers sit only on tessellation paths (graphics_queue_ps5.cL2241), which the showcase does not reach at start-up. What the two values mean and their initial state are unknown.sceAgcDriverSetHsOffchipParamkeeps nothing here, so the getter has nothing to return. The TechnicalDebt entry records this.#2384 (closed by the new-contributor intake) declared the same function as
(void*, void*)among 44 others, without a title.Tested
Linux (Debian 12), GCC 14.4, Release; RADV GFX1036, Mesa 22.3.6. The showcase was relinked with #3804 (
0a6247532); the SELFs were unwrapped to plain ELFs first, and their embedded SHA-256 matched.mainlibs): the loader stops onundefined symbol: r28hEh6cNH0.[debug:0] FSR4_SHOWCASE_BEGIN heap=0). The next stop issceSysmoduleLoadModuleInternal: unknown id 2147483796(0x80000094, libSceAgc), handled in a follow-up PR. The getter is not called.mainwith the deprecated debugging switch--skip-syscall-check, the title shows the same before and after stops.python3 tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T18:38:19Z.
Progress report (
2f4cc89→bdb0be0)📉 System libraries: 86.34% (-0.02%, +1 declared functions)
🆕 1 declared as stubs
sceAgcDriverGetHsOffchipParamImported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-12T01:09:18Z.
#4182:
agc_vector_windowis a real registered test,APS5_SPIRV_OPT=noneis a real optimizer-disable switch read inSpirvOptimizer.cpp, andAPPENDis the right call — it preserves the test's existingANYPS5_NO_SHADER_CACHE=1environment entry rather than replacing it, matching how this file already appends to other tests' environments. Without this the test strips the window before its own structural assertion can see it and genuinely fails (functionArrays==1etc. all false), not silently passes against a weaker check.#3883: the stub follows this file's own pattern exactly (
NotImplemented_nid_no_patch, matching the sibling declared right above it), and the NID is independently re-derivable in-tree —ComputeNid("sceAgcDriverGetHsOffchipParam")reproducesr28hEh6cNH0using this project's own hash function, not an external lookup. One thing worth being plain about: the signature (twouint16_t*outputs) comes entirely from a third-party reverse-engineering project (ps5-vulkan), not from anything in this tree or from hardware — nothing here corroborates it, and the only related in-tree function, the settersceAgcDriverSetHsOffchipParam, takes threeuint64_tby value, which doesn't confirm or contradict it either way. The TechnicalDebt entry is honest about that ("unknown"), which is the right call given the evidence.One thing to flag before merging: open PR #3648 also edits the same block of
docs/dev/TechnicalDebt.mdthis PR appends to, which isn't listed in the "Depends on" line — worth a quick check for a textual conflict on whichever lands second.Written with AI assistance.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T09:04:55Z.
docs/dev/TechnicalDebt.mdconflicts withmainnow; please rebase. The full build was green on 1b4535aaa, so I'll rebuild and merge after that.Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-12T13:32:06Z.
Rebase handoff — rebased onto current
main(only aTechnicalDebt.mdunion conflict; both entries kept), authorship unchanged.Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON, AMD RX 9070 XT / RADV):tools/check_conventions.py --base origin/mainpassesTo pick it up:
Head is
6060207f5.Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-12T14:36:10Z.
@oneandonlydean the rebased branch is ready —
blawesom:rebase/3883(head$(git -C /tmp/opencode/rb rev-parse --short rebase/3883), theTechnicalDebt.mdunion resolved with both entries kept). Full local suite passed on it (952/952, Linux/RADV), conventions green.@hansjm10 if you'd rather take it yourself, the pick-up is one command:
Happy to re-push if main moves again before this merges.