diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-04 05:56:44 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-04 06:06:40 +0100 |
commit | 7d904fef2e6ac9ce8a3df71e758a36d39b8f69e5 (patch) | |
tree | 5bdc2bdcf8b5aeb594a3a2b16c183b13d6fe2771 /src/video_core/texture_cache/image_base.cpp | |
parent | gl_texture_cache: Create base images with sRGB (diff) | |
download | yuzu-7d904fef2e6ac9ce8a3df71e758a36d39b8f69e5.tar yuzu-7d904fef2e6ac9ce8a3df71e758a36d39b8f69e5.tar.gz yuzu-7d904fef2e6ac9ce8a3df71e758a36d39b8f69e5.tar.bz2 yuzu-7d904fef2e6ac9ce8a3df71e758a36d39b8f69e5.tar.lz yuzu-7d904fef2e6ac9ce8a3df71e758a36d39b8f69e5.tar.xz yuzu-7d904fef2e6ac9ce8a3df71e758a36d39b8f69e5.tar.zst yuzu-7d904fef2e6ac9ce8a3df71e758a36d39b8f69e5.zip |
Diffstat (limited to 'src/video_core/texture_cache/image_base.cpp')
-rw-r--r-- | src/video_core/texture_cache/image_base.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/image_base.cpp b/src/video_core/texture_cache/image_base.cpp index 448a05fcc..959b3f115 100644 --- a/src/video_core/texture_cache/image_base.cpp +++ b/src/video_core/texture_cache/image_base.cpp @@ -120,7 +120,9 @@ void AddImageAlias(ImageBase& lhs, ImageBase& rhs, ImageId lhs_id, ImageId rhs_i if (lhs.info.type == ImageType::Linear) { base = SubresourceBase{.level = 0, .layer = 0}; } else { - base = FindSubresource(rhs.info, lhs, rhs.gpu_addr, OPTIONS); + // We are passing relaxed formats as an option, having broken views or not won't matter + static constexpr bool broken_views = false; + base = FindSubresource(rhs.info, lhs, rhs.gpu_addr, OPTIONS, broken_views); } if (!base) { LOG_ERROR(HW_GPU, "Image alias should have been flipped"); |