diff options
| author | 2023-10-16 04:29:24 +1100 | |
|---|---|---|
| committer | 2023-10-16 04:29:24 +1100 | |
| commit | 4b0291172eed95df5f491d03b68ff6243b61793a (patch) | |
| tree | 3423336abf5f53a92614815017db24b6123ef3b7 /src | |
| parent | use texelfetch instead of texturelod (diff) | |
| download | yuzu-4b0291172eed95df5f491d03b68ff6243b61793a.tar.gz yuzu-4b0291172eed95df5f491d03b68ff6243b61793a.tar.xz yuzu-4b0291172eed95df5f491d03b68ff6243b61793a.zip | |
meant to add the unorms as well
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index f913a99b9..a4ee9295f 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp | |||
| @@ -1236,7 +1236,9 @@ void TextureCacheRuntime::ConvertImage(Framebuffer* dst, ImageView& dst_view, Im | |||
| 1236 | } | 1236 | } |
| 1237 | break; | 1237 | break; |
| 1238 | case PixelFormat::D32_FLOAT: | 1238 | case PixelFormat::D32_FLOAT: |
| 1239 | if (src_view.format == PixelFormat::A8B8G8R8_SRGB || | 1239 | if (src_view.format == PixelFormat::A8B8G8R8_UNORM || |
| 1240 | src_view.format == PixelFormat::B8G8R8A8_UNORM || | ||
| 1241 | src_view.format == PixelFormat::A8B8G8R8_SRGB || | ||
| 1240 | src_view.format == PixelFormat::B8G8R8A8_SRGB) { | 1242 | src_view.format == PixelFormat::B8G8R8A8_SRGB) { |
| 1241 | return blit_image_helper.ConvertABGR8ToD32F(dst, src_view); | 1243 | return blit_image_helper.ConvertABGR8ToD32F(dst, src_view); |
| 1242 | } | 1244 | } |