diff options
| author | 2021-10-07 02:15:16 -0400 | |
|---|---|---|
| committer | 2021-11-16 22:11:30 +0100 | |
| commit | 89a7e566c7a101d688e96641cc2a485f2da54d4b (patch) | |
| tree | 4befc90f801f552f2efba6f477396b6f359524ce /src/video_core/renderer_vulkan | |
| parent | vk_texture_cache: Fix early returns on unsupported scales (diff) | |
| download | yuzu-89a7e566c7a101d688e96641cc2a485f2da54d4b.tar.gz yuzu-89a7e566c7a101d688e96641cc2a485f2da54d4b.tar.xz yuzu-89a7e566c7a101d688e96641cc2a485f2da54d4b.zip | |
vk_texture_cache: Fix unsupported blit format error checking
Diffstat (limited to 'src/video_core/renderer_vulkan')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 1ab2b1fe9..65506f75e 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp | |||
| @@ -1137,11 +1137,11 @@ bool Image::ScaleUp() { | |||
| 1137 | const auto& device = runtime->device; | 1137 | const auto& device = runtime->device; |
| 1138 | const PixelFormat format = StorageFormat(info.format); | 1138 | const PixelFormat format = StorageFormat(info.format); |
| 1139 | const auto format_info = MaxwellToVK::SurfaceFormat(device, FormatType::Optimal, false, format); | 1139 | const auto format_info = MaxwellToVK::SurfaceFormat(device, FormatType::Optimal, false, format); |
| 1140 | const auto similar = device.GetSupportedFormat( | 1140 | const auto blit_usage = VK_FORMAT_FEATURE_BLIT_SRC_BIT | VK_FORMAT_FEATURE_BLIT_DST_BIT; |
| 1141 | format_info.format, (VK_FORMAT_FEATURE_BLIT_SRC_BIT | VK_FORMAT_FEATURE_BLIT_DST_BIT), | 1141 | if (!device.IsFormatSupported(format_info.format, blit_usage, FormatType::Optimal)) { |
| 1142 | FormatType::Optimal); | 1142 | LOG_ERROR(Render_Vulkan, "Device does not support scaling format {}", format); |
| 1143 | if (similar != format_info.format) { | 1143 | // TODO: Use helper blits where applicable |
| 1144 | return true; | 1144 | return false; |
| 1145 | } | 1145 | } |
| 1146 | if (!scaled_image) { | 1146 | if (!scaled_image) { |
| 1147 | const u32 up = resolution.up_scale; | 1147 | const u32 up = resolution.up_scale; |