fix(agc): honor disabled color targets and their reset state #1346
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1346"
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 TibixDev on 2026-10-07T23:59:07Z.
What
Exclude COLOR_INVALID attachments from the effective color write mask. Preserve depth-only rendering and the export indices of later color targets. Initialize all eight color-format registers to their disabled reset state.
#1139 handles inactive pixel shaders and #1178 adds pixel-input defaults; neither handles these color targets.
Tested
Fedora 44, Release: driver, graphics, and PM4 tests. Covers disabled and partially written targets, depth-only draws, holes between color exports, missing registers, and context reset. Contribution checks pass. Windows was not tested.
Checklist
main; no duplicate open PR.Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T07:23:18Z.
Rebased on
58a1bd66. Kept both the merged CMASK extent function and disabled-format write-mask handling.Fedora 44 Release:
agc_driver_tests,agc_driver_graphics_tests,agc_driver_pm4_testsbuild; the targeted tests and contribution checks pass. Windows CI is pending.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T07:27:08Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/tests/Graphics.cppL580Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T11:36:00Z.
Checked build + full ctest on current main + this PR (442/442,
agc_driver_graphicspasses), CI green on the head. COLOR_INVALID targets no longer count in the write mask in the decode, precheck and rejection paths, later export indices are preserved (State.cpp:647 and the test at Graphics.cpp:627), and a missing register still throws. Merging.