Repository navigation
fix(agc): overestimate single-sample draws with centroid inputs - #6464
Merged
Merged
Conversation
A draw with PA_SC_CONSERVATIVE_RASTERIZATION_CNTL 0x6001 and SPI_PS_INPUT_ENA.PERSP_CENTROID or LINEAR_CENTROID threw in DecodeState, whatever its rasterized sample count. With PA_SC_AA_CONFIG.MSAA_NUM_SAMPLES 0 the single rasterized sample is the pixel centre, which is where the recompiler already puts the centroid barycentrics, so such a draw now decodes to overestimation. More rasterized samples, and a single-sample draw raised to a multisampled color target, still throw. Extends agc_driver_graphics and records the inference in the driver's technical debt. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XJ3RTcWpqBBdVE8QRtKxJD
|
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.
|
11 tasks done
Contributor
|
Astro Bot (PPSA21564) on Linux (RTX 3080 Ti, NVIDIA 615.71.09): without this PR, Sky Garden stops after about 8 minutes on AI-assisted: this comment was drafted with the help of Claude Code and checked against the logs by us. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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(8856f18) stopped with the line above 4.3 minutes into the walk; with this change (on 92e5041) 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