mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-12-02 12:47:32 +02:00
* agc: return the Sh register-list size Returnal queries Returnal's main menu calls sceAgcCbSetShRegistersDirectGetSize (NID yUBESvCCJ4I) before writing a shader register list. The writer was already implemented but the size query was not registered, so the game stopped on an unresolved import instead of reaching the next stage. Report three dwords per register, the writer's worst case when no two registers are adjacent. Adjacent registers still merge into one range and use less than the queried size. Register the NID and cover the upper bound, merged writes and the NID lookup in agc_tests. Refs #2373. * agc: wrap the Sh register-list size at 32 bits instead of aborting --------- Co-authored-by: lordra9-svg <342614157+lordra9-svg@users.noreply.github.com> Co-authored-by: nmzik <Nmzik@mail.ru>