Gran Turismo 7 (PPSA01317): ten missing exports, two USB storage libraries, and unaligned shader headers in ABI resolution (patches attached) #4782
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 dawid-swiecicki on 2026-10-12T21:38:33Z.
Summary
Gran Turismo 7 (PPSA01317, v01.680, SDK 12.00) cannot start on
main(584cc4c57): the loader refuses it on unresolved imports. With the two attached patches applied to584cc4c57it converts with no missing libraries or symbols (ldd -rclean), shows the "Sony Interactive Entertainment presents" card at about 45 fps, and then stops at a separate, already-known gap (see "Next stop").I can't open a pull request (intake is limited to authors with 10 merged PRs), so the patches are attached for anyone who wants to take them.
What was missing
Patch 1: exports and libraries (
0001-…)sceSslSetAlpn,sceSslDisableVerifyOption,sceSslSetMinSslVersionsceSslGetAlpnSelectedNotImplemented(only meaningful on an established connection)sceSslCreateConnectionNotImplemented; now returns the library's network error0x80435001, like the other network-touching calls, so the title takes its offline pathsceNpAuthSetTimeoutsceNpWebApi2PushEventSetHandleTimeoutsceAudioOutDeviceIdOpensceAudioOutOpenportssceAppContentDownloadDataFormat/download0(validates the mount point likesceAppContentDownloadDataGetAvailableSpaceKb)_specularAA,_quality8K)xNZM9Y5lf-M,lcZD9tJraAwAPS5_EXPORTstubs that throw if called (PS5 Pro paths; never called in this run)libSceUsbStorageandlibSceUsbStorageDialogare added as empty libraries (APS5_DUMMY_FUN): the eboot lists both asDT_NEEDEDbut imports nothing from them, so the loader only needs the files to exist.Patch 2: unaligned shader headers in ABI resolution (
0002-…)After the imports resolve, the title stops with
AGC driver: null or misaligned address:GT7 passes shader headers from its eboot data at 4-byte (not 8-byte) aligned addresses (the
psargument ofsceAgcUnknownCreateInterpolantMappingwas...acc). #902 already accepts unaligned headers inRegisterShaderby reading the fixed fields through amemcpycopy;ResolveShaderAbi,ResolveGraphicsStagesAbi,ResolveGraphicsAbiandRegisteredHeaderstill calledCheckRange(shader, sizeof(Shader), alignof(Shader))and dereferenced the header directly. The patch adds one helper (GuestShaderFields:CheckRange(..., 1)plusmemcpy) and uses it at those four sites. The code pointer itself keeps its 256-byte requirement.Tested
git am -3to584cc4c57;libsandrelinkerbuild cleanly.ldd -rreports no missing libraries or symbols; the title reaches the SIE intro card at ~45 fps.agc_driver_graphics,agc_driver_submitandagc_shader_memorypass with patch 2.Next stop (not addressed here)
This is the case #1418 targets. #1418 is written against the earlier
ResourceSpecializationdesign; on a local stack I ported its idea to a pipeline specialization constant (likeFoldOffsetBase), after which GT7 continues toblending into a color target with a reversed component order is not implemented (CB_BLEND0_CONTROL 0x65010504, component mapping 0x1b). Happy to share that port if useful.Notes for whoever picks this up
pdiWheel_*.prxfiles in the dump are 360-byte encrypted blobs, not SELFs, and were left out of the conversion (wheel support only).Written with AI assistance (Claude); I ran and checked every step above on my machine.
Patches
Both apply with
git amto584cc4c57.0001-feat-libs-export-the-calls-PPSA01317-imports.patch0002-fix-agc-accept-unaligned-shader-headers-when-resolvi.patchImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T22:36:34Z.
I carried only the attached shader-header alignment fix as #4809; the unrelated export/library patch is not included. The original fix commit author is preserved. On Linux, the focused
agc_driver_prepared_shaderstest passes 1/1, and conventions/diff checks pass. No console run.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T09:49:09Z.
#1418 lets implicit-LOD, bias and gradient samples through an unnormalized S# sample the base level (single-level views), which removes the "unnormalized guest sampler is used by an implicit-LOD sample" stop; the other stops in the issue are still open.
Imported from boykopovar/AnyPS5. Originally posted by nikowolf123 on 2026-10-13T14:32:52Z.
#5200 removes the "blending into a color target with a reversed component order" stop for UNORM and float targets with one color export, including the 0x65010504 blend from this report. It reproduces what AMD's register reference documents for the color block: blend in the shader's export order, then apply the swap. RADV's Navi10 CTS run passes all
blend.format.*.statescases for the formats that use the same two swaps.We have no PS5 or copy of the game, so we couldn't check GT7 itself. If you can rerun your local stack with #5200 on top, the log will settle it: the title either gets past this draw or stops at a narrower refusal.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T00:08:55Z.
Closing: the exports and USB storage libraries (#4834), the unaligned shader headers (#4809) and the unnormalized sampler stop (#1418) are on main, and the reversed-order blend stop is #5200. Comment here with the log line if the title stops somewhere else on current main.