From 1860a73d58b8bbb265eef8acdd4cf8dcfa0a0ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 12 Mar 2023 23:14:20 +0100 Subject: [PATCH] Address feedback from previous PR --- Common/Thread/ParallelLoop.cpp | 6 +++--- GPU/Common/ReplacedTexture.cpp | 3 +-- GPU/Common/TextureCacheCommon.cpp | 4 ++-- GPU/Vulkan/TextureCacheVulkan.cpp | 3 --- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Common/Thread/ParallelLoop.cpp b/Common/Thread/ParallelLoop.cpp index 18ec756e4e..2b5f8b0606 100644 --- a/Common/Thread/ParallelLoop.cpp +++ b/Common/Thread/ParallelLoop.cpp @@ -111,8 +111,8 @@ void ParallelRangeLoop(ThreadManager *threadMan, const std::functionstatus |= TexCacheEntry::STATUS_TO_REPLACE; break; - default: - break; + default: + break; } replacementTimeThisFrame_ += time_now_d() - replaceStart; return replaced; diff --git a/GPU/Vulkan/TextureCacheVulkan.cpp b/GPU/Vulkan/TextureCacheVulkan.cpp index 6417bb8491..e18fd7c5d5 100644 --- a/GPU/Vulkan/TextureCacheVulkan.cpp +++ b/GPU/Vulkan/TextureCacheVulkan.cpp @@ -455,9 +455,6 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) { Draw::DataFormat fmt = plan.replaced->Format(); bcFormat = Draw::DataFormatIsBlockCompressed(fmt, &bcAlign); actualFmt = ToVulkanFormat(fmt); - if (actualFmt != VULKAN_8888_FORMAT) { - actualFmt = actualFmt; - } } bool computeUpload = false;