Adding missmatch info to Texture cache assert (#2828)

This commit is contained in:
Dmugetsu 2025-04-22 13:49:29 -06:00 committed by GitHub
parent 0c86c54d48
commit cda421434b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -326,9 +326,13 @@ ImageId TextureCache::FindImage(BaseDesc& desc, FindFlags flags) {
info.pixel_format != cache_image.info.pixel_format) { info.pixel_format != cache_image.info.pixel_format) {
continue; continue;
} }
ASSERT((cache_image.info.type == info.type || info.size == Extent3D{1, 1, 1} || if (!(cache_image.info.type == info.type || info.size == Extent3D{1, 1, 1} ||
True(flags & FindFlags::RelaxFmt))); static_cast<bool>(flags & FindFlags::RelaxFmt))) {
image_id = cache_id; ASSERT_MSG(false, "Image cache type mismatch: cache={}, info={}",
int(cache_image.info.type), int(info.type));
image_id = cache_id;
break;
}
} }
if (True(flags & FindFlags::NoCreate) && !image_id) { if (True(flags & FindFlags::NoCreate) && !image_id) {