mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-23 10:49:11 +00:00
Adding missmatch info to Texture cache assert (#2828)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
This commit is contained in:
parent
0c86c54d48
commit
cda421434b
1 changed files with 7 additions and 3 deletions
|
@ -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))) {
|
||||||
|
ASSERT_MSG(false, "Image cache type mismatch: cache={}, info={}",
|
||||||
|
int(cache_image.info.type), int(info.type));
|
||||||
image_id = cache_id;
|
image_id = cache_id;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (True(flags & FindFlags::NoCreate) && !image_id) {
|
if (True(flags & FindFlags::NoCreate) && !image_id) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue