From 2ea449f71af4cdd887f4fad6be44ba624c1a40fc Mon Sep 17 00:00:00 2001 From: CamilleLaVey Date: Fri, 28 Aug 2026 00:09:30 -0400 Subject: [PATCH] Just another change --- .../renderer_vulkan/vk_texture_cache.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index e92f6e5e18..58362a65f4 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -1020,6 +1020,20 @@ TextureCacheRuntime::TextureCacheRuntime(const Device& device_, Scheduler& sched view_formats[index_a].push_back(view_info.format); } } + if (IsPixelFormatASTC(image_format) || IsPixelFormatBCn(image_format)) { + continue; + } + const PixelFormat unswizzle_format = + UnswizzleViewFormat(VideoCore::Surface::BytesPerBlock(image_format)); + if (unswizzle_format == PixelFormat::Invalid) { + continue; + } + const auto unswizzle_info = + MaxwellToVK::SurfaceFormat(device, FormatType::Optimal, false, unswizzle_format); + auto& formats = view_formats[index_a]; + if (std::ranges::find(formats, unswizzle_info.format) == formats.end()) { + formats.push_back(unswizzle_info.format); + } } if (Settings::values.gpu_unswizzle_enabled.GetValue()) {