Skip to content

texture_cache: Handle image overlap when guest_size differs with same resource levels#4135

Open
psabhishek26 wants to merge 1 commit intoshadps4-emu:mainfrom
psabhishek26:main
Open

texture_cache: Handle image overlap when guest_size differs with same resource levels#4135
psabhishek26 wants to merge 1 commit intoshadps4-emu:mainfrom
psabhishek26:main

Conversation

@psabhishek26
Copy link
Copy Markdown

Fixes a crash (UNREACHABLE) in ResolveOverlap when the guest requests an image at the same address with the same format, tile mode, and dimensions, but with a different array layer count that results in a larger guest_size while having fewer or equal mip levels.

When the new image has a larger guest_size, the cached image is now unconditionally freed since it is definitively superseded. When the cached image is larger or equal, it is reused as a compatible view source.

Tested with Red Dead Redemption CUSA36843

… resource levels

Fixes a crash (UNREACHABLE) in ResolveOverlap when the guest requests
an image at the same address with the same format, tile mode, and
dimensions, but with a different array layer count that results in a
larger guest_size while having fewer or equal mip levels.

When the new image has a larger guest_size, the cached image is now
unconditionally freed since it is definitively superseded. When the
cached image is larger or equal, it is reused as a compatible view
source.

Signed-off-by: psabhishek26 <sploitpay.aosp.test@gmail.com>
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.

1 participant