diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-21 21:09:49 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-21 21:09:49 +0100 |
commit | d7f4434bd534d53e8aea293e39629bf8ca8ee123 (patch) | |
tree | f347825a57736f229cae3ff1978240d47aa4c03f /src | |
parent | HostShaders: Fix D24S8 convertion shaders. (diff) | |
download | yuzu-d7f4434bd534d53e8aea293e39629bf8ca8ee123.tar yuzu-d7f4434bd534d53e8aea293e39629bf8ca8ee123.tar.gz yuzu-d7f4434bd534d53e8aea293e39629bf8ca8ee123.tar.bz2 yuzu-d7f4434bd534d53e8aea293e39629bf8ca8ee123.tar.lz yuzu-d7f4434bd534d53e8aea293e39629bf8ca8ee123.tar.xz yuzu-d7f4434bd534d53e8aea293e39629bf8ca8ee123.tar.zst yuzu-d7f4434bd534d53e8aea293e39629bf8ca8ee123.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 3964424af..e1ba1bdaf 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -775,8 +775,13 @@ StagingBufferRef TextureCacheRuntime::DownloadStagingBuffer(size_t size) { bool TextureCacheRuntime::ShouldReinterpret(Image& dst, Image& src) { if (VideoCore::Surface::GetFormatType(dst.info.format) == - VideoCore::Surface::SurfaceType::DepthStencil) { - return !device.IsExtShaderStencilExportSupported(); + VideoCore::Surface::SurfaceType::DepthStencil && + !device.IsExtShaderStencilExportSupported()) { + return true; + } + if (dst.info.format == PixelFormat::D32_FLOAT_S8_UINT || + src.info.format == PixelFormat::D32_FLOAT_S8_UINT) { + return true; } return false; } |