AGC: window offset enable bit (register 0x205 bit 16) rejects RE4 and Lodoss draws #3163
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 xXPBSXx on 2026-10-10T23:47:33Z.
AI-assisted (Claude Code), reviewed by the contributor.
Finding:
AGC graphics: polygon mode, depth bias or nonstandard rasterization is unsupported (register 0x205 = 0x00010240)stops RE4 (PPSA07411) once the earlier stops are passed. Record of Lodoss War (PPSA05347) stops on the same bit with0x00010244.Bit 16 of register 0x205 is
enable_window_offsetin shadPS4'sPolygonControl(src/video_core/amdgpu/regs_primitive.h, bits counted from the field order).DecodeStatealready rejects any non-zero window offset register (0x80), so with the enable bit set and a zero offset the draw is unchanged.Change: ignore bit 16 in the raster mode check; test covers
0x00013a46decoding like0x00003a46, and a non-zero 0x80 still being rejected. All 331agcctest targets pass,tools/check_conventions.pypasses.Branch: https://github.com/xXPBSXx/AnyPS5/tree/fix/agc-ignore-window-offset-enable (1 commit on current
main). Not opened as PR because intake is paused for new contributors.Not verified: that this makes either title render. For RE4 the next stop is the
register 0x292 = 0x3check (bit 0 ismsaa_enablein shadPS4'sModeControl, so that one belongs with #419) and then the structurizer error in #2642. For Lodoss I did not rerun with this change.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-10T23:50:49Z.
Update: I reran Record of Lodoss War (PPSA05347) on Windows with this change on top of my local test stack (current
main, the library-skip branch from #2591, and theImageReadmask change I mentioned on #2548). Theregister 0x205 = 0x00010244stop is gone, the title ran for the full 120 s I allowed, and it reached the main menu with music (confirmed on screen by the owner of the dump). No error lines in the log.Limits: this is the whole stack, so I did not isolate which change matters most, and I only looked at the menu, not gameplay.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by danzaio on 2026-10-11T01:53:23Z.
Windows validation for this branch.
Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), Ninja, Release, BUILD_TESTING=ON, branch
6825e0237: agc_driver_graphics passes 1/1 (16 s).AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-11T06:25:33Z.
Tested
fix/agc-ignore-window-offset-enableon a third title: Road of Death (PPSA07286), a GameMaker title (YoYo Games PS5 Runner with the Ratalaika plugin).Before: the title reached "Entering main loop" and then aborted at the first present with
AGC graphics: polygon mode, depth bias or nonstandard rasterization is unsupported (register 0x205 = 0x00010244).That is the same value as Lodoss in this issue.
With the fix (
6825e023, cherry-picked): the stop is gone. The game ran perfectly on screen in my test.The log shows the main loop running, room changes, music streaming, and save data being read and written across two runs.
I closed the window by hand in both runs:
[libc] unhandled exception '15ProcessShutdown'followed byabort() (SIGABRT).[gpu] storage image ... destroyed with GPU results pendinglines.Setup: Windows 11, Ryzen 5 3600, RTX 2070 SUPER (driver 32.0.16.1088), MinGW-w64 GCC 15.2.0 (WinLibs r7).
Stack:
01e65cfb(start without unused library) + #846 (558c53e3) + this fix + two local libSceHttp stubs (see #2591).No game files shared. AI-assisted (Claude).
Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T07:55:00Z.
Carried as #3330 with your commit unchanged. On Windows 11 (RTX 4070, GCC 15.2),
agc_driver_graphicspasses 3/3 and fails on the new case withState.cppreverted tomain; the GPU set passes apart from thedcc_keys_first_writeregression onmain(#3320).