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

rsx: Rebuild shader texture state if we detect a silent mismatch #14420

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

kd-11
Copy link
Contributor

@kd-11 kd-11 commented Aug 3, 2023

In some cases, we may have to update a texture reference without the RSX state having changed. This can happen for example if the game tries to use a color texture for depth read, so we swap the color texture with a depth one in-place. In this case, we would detect the change and switch the texture, but the shader would still be expecting the original texture because core RSX registers relating to texturing were not changed.
If we trivially detect the format class changed, reload the shader texture state. This isn't sophisticated, but should work for all of cases that would result in a crash.

Fixes #14071

@Megamouse Megamouse added the RSX label Aug 3, 2023
@Ordinary205
Copy link
Contributor

Can confirm that this fixes an issue.
Evil within
RPCS3.log.gz

@kd-11 kd-11 merged commit 26ecd88 into RPCS3:master Aug 4, 2023
5 checks passed
@kd-11 kd-11 deleted the tew-crash branch August 9, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BCKS10276] The Evil Within (Intro random crash)
3 participants