Skip to content

Fix depal bounds with dynamic CLUT. Fixes lens flare glitches in Ridge Racer - #16188

Merged
hrydgard merged 1 commit into
masterfrom
ridge-racer-sun-flare
Oct 9, 2022
Merged

hrydgard merged 1 commit into
masterfrom
ridge-racer-sun-flare

Conversation

@hrydgard

@hrydgard hrydgard commented Oct 9, 2022 •

Copy link
Copy Markdown
Owner

Though doesn't fully fix the lens flare, see below and issue #16083.

With this wrong, we ended up drawing pixels that came from a DONT_CARE init of the depal temp buffer, which was a pile of garbage on Android and blank on PC.

Now, we seem to end up not drawing anything because the depal operation results in transparent black instead of whatever is actually intended, but at least the screen isn't full of glitches when the sun is visible on Adreno.

@hrydgard hrydgard added the GE emulation Backend-independent GPU issues label Oct 9, 2022
@hrydgard hrydgard added this to the v1.14.0 milestone Oct 9, 2022
Comment thread GPU/Common/TextureCacheCommon.cpp Outdated
…e Racer

With this wrong, we ended up drawing pixels that came from a DONT_CARE
init of the depal temp buffer, which was a pile of garbage on Android
and blank on PC.

Now, we seem to end up not drawing anything because the depal operation
results in transparent black into whatever is actually intended, but at
least the screen isn't full of glitches when the sun is visible on Adreno.

See issue #16083
@hrydgard
hrydgard force-pushed the ridge-racer-sun-flare branch from ec1c88a to 9422b05 Compare October 9, 2022 18:27
@hrydgard
hrydgard merged commit f21fd36 into master Oct 9, 2022
@hrydgard
hrydgard deleted the ridge-racer-sun-flare branch October 9, 2022 18:28
hrydgard added a commit that referenced this pull request Oct 9, 2022
Followup to #16188 .

Further fixes the lens flare.

It confused me before that there are two sections of the track on
Sunset Drive where the sun is visible, but only on the second is the
lens flare sprite actually shown, which is rather weird.

Verified that exactly the same thing happens on hardware, so it's not a
glitch!
hrydgard added a commit that referenced this pull request Oct 9, 2022
Followup to #16188 .

Further fixes the lens flare.

It confused me before that there are two sections of the track on
Sunset Drive where the sun is visible, but only on the second is the
lens flare sprite actually shown, which is rather weird.

Verified that exactly the same thing happens on hardware, so it's not a
an emulation problem! Rather seems like a glitch in the game itself.
Nemoumbra pushed a commit to Nemoumbra/ppsspp that referenced this pull request Oct 10, 2022
Followup to hrydgard#16188 .

Further fixes the lens flare.

It confused me before that there are two sections of the track on
Sunset Drive where the sun is visible, but only on the second is the
lens flare sprite actually shown, which is rather weird.

Verified that exactly the same thing happens on hardware, so it's not a
an emulation problem! Rather seems like a glitch in the game itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GE emulation Backend-independent GPU issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants