mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-28 13:28:03 +03:00
fix: Texture cache image type assert.
This commit is contained in:
parent
cda421434b
commit
5b0205bc59
1 changed files with 5 additions and 7 deletions
|
@ -326,13 +326,11 @@ ImageId TextureCache::FindImage(BaseDesc& desc, FindFlags flags) {
|
|||
info.pixel_format != cache_image.info.pixel_format) {
|
||||
continue;
|
||||
}
|
||||
if (!(cache_image.info.type == info.type || info.size == Extent3D{1, 1, 1} ||
|
||||
static_cast<bool>(flags & FindFlags::RelaxFmt))) {
|
||||
ASSERT_MSG(false, "Image cache type mismatch: cache={}, info={}",
|
||||
int(cache_image.info.type), int(info.type));
|
||||
image_id = cache_id;
|
||||
break;
|
||||
}
|
||||
ASSERT_MSG((cache_image.info.type == info.type || info.size == Extent3D{1, 1, 1} ||
|
||||
True(flags & FindFlags::RelaxFmt)),
|
||||
"Image cache type mismatch: cache={}, info={}",
|
||||
vk::to_string(cache_image.info.type), vk::to_string(info.type));
|
||||
image_id = cache_id;
|
||||
}
|
||||
|
||||
if (True(flags & FindFlags::NoCreate) && !image_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue