aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache/texture_cache.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-11-19 22:23:48 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-19 23:02:04 +0100
commitefe634608efb7bdeb1903a2f15dd4d5113bd35c7 (patch)
tree56e4a01898b3ec79545113d95d9b43035a411284 /src/video_core/texture_cache/texture_cache.h
parent5e58fd30b6251a35f9ab936c9d5acecfb9c36a93 (diff)
TextureCache: Further fixes on resolve algorithm.
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r--src/video_core/texture_cache/texture_cache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 06257f0647..4188f93c5a 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -1096,13 +1096,13 @@ typename TextureCache<P>::BlitImages TextureCache<P>::GetBlitImages(
if (GetFormatType(dst_info.format) != GetFormatType(src_info.format)) {
continue;
}
- src_id = FindOrInsertImage(src_info, src_addr);
- RelaxedOptions dst_options{};
+ RelaxedOptions find_options{};
if (src_info.num_samples > 1) {
// it's a resolve, we must enforce the same format.
- dst_options = RelaxedOptions::ForceBrokenViews;
+ find_options = RelaxedOptions::ForceBrokenViews;
}
- dst_id = FindOrInsertImage(dst_info, dst_addr, dst_options);
+ src_id = FindOrInsertImage(src_info, src_addr, find_options);
+ dst_id = FindOrInsertImage(dst_info, dst_addr, find_options);
} while (has_deleted_images);
return BlitImages{
.dst_id = dst_id,