video_core: Remove assert in AccelerateTextureCopy (#1092)

This commit is contained in:
PabloMK7 2025-05-31 14:25:57 +02:00 committed by GitHub
parent cf87efa3c0
commit ad97506867
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -244,7 +244,13 @@ bool RasterizerCache<T>::AccelerateTextureCopy(const Pica::DisplayTransferConfig
return false;
}
ASSERT(src_rect.GetWidth() == dst_rect.GetWidth());
if (src_rect.GetWidth() != dst_rect.GetWidth()) {
LOG_ERROR(
HW_GPU,
"Surface source and destination width mismatch, skipping... src_width={}, dst_width={}",
src_rect.GetWidth(), dst_rect.GetHeight());
return false;
}
const TextureCopy texture_copy = {
.src_level = src_surface.LevelOf(src_params.addr),