fix(agc-driver): accept per-engine primitive discard in PA_SC_MODE_CNTL_1 #840
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/840"
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 merwie on 2026-10-06T08:48:05Z.
What
The draw state check now accepts bit 17 of
PA_SC_MODE_CNTL_1(0x293,MULTI_SHADER_ENGINE_PRIM_DISCARD_ENABLE).The bit lets each shader engine drop the primitives that fall outside its own part of the screen. It decides how work is split between engines and has no visible effect. Until now, any draw with it set was skipped:
PPSA12544 (Hollow Knight: Silksong) sets
0x06020000: bit 17 plus the EOV bits 25 and 26, which were already accepted. It does so on the draws that produce its presented image, so every frame it presented was black. I checked 2,400 dumped frames and every one had maximum pixel value 0. With this change the Team Cherry logo, the save notice and the title menu render.The other bits of the register (
PS_ITER_SAMPLE, out-of-order rasterization, multi-GPU) are still rejected. The test checks that0x06020000is accepted and that adding bit 16 is still rejected.Tested
skipped drawmessages remain, and the dumped frames show the expected images.agc_drivertests run serially: 143 of 145 pass. The two failures (agc_driver_lds_atomics64,agc_driver_vopc_compare_table) also fail onmainon this host.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