Match stencil associations by guest range and extent

PPSA30279
This commit is contained in:
nmzik
2026-09-17 09:01:36 +04:00
parent 235e24d44f
commit 47957faa16
2 changed files with 61 additions and 2 deletions
+2 -1
View File
@@ -1237,7 +1237,8 @@ void TextureCache::AssociateStencil(ImageId depth_id, GuestRange stencil) {
ImageId association {};
for (const auto id: FindImagesInRegion(stencil.address, stencil.size, false)) {
const auto owner = m_slot_images.try_get(id);
if (owner != nullptr && owner->info.data.address == stencil.address) {
if (owner != nullptr && owner->info.data == stencil &&
owner->info.extent == depth.info.extent) {
association = id;
}
}