This commit is contained in:
Kelebek1
2021-05-28 20:25:42 +01:00
parent 3fd2fc430e
commit eb7c642069
2 changed files with 4 additions and 4 deletions

View File

@@ -62,8 +62,8 @@ ImageBase::ImageBase(const ImageInfo& info_, GPUVAddr gpu_addr_, VAddr cpu_addr_
unswizzled_size_bytes{CalculateUnswizzledSizeBytes(info)}, unswizzled_size_bytes{CalculateUnswizzledSizeBytes(info)},
converted_size_bytes{CalculateConvertedSizeBytes(info)}, gpu_addr{gpu_addr_}, converted_size_bytes{CalculateConvertedSizeBytes(info)}, gpu_addr{gpu_addr_},
cpu_addr{cpu_addr_}, cpu_addr_end{cpu_addr + guest_size_bytes}, cpu_addr{cpu_addr_}, cpu_addr_end{cpu_addr + guest_size_bytes},
last_access_time{std::chrono::steady_clock::now()}, last_access_time{std::chrono::steady_clock::now()}, mip_level_offsets{
mip_level_offsets{CalculateMipLevelOffsets(info)} { CalculateMipLevelOffsets(info)} {
if (info.type == ImageType::e3D) { if (info.type == ImageType::e3D) {
slice_offsets = CalculateSliceOffsets(info); slice_offsets = CalculateSliceOffsets(info);
slice_subresources = CalculateSliceSubresources(info); slice_subresources = CalculateSliceSubresources(info);

View File

@@ -405,8 +405,8 @@ void TextureCache<P>::TickFrame() {
} }
} }
if (num_removed > 0) { if (num_removed > 0) {
LOG_INFO(HW_Memory, "Removed {} images from texture cache, new cache size: {}.", num_removed, LOG_INFO(HW_Memory, "Removed {} images from texture cache, new cache size: {}.",
images_in_cache.size()); num_removed, images_in_cache.size());
} }
gc_timer = now; gc_timer = now;
} }