Repository navigation
fix(agc): compare a CB resolve's sample count with the rasterizer onl… - #6571
Merged
adriadam10 merged 1 commit intoOct 19, 2026
Merged
adriadam10 merged 1 commit into
adriadam10 merged 1 commit into
Conversation
|
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.
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
Merged
11 tasks done
klosixgaming-arch
force-pushed
the
fix/agc-cb-resolve-msaa-disabled
branch
from
October 16, 2026 21:43
f2141f8 to
8b34434
Compare
klosixgaming-arch
force-pushed
the
fix/agc-cb-resolve-msaa-disabled
branch
from
October 17, 2026 16:08
8b34434 to
14d25f5
Compare
Contributor
|
Native Linux run of this head (
Not run: Windows or the game. AI-assisted: yes |
12 tasks done
klosixgaming-arch
force-pushed
the
fix/agc-cb-resolve-msaa-disabled
branch
from
October 19, 2026 00:16
14d25f5 to
beb8839
Compare
…y under MSAA_ENABLE PPSA08270 (Eternights) stopped after its story intro with "AGC graphics: CB resolve from a target whose sample count differs from the rasterizer's". It resolves a 4x 512x512 target into a single-sample one with PA_SC_MODE_CNTL_0.MSAA_ENABLE off while PA_SC_AA_CONFIG still holds 2x from earlier draws. Without MSAA_ENABLE the scan converter does not use PA_SC_AA_CONFIG's sample count, so the resolve takes its sample count from CB0 as it already does when PA_SC_AA_CONFIG is single-sample.
klosixgaming-arch
force-pushed
the
fix/agc-cb-resolve-msaa-disabled
branch
from
October 19, 2026 03:10
beb8839 to
0d4cbd5
Compare
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.
What
Eternights (PPSA08270) stops right after its story intro, when a character takes a photo:
I captured the registers of that pass with a temporary diagnostic:
PA_SC_AA_CONFIG0x00108001PA_SC_MODE_CNTL_00x00000000CB_COLOR0_ATTRIB0x00012000CB_COLOR1_ATTRIB0x00000000CB_COLOR0_INFO/CB_COLOR1_INFO0x00040730The title resolves a 4x target into a single-sample one with multisample rasterization disabled.
PA_SC_AA_CONFIGstill holds 2x from the draws before it. WithMSAA_ENABLEclear, the scan converter rasterizes at the pixel centre and does not usePA_SC_AA_CONFIG's sample count, so the CB resolves CB0 at CB0's ownNUM_SAMPLES.DecodeColorMetadataPassalready takes the count from CB0 whenPA_SC_AA_CONFIGis single-sample (the PPSA36082 case in the debt entry). Now it also does so whenMSAA_ENABLEis off, and it compares the two counts only when multisample rasterization is on. WithMSAA_ENABLEset, a mismatch still throws as before.metadataPassTestscovers the case: the existing "differs from the rasterizer's" queue withMSAA_ENABLEcleared decodes as a resolve with CB0's sample count. The CB resolve sample count debt entry records the title and register values.Tested
mainwith only this change gets past the photo scene, where it stopped every time before, and keeps playing.agc_driver_graphics_testsbuilt on Windows with the change.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)