summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/texture_cache.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-11-19 03:17:54 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-19 03:17:54 +0100
commitb130f648d7c629411c487722f864c6bafcd2562c (patch)
tree5feb8b55b918553a0c50782438098174e528fbdc /src/video_core/texture_cache/texture_cache.h
parentVulkan: implement D24S8 <-> RGBA8 convertions. (diff)
downloadyuzu-b130f648d7c629411c487722f864c6bafcd2562c.tar
yuzu-b130f648d7c629411c487722f864c6bafcd2562c.tar.gz
yuzu-b130f648d7c629411c487722f864c6bafcd2562c.tar.bz2
yuzu-b130f648d7c629411c487722f864c6bafcd2562c.tar.lz
yuzu-b130f648d7c629411c487722f864c6bafcd2562c.tar.xz
yuzu-b130f648d7c629411c487722f864c6bafcd2562c.tar.zst
yuzu-b130f648d7c629411c487722f864c6bafcd2562c.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/texture_cache/texture_cache.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 241f71a91..5ade3ce55 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -475,6 +475,7 @@ void TextureCache<P>::BlitImage(const Tegra::Engines::Fermi2D::Surface& dst,
const BlitImages images = GetBlitImages(dst, src);
const ImageId dst_id = images.dst_id;
const ImageId src_id = images.src_id;
+
PrepareImage(src_id, false, false);
PrepareImage(dst_id, true, false);
@@ -1094,12 +1095,8 @@ typename TextureCache<P>::BlitImages TextureCache<P>::GetBlitImages(
if (GetFormatType(dst_info.format) != GetFormatType(src_info.format)) {
continue;
}
- if (!dst_id) {
- dst_id = InsertImage(dst_info, dst_addr, RelaxedOptions{});
- }
- if (!src_id) {
- src_id = InsertImage(src_info, src_addr, RelaxedOptions{});
- }
+ src_id = FindOrInsertImage(src_info, src_addr);
+ dst_id = FindOrInsertImage(dst_info, dst_addr);
} while (has_deleted_images);
return BlitImages{
.dst_id = dst_id,