fix(agc): overestimate single-sample draws with centroid inputs #6464
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6464"
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 AymanFE on 2026-10-15T16:23:41Z.
Requested by Ayman
What
ASTRO BOT (PPSA21564 01.007.000) stops in its first level, Sky Garden, a few minutes after the player starts walking. On current
mainit stops at:followed by
terminate called after throwing an instance of 'std::runtime_error'from the nextsceAgcDcbSetFlip.The draw sets
PA_SC_CONSERVATIVE_RASTERIZATION_CNTL0x6001 withSPI_PS_INPUT_ENA.PERSP_CENTROIDorLINEAR_CENTROID, anddecodeConservativeRasterizationrefused centroid inputs for every sample count. WithPA_SC_AA_CONFIG.MSAA_NUM_SAMPLES0 the one rasterized sample is the pixel centre, and the recompiler already gives the centroid pairs the pixel-centre barycentrics (docs/dev/debt/shader.md), so the draw now decodes to overestimation. More rasterized samples, and a single-sample draw raised to a multisampled color target, still throw, each with its own message. The inference is recorded in docs/dev/debt/libSceAgcDriver.md.Tested
agc_driver_graphics_tests(Linux):ConservativeRasterizationTestsnow decodes centroid inputs at one rasterized sample and expects the two remaining throws. Onmainthe test fails withAGC graphics: conservative rasterization with centroid interpolation is unsupported; with this change it passes.main(8856f180c) stopped with the line above 4.3 minutes into the walk; with this change (on92e50418f) the walk went on for 9.2 minutes, past the first enemies onto the stone platforms, with no throw, assert or abort, until the window was closed (exit code 0).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)agc_driver_graphics_tests. The game run above used an NVIDIA GeForce RTX 5070 Ti on Windows 11🤖 Generated with Claude Code
https://claude.ai/code/session_01XJ3RTcWpqBBdVE8QRtKxJD
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T16:37:21Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdImported from boykopovar/AnyPS5. Originally posted by mrfelek on 2026-10-16T21:27:29Z.
Astro Bot (PPSA21564) on Linux (RTX 3080 Ti, NVIDIA 615.71.09): without this PR, Sky Garden stops after about 8 minutes on
AGC graphics: conservative rasterization with centroid interpolation is unsupported. With this PR, 40 minutes in the same level with no stop (buildmain44df21632+ #5390 + #5998 + #5997 + #6492 + #6465, merged with this head76cc70c24).AI-assisted: this comment was drafted with the help of Claude Code and checked against the logs by us.