fix(agc): keep a programmed viewport transform when the viewport control was never written #23165
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23165"
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 oneandonlydean on 2026-11-18T19:38:56Z.
What
Since #16053 a draw whose
PA_CL_VTE_CNTL(0x206) is still at its initial 0 gets a viewport covering its render target. PPSA04263 never writes that register but does program its viewport scale and offset registers, with a negative Y scale. Its transform was dropped, so the whole game image has been upside down onmainsince 15 Nov (logo, menus and the game itself; an overlay drawn by the host stays upright).drawCovers).An explicit
0x43fand every rejected value behave as they do onmain.Tested
Linux, on
main6286d36449.Bisect by picture, PPSA04263, 150 s route replays, one build each:
92b57225ac(parent of the #16053 merge)83d984dff5(merge of #16053)main6286d36449main6286d36449with this changeagc_driver_graphicsandagc_driver_pm4pass.InitialContextTestschanges with the rule: its context with a programmed transform and the control never written, which #16053 expected to get the covering viewport, now has to decode to that transform, also with a negative Y scale. A new arm checks that a context whose transform words were never written still gets the viewport covering its render target.Not tested: PPSA30528, the title #16053 was written for. I have no copy of it. Its case (neither register programmed) keeps the covering viewport, and the second new test arm pins that.
Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository