Skip to content

GS/HW: Various small fixes - #14782

Open
refractionpcsx2 wants to merge 4 commits into
masterfrom
gs_randomfixes
Open

GS/HW: Various small fixes#14782
refractionpcsx2 wants to merge 4 commits into
masterfrom
gs_randomfixes

Conversation

@refractionpcsx2

@refractionpcsx2 refractionpcsx2 commented Jul 28, 2026

Copy link
Copy Markdown
Member

Description of Changes

Fixes various small things, GPU CLUT when the CLUT block pointer is badly offset in to the page now ignored, alpha channels of CT24 gets updated if the alpha is valid, restrict the CPU Sprite Render from being used if the FBMSK (framebuffer mask) is not of a valid combination which can be represented by a format for invalidation, and detect width mismatches on source textures that are based on the alpha channel of a target.

Rationale behind Changes

GPU CLUT Changes: Having block offsets which are not 4 block aligned in the HW renderer don't work correctly as we don't support swizzling, so this can result in bad information, so best avoid GPU CLUT.
Alpha Updates: Sometimes formats can switch between CT24 and CT32, leaving valid alpha information, so it's good to keep this updated in case it gets used.
CPU Sprite Renderer: If the framebuffer is partially masked on the alpha or RGB, it will invalidate perfectly valid data, so we need to avoid using it in situations where we can't invalidate either just RGB or Alpha.
Source Textures: Some games (mainly Japanese ones) store fonts etc in the alpha channel of the framebuffer, but they tend to be read at a different pitch than the main framebuffer which doesn't work very well in the hardware renderer, and we don't currently have a way to reorganise the pages nicely, so now it just refuses to use the target.

Suggested Testing Steps

Test below games and some random other games.

Did you use AI to help find, test, or implement this issue or feature?

No

Fixes #971

Kuon:
Master:
image
PR:
image

MotoGP:
Master:
image
PR:
image

Smash Court Tennis Pro Tournament:
Master:
image
PR:
image

Ultimate Spider-Man: (look at the bottom of the frames, but also the doors when in motion)
Master:
image
PR:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GSdx Hardware] Smash Court Tennis Pro Tournament 2 [PAL]

2 participants