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

GPU: Fix safe size checks when rect offscreen #13941

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

unknownbrackets
Copy link
Collaborator

@unknownbrackets unknownbrackets commented Jan 18, 2021

Related to #13327 and #12858. When something had all coordinates negative, we could set safeWidth or safeHeight to negative values. This would then overflow to very positive values (since they are uint16_t) and cause incorrect clearing.

For desktop, this is the cause of #13916 (possibly also mobile.) May also be the cause of #13346 and #13344. If so perhaps we can consider removing the "skip first frame" hack.

-[Unknown]

@brujo5
Copy link

brujo5 commented Jan 18, 2021

Tested win x64 build

does not fix the problem for #13346
the solution for now is to switch to interpreter mode before the loading screen and then back to jit and so on every time.

@unknownbrackets
Copy link
Collaborator Author

If you add the game ID to [DisableFirstFrameReadback] does it change anything? Maybe it's not even related after all.

-[Unknown]

@brujo5
Copy link

brujo5 commented Jan 18, 2021

added id UCJS10085 = true in DisableFirstFrameReadback in compat.ini but nothing change.

I don't know if this helps anything but if disable LSU from jit the game work fine.

Captura de pantalla (76)

@hrydgard
Copy link
Owner

Great catch!

@hrydgard hrydgard merged commit 48bb797 into hrydgard:master Jan 18, 2021
@hrydgard hrydgard mentioned this pull request Jan 18, 2021
@unknownbrackets unknownbrackets deleted the safesize branch January 18, 2021 12:25
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.

3 participants