libSceAgc: the vieBRwlh1Lw interpolant mapping update is a stub (Silksong imports); fix branch ready #3364
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T09:03:48Z.
The libSceAgc export
sceAgcUnknown_vieBRwlh1Lw(NIDvieBRwlh1Lw, no aerolib name; ps5rs and REmu call itsceAgcUpdateInterpolantMapping, but that name hashes to a different NID) is aNotImplemented_nid_no_patchstub. Hollow Knight: Silksong (PPSA12544) imports it (#699).Fix branch ready:
screamm:feat/agc-vieBRwlh1Lw(b1ca8cb9, one commit onmain0c617bae). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is.game_compat.candtests/test_shader.c(3c7e8072): the export takes the same(regs, gs, ps)as the implementeddbOlWdppb4o, applies the same register transform without the identity tail, writes one register per pixel shader input and nothing for a shader without inputs, and rejects null registers, a null pixel shader, more than 32 inputs, a missing geometry shader and null semantic tables. The change adds afillIdentityTailflag toCreateInterpolantMappinginShader/src/InterpolantMapping.cpp; the two existing exports are unchanged. One disagreement is left throwing: foris_f161 or 3 inputs OpenAGC fills the 2-bit default-value field fromdefault_value_hi(its own vectors0x01380107,0x03680709confirm it) while the repo'sdbOlWdppb4o, KytyPS5 and sharpemu usedefault_value, so the new export throws when the two differ. A script comparing both transforms over the 786,432 uncontested combinations found no other difference. TechnicalDebt records the OpenAGC-only source, the throw, and that only the written registers are passed to shader preparation.agc_interpolant_mappinggains OpenAGC's vectors with equal defaults (0x625,0x01380107,0x02480220,0x03680709), the throw with unequal defaults and no writes, the no-input shader writing nothing, and the rejections.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs:agc_interpolant_mappingandguest_shader_link3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"513/513;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux, and no title run.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T09:52:37Z.
Independent verification on Linux (the gap noted in the report): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.b1ca8cb9onto currentmain(the branch was 142 commits behind): one conflict indocs/dev/TechnicalDebt.md, resolved by keeping both this entry and main's newer entries; no code conflicts.tools/check_conventions.py --base origin/mainandgit diff --checkpass.agc_interpolant_mappingandguest_shader_linkpass.ctest -j8 -E "^agc_driver_|^video_out_flip"): 520/520 passed.The rebased branch is available at
blawesom:verify/3364for anyone carrying — the commit is otherwise unchanged.Imported from boykopovar/AnyPS5. Originally posted by ArekatlaNishanthchowdary on 2026-10-11T17:44:11Z.
Rebased branch ready:
ArekatlaNishanthchowdary:feat/agc-vieBRwlh1Lw(040fd74bb), @screamm's commit on currentmain(a11c8f7f7) with authorship kept. The only conflict was the appended line inTechnicalDebt.md; both entries are kept.Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release:
ctest: onlyguest_kernel_sys(#3510),windows_exceptions(#3411),agc_driver_emulated_color_compareandguest_filesystem(#3518) fail, the same as unmodifiedmainon this host.tools/check_conventions.py --base origin/mainpasses. No title or homebrew run. Linux not run.My one open-PR slot is taken by #3744, so I will open this as a PR once that is merged or closed. Anyone eligible is welcome to carry it sooner.
AI-assisted: yes (Claude Code).