Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@veka0
Copy link
Contributor

@veka0 veka0 commented Jul 3, 2025

This PR clarifies behavior of csa parameter in sceGuClutMode.

Previously it was described as Read-out start location (16-palette units) which implies that it offsets the palette by 16 colors while in reality csa value is shifted to the left by 4 and bitwise ORed with color index. This behavior differs from arithmetic addition for color index values larger than 15 as in that case color index bits will overlap csa bits and create results that are very different from expected 16 unit palette shift.

Copy link
Member

@fjtrujy fjtrujy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sharkwouter sharkwouter merged commit 1e69b7c into pspdev:master Jul 3, 2025
1 check passed
@sharkwouter
Copy link
Member

Thanks!

@veka0 veka0 deleted the sceGuClutMode-docs-improvement branch July 3, 2025 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants