AGC: window offset enable bit (register 0x205 bit 16) rejects RE4 and Lodoss draws #3163

Closed
opened 2026-10-10 23:47:33 +00:00 by xXPBSXx · 4 comments
xXPBSXx commented 2026-10-10 23:47:33 +00:00 (Migrated from github.com)
Contributor

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 with 0x00010244.

Bit 16 of register 0x205 is enable_window_offset in shadPS4's PolygonControl (src/video_core/amdgpu/regs_primitive.h, bits counted from the field order). DecodeState already 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 0x00013a46 decoding like 0x00003a46, and a non-zero 0x80 still being rejected. All 331 agc ctest targets pass, tools/check_conventions.py passes.

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 = 0x3 check (bit 0 is msaa_enable in shadPS4's ModeControl, so that one belongs with #419) and then the structurizer error in #2642. For Lodoss I did not rerun with this change.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5796337411 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3163). Originally posted by [xXPBSXx](https://github.com/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 with `0x00010244`. Bit 16 of register 0x205 is `enable_window_offset` in shadPS4's `PolygonControl` (`src/video_core/amdgpu/regs_primitive.h`, bits counted from the field order). `DecodeState` already 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 `0x00013a46` decoding like `0x00003a46`, and a non-zero 0x80 still being rejected. All 331 `agc` ctest targets pass, `tools/check_conventions.py` passes. **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 = 0x3` check (bit 0 is `msaa_enable` in shadPS4's `ModeControl`, so that one belongs with #419) and then the structurizer error in #2642. For Lodoss I did not rerun with this change.
xXPBSXx commented 2026-10-10 23:50:49 +00:00 (Migrated from github.com)
Author
Contributor

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 the ImageRead mask change I mentioned on #2548). The register 0x205 = 0x00010244 stop 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).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6103477582 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3163#issuecomment-6103477582). Originally posted by [xXPBSXx](https://github.com/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 the `ImageRead` mask change I mentioned on #2548). The `register 0x205 = 0x00010244` stop 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).
danzaio commented 2026-10-11 01:53:23 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6104371253 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3163#issuecomment-6104371253). Originally posted by [danzaio](https://github.com/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.
LightStorm72 commented 2026-10-11 06:25:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-11T06:25:33Z.


Tested fix/agc-ignore-window-offset-enable on 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:

  • Run 1 ended with [libc] unhandled exception '15ProcessShutdown' followed by abort() (SIGABRT).
  • Run 2 exited without a crash trace, only [gpu] storage image ... destroyed with GPU results pending lines.

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).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106226458 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3163#issuecomment-6106226458). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-11T06:25:33Z. --- Tested `fix/agc-ignore-window-offset-enable` on 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: - Run 1 ended with `[libc] unhandled exception '15ProcessShutdown'` followed by `abort() (SIGABRT)`. - Run 2 exited without a crash trace, only `[gpu] storage image ... destroyed with GPU results pending` lines. **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).
reyani-dev commented 2026-10-11 07:55:00 +00:00 (Migrated from github.com)
Author
Contributor

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_graphics passes 3/3 and fails on the new case with State.cpp reverted to main; the GPU set passes apart from the dcc_keys_first_write regression on main (#3320).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106879873 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3163#issuecomment-6106879873). Originally posted by [reyani-dev](https://github.com/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_graphics` passes 3/3 and fails on the new case with `State.cpp` reverted to `main`; the GPU set passes apart from the `dcc_keys_first_write` regression on `main` (#3320).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#3163
No description provided.