diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-26 15:20:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-26 15:20:12 +0100 |
commit | 26c1edf2f083399a594a834bdd36be85369819f7 (patch) | |
tree | e0d76a17a7c452ed21bb74bcecce8422bab461da /src/video_core/renderer_vulkan | |
parent | Merge pull request #9824 from german77/burning-profiles (diff) | |
parent | configuration: Add async ASTC decode setting (diff) | |
download | yuzu-26c1edf2f083399a594a834bdd36be85369819f7.tar yuzu-26c1edf2f083399a594a834bdd36be85369819f7.tar.gz yuzu-26c1edf2f083399a594a834bdd36be85369819f7.tar.bz2 yuzu-26c1edf2f083399a594a834bdd36be85369819f7.tar.lz yuzu-26c1edf2f083399a594a834bdd36be85369819f7.tar.xz yuzu-26c1edf2f083399a594a834bdd36be85369819f7.tar.zst yuzu-26c1edf2f083399a594a834bdd36be85369819f7.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 9b85dfb5e..80adb70eb 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -1256,11 +1256,12 @@ Image::Image(TextureCacheRuntime& runtime_, const ImageInfo& info_, GPUVAddr gpu commit(runtime_.memory_allocator.Commit(original_image, MemoryUsage::DeviceLocal)), aspect_mask(ImageAspectMask(info.format)) { if (IsPixelFormatASTC(info.format) && !runtime->device.IsOptimalAstcSupported()) { - if (Settings::values.accelerate_astc.GetValue()) { + if (Settings::values.async_astc.GetValue()) { + flags |= VideoCommon::ImageFlagBits::AsynchronousDecode; + } else if (Settings::values.accelerate_astc.GetValue()) { flags |= VideoCommon::ImageFlagBits::AcceleratedUpload; - } else { - flags |= VideoCommon::ImageFlagBits::Converted; } + flags |= VideoCommon::ImageFlagBits::Converted; flags |= VideoCommon::ImageFlagBits::CostlyLoad; } if (runtime->device.HasDebuggingToolAttached()) { |