diff options
author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-08-06 20:55:05 +0200 |
---|---|---|
committer | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-08-06 20:55:05 +0200 |
commit | 9058486b9b9833d0554d3e3f11a582859657b21f (patch) | |
tree | fe16d174b54119a593b43c01f89c8ff1d4e1f3cf /src/video_core/texture_cache/texture_cache.h | |
parent | HACK: Avoid swizzling and reuploading ASTC image every frame (diff) | |
download | yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.gz yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.bz2 yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.lz yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.xz yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.zst yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 6b87987de..4457b366f 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -1021,18 +1021,8 @@ void TextureCache<P>::UploadImageContents(Image& image, StagingBuffer& staging) const GPUVAddr gpu_addr = image.gpu_addr; if (True(image.flags & ImageFlagBits::AcceleratedUpload)) { - static u64 last_size = 0; - bool has_run = false; - if (last_size == image.unswizzled_size_bytes) { - has_run = true; - } - last_size = image.unswizzled_size_bytes; - - if (!has_run) { - LOG_ERROR(Debug, "Called"); - gpu_memory->ReadBlock(gpu_addr, mapped_span.data(), mapped_span.size_bytes(), - VideoCommon::CacheType::NoTextureCache); - } + gpu_memory->ReadBlock(gpu_addr, mapped_span.data(), mapped_span.size_bytes(), + VideoCommon::CacheType::NoTextureCache); const auto uploads = FullUploadSwizzles(image.info); runtime.AccelerateImageUpload(image, staging, uploads); return; |