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

RFC - Half Pixel Offset for Linear Filter #13048

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

PatrickFerry
Copy link
Member

@PatrickFerry PatrickFerry commented Sep 3, 2024

This is just for feedback on approach to tackling the issue with using even IRs with "Scaled EFB Copies" disabled.

It's currently got #12982 included but that commit will be removed when that PR is merged and this will then be rebased on master again.

This fixes the corrupted minimap for Twilight Princess for GC, which is this issue, when using even IRs with "Scaled EFB Copies" disabled.

This also fixes the graphical issues in Sonic Heroes, which is this old issue, which again occurs with using even IRs with "Scaled EFB Copies" disabled.

This reverses the clamping since it is an issue in OpenGL where the clamping for the top was clamping the bottom and vice versa.

clamp_tb (ie clamp_top and clamp_bottom) now store the clamping amount relative to the top and bottom rather than absolute values.
This seems to be a problem for even IRs when the user does not use the scaled EFB copies setting
@TryTwo
Copy link
Contributor

TryTwo commented Sep 8, 2024

I want to note something that exists in the the Main branch and is not affected by your changes: I'm not sure if it's an "issue" but when you go to 2x IR with scaled efb = off, the whole screen shifts up and left by ~1 pixel. It may also be present in higher even IRs, but due to the increased resolution the offset might not be obvious. I think it is more obvious in games that display small EFB copies, because the offset of 1 pixel is more pronounced (xenoblade torch bloom).

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

Successfully merging this pull request may close these issues.

2 participants