[vk] Remove improper check for image depth in texture cache. #164

Merged
Shinmegumi merged 2 commits from weakboson/eden:remove-improper-depth-check-texture-cache into master 2025-07-31 17:47:29 +02:00
Contributor

When looking for existing images, ImageBase::TryFindBase checks the depth of the existing image to be greater than the layer of the base + depth of the candidate.
However the depth of images are not updated when cache were merged causing the lookup to fail.
This commit disables this faulty check to fix a critical memory leak that crashes the emulator in some games.

When looking for existing images, ImageBase::TryFindBase checks the depth of the existing image to be greater than the layer of the base + depth of the candidate. However the depth of images are not updated when cache were merged causing the lookup to fail. This commit disables this faulty check to fix a critical memory leak that crashes the emulator in some games.
crueter changed title from [vk] Remove improper check for image depth in texture cache. to WIP: [vk] Remove improper check for image depth in texture cache. 2025-07-31 16:54:42 +02:00
Shinmegumi changed title from WIP: [vk] Remove improper check for image depth in texture cache. to [vk] Remove improper check for image depth in texture cache. 2025-07-31 17:46:58 +02:00
Shinmegumi force-pushed remove-improper-depth-check-texture-cache from 4f662e42fa to 466503adbe 2025-07-31 17:47:06 +02:00 Compare
Shinmegumi merged commit 6fd10fd85e into master 2025-07-31 17:47:29 +02:00
Sign in to join this conversation.
No description provided.