feat(agc): implement sceAgcDriverGetTFRing #1978
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1978"
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 LuisBiceps on 2026-10-09T03:37:50Z.
What
Implements
sceAgcDriverGetTFRing(NIDe-YMQ+2tj9M) in libSceAgcDriver.sceAgcDriverSetTFRingnow records the ring it receives, so Get reports it.int sceAgcDriverGetTFRing(uintptr_t* base, uint32_t* size)writes the ring's base address and its size in bytes, and returns 0.sceAgcDriverGetTFRingreports AGC's default, 0xF_F000_0000 and 128 KiB;sceAgcDriverSetTFRing(address, size)moves it".sceAgcDriverSetTFRingstill throws for a null base or a zero size.sceAgcDriverSetTFRing(0, 0), which ps5-opengl's runtime calls in its cleanup and whose effect on the console is unknown.Titles, from the homebrew catalog: VITA5 (PPSA39410) 1.0.0, Homebrew UI Lab (PPSA99050) 01.000.010 and Cloud Play (PPSA99600) 1.0.0. Each was relinked with
--windowsonmainf1451396and run on Windows 10. Where each stops:main:6kPnj51T62Y(sceVideoOutGetResolutionStatus, #1714)main+ #1714:e-YMQ+2tj9M(sceAgcDriverGetTFRing)main+ #1714 + this PR:Jc6E7N+dHz0(system, #1859)main:6kPnj51T62Ymain+ #1714:j-gWL6wDros(getifaddrs, #1772)main+ #1714 + #1772:e-YMQ+2tj9Mmain+ #1714 + #1772 + this PR:Jc6E7N+dHz0Each stop is the first line of the run, for example
FAIL: unresolved ELF import e-YMQ+2tj9M from libSceAgcDriver.prx.Tested
agc_tessellation_factor_ringtest, registered in ctest:15.2.0posix-14.0.0-ucrt-r7), Release:agc_tessellation_factor_ringpasses (--repeat until-fail:3). The NID-patchedlibSceAgcDriver.prxexportse-YMQ+2tj9M.ANYPS5_ENABLE_SPIRV_TOOLS=ON:agc_tessellation_factor_ringpasses (--repeat until-fail:3).tools/check_conventions.pyandtools/check_test_registration.pypass.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-09T08:55:49Z.
Progress report (
f145139→b38c8d6)➖ System libraries: 84.76% (+0.0%, +1 implemented functions)
✅ 1 implemented
sceAgcDriverGetTFRingImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T21:53:50Z.
Checked on Linux (merged onto current main): build, full ctest (525/525) and
agc_tessellation_factor_ring. The test doesn't link without the change. The NID and the default ring (0xFF0000000, 128 KiB) match the cited PS5_Vulkan findings and ps5-opengl's runtime at the pinned commits; TechnicalDebt records what isn't modelled. Merging.