diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2023-02-22 06:48:12 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2023-02-23 00:21:09 +0100 |
commit | b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a (patch) | |
tree | a01027160958974738f322a491b22f009379d19b /src/video_core/renderer_vulkan | |
parent | texture_cache: Add async texture decoding (diff) | |
download | yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar.gz yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar.bz2 yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar.lz yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar.xz yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.tar.zst yuzu-b5bcd8c71b2d5fd0528191990b4e11bc916b5d7a.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()) { |