Repository navigation
Grand Theft Auto V (CUSA00419) #18084
adam25136
started this conversation in
Game bring-up
Replies: 1 comment 1 reply
|
Two pull requests address blockers listed here: #18176 for blocker 7 (PS4 color targets with fewer fragments than samples now draw the way the AGC path draws EQAA targets), and #18207, which exports Generated by Claude Code |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Existing thread
Title
Grand Theft Auto V (CUSA00419)
Content version tested
01.57 (
param.sfoAPP_VER; the PS4 dump has noparam.json), a dump of my own copy. No game files, hashes of game files or game code in this thread: only offsets, NIDs and log messages.AnyPS5 commit
The furthest run:
main03c52d08b0with #16882 (975e93eba4, now inmain) merged locally and the local changes listed under Current blocker, none of them in a pull request (the steps below name the pull requests for the same problems); converted with--trace-importsand started withAPS5_TRACE_CALLS=all. Each blocker below names the build it was measured on.System tested
Windows 10 Pro 22H2 (19045), WinLibs GCC 15.2.0 r7, i9-12900KF, NVIDIA GeForce RTX 5080 (driver 621.14)
Furthest point
Does not convert on
main. With #16882 and the local changes below: the title presents its first frame, and AnyPS5 stops it after 34.5 s.What is shown
With the local changes, the window opens, the RTX 5080 is selected, graphics shaders are prepared and drawn, and the title presents its first 1920x1080 frame within about 3 s. It searches its save data for
SAVEDATAPROFILEand prepares more shaders until AnyPS5 stops it after 34.5 s withAGC graphics: GCN color targets with fewer fragments than samples (EQAA) are not implemented. Only the first frame is logged; what the frames show was not captured, and audio and input were not checked.Current blocker
In the order the title meets them, each measured with every change before it in place:
tools/unwrap_self.pyfails on the eboot (main75f67aa55e):segment 4 does not fit the file. Segment 4 is the eboot'sPT_INTERP, the case fix(tools): recover SELF interpreter bytes from containing loads #17880 targets; fix(tools): recover SELF interpreter bytes from containing loads #17880 was not tried here. A local workaround unwraps the eboot,libc.prxandlibSceFios2.prx.main75f67aa55e):FAIL: Undefined non-weak symbol has non-default visibility: f1zwJ3jAI2k#B#C. The eboot imports_Unwind_Resume(libc) as an undefined global symbol with protected visibility, the only one of its 732 dynamic symbols. Local change: accept protected visibility in that check. fix(relinker): import undefined global symbols with non-default visibility #17105 (ntamas94) makes the relinker accept such imports; with it, the eboot converts (result).libSceGnmDriver_padebug.prx(main39bac5d055), while its 45 GNM imports name the module and librarylibSceGnmDriver. AnyPS5 builds no file of that name, so all 45 stay unresolved: the start ends with exit0xC0000139and 46 unresolved imports, these 45 andsceMsgDialogGetResult. Hasbro Family Fun Pack (savvaniss on #6977) and Until Dawn (SuperCatElvis on #6684) ask for the same library. Local change: loadlibSceGnmDriver.prxfor that dependency (in step 4's run as a copy under the padebug name, from step 5 on in the relinker). fix(relinker): load libSceGnmDriver.prx for a libSceGnmDriver_padebug dependency #18087 proposes loadinglibSceGnmDriver.prxfor this dependency in the relinker.maind0913992db):sceGnmDrawInitDefaultHardwareStateonly inlibSceGnmDriverForNeoMode, andsceMsgDialogGetResultonly inlibSceMsgDialog.native. Local change: the relinker also loadslibSceGnmDriverForNeoMode.prxfor the GNM dependency andlibSceMsgDialog.native.prxforlibSceMsgDialog.prx, and searches the latter for thelibSceMsgDialogimports. feat(libSceGnmDriver): expose base draw default state #18206 (DonRyuzaki) exportssceGnmDrawInitDefaultHardwareStatefromlibSceGnmDriveritself (not run here). feat(libSceMsgDialog): export sceMsgDialogGetResult for PS4 titles #18207 (puridanish284) exportssceMsgDialogGetResultfromlibSceMsgDialogitself; with it, that import resolves without thelibSceMsgDialog.nativechange (result).sceGnmGetTheTessellationFactorRingBufferBaseAddress not implementedafter 4.4 s (main70aab1bf93). feat(libSceGnmDriver): answer the CU mask and tessellation ring queries as firmware 13.42 does #16882, now inmain, implements it (what it changed here).int 0x41) after 4.8 s (main70aab1bf93+ feat(libSceGnmDriver): answer the CU mask and tessellation ring queries as firmware 13.42 does #16882; found in a traced start): at eboot address0x1b45414it callssceSysmoduleLoadModule(0x97)(libSceNpParty), gets0x805A1000, and asserts.sceSysmoduleLoadModuleaccepts only the module ids a PS5 process accepted on a console (docs/dev/debt/libSceSysmodule.md); 0x97 is not one of them. Local change: accept the idsModuleTable.hppnames. In a PS4 process, fix(libSceSysmodule): accept four PS4-only module ids in a PS4 process #18184 accepts 0x97, 0xa2 and 0xb2, the three ids this eboot passes that are not among those PS5 ids; with it, the title gets past this assert (see Tested in fix(libSceSysmodule): accept four PS4-only module ids in a PS4 process #18184). feat(libSceSysmodule): scope PS4-only module IDs to PS4 processes #18141 (pushkarreddyy) at7267fd467faccepts the same three ids the same way.GCN color targets with fewer fragments than samples (EQAA) are not implementedafter 34.5 s (main03c52d08b0+ feat(libSceGnmDriver): answer the CU mask and tessellation ring queries as firmware 13.42 does #16882): the current blocker. feat(agc): draw PS4 EQAA and one-fragment color targets #18176 (puridanish284) decodes such targets; with it, the title stops at a later check of the same decoder,PS4 color target fast clear (CMASK) is not implemented, on the same target: 4 samples, 1 fragment,FAST_CLEARandCOMPRESSIONset, 1920x1088 (details). feat(agc): draw PS4 EQAA and one-fragment color targets #18176 still refuses a one-fragment target withFAST_CLEAR(its Unchanged note). feat(agc): materialize single-sample and one-fragment PS4 color target fast clears #18177 (puridanish284) at1b91fc8eae, which includes feat(agc): draw PS4 EQAA and one-fragment color targets #18176, also materializes the fast clears of one-fragment targets; with it, the title gets past the fast clear check and stops ata color target's sample count differs from the rasterizer's, on the same target, drawn under a 4-sample rasterizer without a depth target (details).How it was run
relinker --windows --registry eboot.elf ../out/app.exein the folder with the unwrapped eboot andsce_module/.--frame-red-zonefails on this eboot:FAIL: Cannot decode instruction: Instruction exceeds 15 bytes (offset 0x276d665).app.exe,libs/(the built libraries and the MinGW DLLs),app0/(a copy of the dump without itssce_module;app0/sce_module/holds the two converted modules).out/with noAPS5_*variables exceptAPS5_LOG_TIMESTAMPS=1, andAPS5_TRACE_CALLS=allfor the traced runs (converted with--trace-imports).AI-assisted: yes. Claude Code made the local changes, converted and ran the title, read its logs, traces and disassembly, and drafted this post; a separate review agent checked it.
All reactions