Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GS-TC: Fix bugs with target resize and borders in texture min max #8906

Merged
merged 1 commit into from
May 30, 2023

Conversation

refractionpcsx2
Copy link
Member

@refractionpcsx2 refractionpcsx2 commented May 27, 2023

Description of Changes

Fix some resizing bugs when tex is RT and it needs to resize the target, and don't resize when shuffles are involved.
Also fix an annoyance with texture min/max calculation.

Rationale behind Changes

The resizing was resizing down if it was reading strips of an RT but growing in the other direction, but also we weren't resizing if the BP's matched. Also if it was a shuffle/recursive draw there's no need to resize the texture (this breaks 50 Cent)

The scenario in Texture Min/Max was that it was doing a bilinear draw, so we add -0.5/0.5 to the coordinates to make sure we get whole pixels, however if the min X and Y was 0 they ended up as -1 (because we do floor(-0.5) on them, basically), causing the border check to think it was wrapping when this isn't the case.

Suggested Testing Steps

Just test an array of games, including the intro for Splinter Cell Pandora Tomorrow.

Dump runner showed a lot of differences again, however I think it was just reversing whatever happened in #8454 as they were all changes you couldn't really see.

Fixes Pandora Tomorrow intro screen.

Master:
image

PR:
image

@lightningterror lightningterror merged commit d880f8c into master May 30, 2023
20 checks passed
@lightningterror lightningterror deleted the gs_resizeexactmatch branch May 30, 2023 11:32
@King27021
Copy link

Breaks Test drive Eve of Destruction

@kamfretoz
Copy link
Contributor

Breaks Test drive Eve of Destruction

Could you elaborate further on how it breaks?

@refractionpcsx2
Copy link
Member Author

Tried Test Drive - Eve of Destruction, menus are fine, did a race, that was all fine.

I see no problems with it. If you're having issues, I suggest you visit the discord.

@King27021
Copy link

v1.7.4541 works fine I just went back to it. Flickering was my problems in v1.7.4542. Menu's and even racing you can see flickering.

@Mrlinkwii
Copy link
Contributor

Mrlinkwii commented Jul 9, 2023

@King27021 please use the discord/forums for support

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.

None yet

6 participants