diff options
author | GPUCode <geoster3d@gmail.com> | 2023-05-28 11:06:32 +0200 |
---|---|---|
committer | GPUCode <geoster3d@gmail.com> | 2023-07-01 15:03:29 +0200 |
commit | 95cefaf993e46414476e9d3319f6a08e0e213eac (patch) | |
tree | b015c76b2ddd5f940070d4428b0498521f30e9ee /src/video_core/texture_cache/util.cpp | |
parent | Update translations (2023-07-01) (#10972) (diff) | |
download | yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar.gz yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar.bz2 yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar.lz yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar.xz yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.tar.zst yuzu-95cefaf993e46414476e9d3319f6a08e0e213eac.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/util.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp index 9a618a57a..0de6ed09d 100644 --- a/src/video_core/texture_cache/util.cpp +++ b/src/video_core/texture_cache/util.cpp @@ -1201,8 +1201,7 @@ std::optional<SubresourceBase> FindSubresource(const ImageInfo& candidate, const // Format checking is relaxed, but we still have to check for matching bytes per block. // This avoids creating a view for blits on UE4 titles where formats with different bytes // per block are aliased. - if (BytesPerBlock(existing.format) != BytesPerBlock(candidate.format) && - False(options & RelaxedOptions::FormatBpp)) { + if (BytesPerBlock(existing.format) != BytesPerBlock(candidate.format)) { return std::nullopt; } } else { @@ -1233,11 +1232,7 @@ std::optional<SubresourceBase> FindSubresource(const ImageInfo& candidate, const } const bool strict_size = False(options & RelaxedOptions::Size); if (!IsBlockLinearSizeCompatible(existing, candidate, base->level, 0, strict_size)) { - if (False(options & RelaxedOptions::FormatBpp)) { - return std::nullopt; - } else if (!IsBlockLinearSizeCompatibleBPPRelaxed(existing, candidate, base->level, 0)) { - return std::nullopt; - } + return std::nullopt; } // TODO: compare block sizes return base; |