mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
vk_compute_pipeline: Add missing meta check
This commit is contained in:
@@ -221,7 +221,7 @@ ImageId TextureCache::FindImage(const ImageInfo& info, FindFlags flags) {
|
||||
!IsVulkanFormatCompatible(info.pixel_format, cache_image.info.pixel_format)) {
|
||||
continue;
|
||||
}
|
||||
ASSERT(cache_image.info.type == info.type || True(flags & FindFlags::RelaxFmt));
|
||||
ASSERT((cache_image.info.type == info.type || info.size == Extent3D{1, 1, 1} || True(flags & FindFlags::RelaxFmt)));
|
||||
image_id = cache_id;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,10 @@ struct Extent3D {
|
||||
u32 depth;
|
||||
|
||||
auto operator<=>(const Extent3D&) const = default;
|
||||
|
||||
bool operator==(const Extent3D& other) const {
|
||||
return width == other.width && height == other.height && depth == other.depth;
|
||||
}
|
||||
};
|
||||
|
||||
struct SubresourceLayers {
|
||||
|
||||
Reference in New Issue
Block a user