feat(agc): implement the interpolant mapping variant for high-half f16 inputs #651
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/651"
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 Celegans12 on 2026-10-05T11:12:20Z.
What
libSceAgc does not export
dbOlWdppb4o, so PPSA26344's import of it does not resolve.AgcCreateInterpolantMapping2, butsceAgcCreateInterpolantMapping2recomputes to5ucTcsliW+Aand aerolib has no entry, so it is exported assceAgcUnknownCreateInterpolantMapping, likesceAgcUnknownFuseShaderHalves. (HV4j+E0MBHE, namedsceAgcCreateInterpolantMappingonmain, does not recompute either; left as is.)sceAgcCreateInterpolantMapping, except for inputs with only the high f16 half (is_f162): FP16_INTERP_MODE set, USE_DEFAULT_ATTR1 clear, DEFAULT set unless the matching gs output has the high half, DEFAULT_VAL and DEFAULT_VAL_ATTR1 fromdefault_value_hi. This followsAgcCreateInterpolantMapping2in KytyPS5; TechnicalDebt lists it.linkShaders(0x1612280), with a 0x100-byte register block, a Gs and a Ps shader or null, and uses all 32 registers.sceAgcCreateInterpolantMapping, whichsceAgcLinkShaderscalls, now shares the checks and register loop. Its output is unchanged for 1 to 32 inputs (500,000 random gs/ps sets againstmain: no difference). More than 32 inputs now throw instead of writing past the 32-register block;sceAgcLinkShadersalready rejects such shaders.Tested
main53dc19cf: configure-DBUILD_TESTING=ON, full build,--target libs,ctest:ctest --output-on-failure)agc_interpolant_mapping: high-half rows (gs half present, missing, unmatched), both exports equal outside mode 2, 33 inputs rejected without writes, nullgs/regs. Does not link onmain(undefinedsceAgcUnknownCreateInterpolantMapping); fails with mode 2 mapped likesceAgcCreateInterpolantMapping.mainthedbOlWdppb4oimport is unresolved at load; with this change it resolves.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-05T15:55:39Z.
Progress report (
e248f40→5e851fb)📈 System libraries: 79.21% (+0.01%, +1 implemented functions)
✅ 1 implemented
sceAgcUnknownCreateInterpolantMapping