diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-07-02 17:38:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-02 17:38:21 -0400 |
| commit | d81539ed2dab5a95877e7ea278c1a6ff5091f76b (patch) | |
| tree | 3e4b85ba87828fbde889d35b598019bf3e866cc0 /src/video_core/texture_cache/util.cpp | |
| parent | 6145c3edd0dda9eed83d7d494246630f939420fb (diff) | |
| parent | 4270b443f817b99389a4a046afaabb7b46225748 (diff) | |
Merge pull request #10479 from GPUCode/format-list
Add support for VK_KHR_image_format_list
Diffstat (limited to 'src/video_core/texture_cache/util.cpp')
| -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 9a618a57a1..0de6ed09d9 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; |
