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

texture_cache: Do not overwrite overlap hit with a miss. #2217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

squidbus
Copy link
Collaborator

@squidbus squidbus commented Jan 23, 2025

When resolving overlaps, don't overwrite an overlap hit with a miss.

Fixes fog effect in battles in CUSA16404 incorrectly covering the entire screen. The depth buffer was not being matched and instead a new, empty color image was being created.

@squidbus squidbus requested a review from psucien January 23, 2025 09:26
@georgemoralis
Copy link
Collaborator

omg squidwars are back again!

@bigol83
Copy link
Contributor

bigol83 commented Jan 23, 2025

i checked this with Red Dead Redemption and it always crashes ingame a bit before starting the first mission with this log error

[Debug] <Critical> vk_scheduler.cpp:operator():155: Assertion Failed!
Device lost during submit

@squidbus squidbus marked this pull request as draft January 23, 2025 10:43
@squidbus
Copy link
Collaborator Author

Marking as draft, I think this should actually already be solved but is creating and returning the wrong image for some reason.

@squidbus squidbus changed the title texture_cache: Consider depth/stencil viewable image match as compatible. texture_cache: Do not overwrite overlap hit with a miss. Jan 23, 2025
@squidbus squidbus marked this pull request as ready for review January 23, 2025 11:03
@squidbus
Copy link
Collaborator Author

This should be correct now.

@bigol83
Copy link
Contributor

bigol83 commented Jan 23, 2025

This should be correct now.

It doesn't crash anymore 👍

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

Successfully merging this pull request may close these issues.

3 participants