GS/CLUT: Always reload the CLUT when in Storage Mode 2#14546
Open
refractionpcsx2 wants to merge 1 commit into
Open
GS/CLUT: Always reload the CLUT when in Storage Mode 2#14546refractionpcsx2 wants to merge 1 commit into
refractionpcsx2 wants to merge 1 commit into
Conversation
Member
Author
|
It has been confirmed that the behaviour here is incorrect and it's not what we thought. Further testing is being done, but we'll see. |
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.
Description of Changes
Changes the behaviour of CLUT storage mode 2 to always load the CLUT from local memory and not in to a temporary buffer.
Rationale behind Changes
This is kind of theoretical based on the behaviour of Breath of Fire - Dragon Quarter when running a GS Dump vs PCSX2, the game will reload the CLUT in Storage Mode 1, then switch to Storage Mode 2, however the data loaded from Mode 1 is in the incorrect order, due to it being correctly swizzled and Mode 2 is sequential, meaning the main colour the text uses on the menu has black holes everywhere.
The running theory is that Mode 2 reads directly from GS memory when loading the texture cache (hence it being slower than CSM 1, along with the swizzle differences). I can't see any other way that this game would have the correct CLUT otherwise.
Ziemas is likely going to run some tests on his PS2 to try and confirm the theory, but this is the best we have for now, the dump run seems clean, to it may hold water.
Suggested Testing Steps
Test Breath of Fire - Dragon Quarter
Did you use AI to help find, test, or implement this issue or feature?
I did ask AI for some possible information on the web w/links that I failed to find and anything which backed up my theory, but didn't really help with any credible information.
Fixes #14543
Breath of Fire - Dragon Quarter

Master:
PR:
