fix(agc): draw nothing for resummarize draws without depth or color work #2178
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2178"
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-10-09T10:42:01Z.
What
A draw with
DB_RENDER_CONTROL.RESUMMARIZE_ENABLE(bit 4) recomputes the HTILE summary of the bound depth surface from its depth values. HTILE is not modeled: depth surfaces live in their resident images. So a resummarize draw with depth and stencil tests off (DB_DEPTH_CONTROLbits 0-1 clear) and no color writes changes no modeled state.DepthMaintenanceRejectionnow passes it, and the draw precheck draws nothing for it. Before, it threw:These still throw:
DB_DEPTH_CONTROL/CB_TARGET_MASK/CB_SHADER_MASKset;TechnicalDebt records the rule.
For the reviewers
#1371 (
f2fe3f7165) made maintenance draws reject before shader compilation, and its test listed resummarize among the rejected modes. This changes that one case. If the intent is to reject every resummarize draw until HTILE is modeled, this PR should not be merged.Tested
maina8b032b236: ctest 495/495.tools/check_conventions.pypasses.agc_driver_graphics,depthMaintenanceTests: a resummarize draw with no depth/stencil test and no color writes passes, with every clear combination. The same draw withZ_ENABLEor with color writes still rejects. Copy, compress and other modes still reject as before.DB_RENDER_CONTROL0x10, no depth test, no color) in its title passes, and stopped there with the line above. With this, it reaches its title screen.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)Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:24:34Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), RTX 3060 Laptop (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
24876afc, merged ontomaind70b8998in one build with 33 other AGC/shader PRs that had no Windows run.agc_driver_graphics. None of them reported skipping a case.PATHsetup.No title was run.
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T15:28:34Z.
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)docs/dev/TechnicalDebt.mdL394-395