fix(agc): ignore the window offset enable bit of the raster mode #3330
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3330"
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 reyani-dev on 2026-10-11T07:54:58Z.
What
Carries @xXPBSXx's fix from #3163 (the author is under the intake threshold). The commit is theirs, unchanged (
6825e023), and merges cleanly onto currentmain.Bit 16 of
PA_SU_SC_MODE_CNTL(register0x205) isenable_window_offset(shadPS4'sPolygonControl).DecodeStatetreated it as an unsupported raster mode, so draws that set it stop with:DecodeStatealready rejects any non-zero window offset register (0x80), so with the enable bit set and a zero offset the draw is unchanged. The raster-mode check now ignores bit 16. Inagc_driver_graphics:0x00013a46must decode like0x00003a46(depth bias and back-face culling kept);0x80must still be rejected.Titles (from #3163, Windows):
0x00010240onmain; its next stops (0x292, #2642) are separate.0x00010244. With the change, the author's run reached the main menu with music.0x00010244(@LightStorm72's run on #3163).Closes #3163.
Tested
Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, NVIDIA RTX 4070 Laptop GPU (driver 616.92), the commit merged onto
main2bb78d2c, withVK_LOADER_DRIVERS_DISABLE=*dzn*(#3255):agc_driver_graphicspasses 3/3. WithState.cppreverted tomainit fails on the new case (register 0x205 = 0x00013a46).ctest -R "^agc_|video_out|^shader|recompiler": 365/366. The one failure,agc_driver_dcc_keys_first_write, fails onmainon Windows since #3158 (#3320, fixed by #3324).check_conventions.pypasses, andpr_overlap.pyreports no overlap.I don't have the titles; the title results are from #3163.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:00:54Z.
Checked on Linux with the PR merged onto current
main:libSceAgcDriverbuild and ctest pass,agc_driver_graphicspasses and fails on the new case with theState.cppchange reverted. The non-zero0x80case is still rejected (State.cpp:608), so ignoring bit 16 only affects draws with a zero window offset. Third-party runs on #3163 (Road of Death, RE4/Lodoss) match. Merging once CI is green.