fix(agc): accept disabled conservative rasterization with uncertainty-region bits #2226
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2226"
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 EdouardSence on 2026-10-09T12:16:11Z.
Depends on #1915. Only the last commit,
ab09a0a9, is this PR; the first three are #1915's (its headaf9e60b6).What
Ratchet & Clank: Rift Apart (PPSA01474) writes
PA_SC_CONSERVATIVE_RASTERIZATION_CNTL = 0xe6000on its first draws. Decoded with the field shifts in the kernel'sgc_10_3_0_sh_mask.h:OVER_RAST_ENABLEUNDER_RAST_ENABLEOVERRIDE_{OVER,UNDER}_RAST_INNER_TO_NORMALUNCERTAINTY_REGION_MODEOUTER_/INNER_UNCERTAINTY_EDGERULE_OVERRIDEBoth rasterization enables are clear, as in libSceAgc's
0x6000. On top of #1915's disabled mask (0x00106000), this also accepts bits 19:16, the uncertainty-region mode and its two edge-rule overrides:0x6001is still rejected.0xe6001and0xe6020are rejected.I have no source that says these fields do nothing when both enables are clear. RADV never writes them; it sets
PBB_UNCERTAINTY_REGION_ENABLEonly for overestimation. So the TechnicalDebt entry records it as an assumption from the field names, not a measurement.Tested
Linux (CachyOS, GCC), RX 9070 XT, RADV / Mesa 26.2.4.
agc_driver_graphics:0xe6000decodes as disabled and is not rejected;0xe6001and0xe6020are still rejected. #1915's cases are unchanged.tools/check_conventions.pypasses.main43972e69, with #1673, #1339, #1836, #1837, #1893, #2105 and #2184, plus a local placeholder formunlock:PA_SC_CONSERVATIVE_RASTERIZATION_CNTL=0xe6000: only 0x6000 (off) and 0x6001 (overestimation) are supported.depth/stencil clear, copy, resummarize or decompress draws (DB_RENDER_CONTROL) is unsupported (register 0x0 = 0x00000001).0x6000: no conservative rasterization.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 rmz-24 on 2026-10-09T13:07:38Z.
Windows run: Windows 11 Pro 25H2 (10.0.26200.9457), RTX 5060 Ti (NVIDIA 617.42), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release,
-DANYPS5_ENABLE_SPIRV_TOOLS=ON, full build pluslibs. 11cd1dc4 cherry-picked onto currentmaind70b8998(applies cleanly).agc_driver_graphicspasses on NVIDIA, in addition to the RADV run in the description.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T06:20:06Z.
Checked on Linux,
main+ this head:agc_driver_graphicsandagc_driver_prepared_graphicspass, and the new rows fail without the change.0xe6000decodes as disabled;0xe6001and0xe6020are still rejected. The mask change is applied in bothDecodeStateandDrawRejection, and the TechnicalDebt entry states the assumption honestly. Merging.