summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2021-11-21 21:09:49 +0100
committerGravatar Fernando Sahmkow2021-11-21 21:09:49 +0100
commitd7f4434bd534d53e8aea293e39629bf8ca8ee123 (patch)
treef347825a57736f229cae3ff1978240d47aa4c03f /src
parentHostShaders: Fix D24S8 convertion shaders. (diff)
downloadyuzu-d7f4434bd534d53e8aea293e39629bf8ca8ee123.tar.gz
yuzu-d7f4434bd534d53e8aea293e39629bf8ca8ee123.tar.xz
yuzu-d7f4434bd534d53e8aea293e39629bf8ca8ee123.zip
VulkanTexturECache: Use reinterpret on D32_S8 formats.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_texture_cache.cpp9
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) {
775 775
776bool TextureCacheRuntime::ShouldReinterpret(Image& dst, Image& src) { 776bool TextureCacheRuntime::ShouldReinterpret(Image& dst, Image& src) {
777 if (VideoCore::Surface::GetFormatType(dst.info.format) == 777 if (VideoCore::Surface::GetFormatType(dst.info.format) ==
778 VideoCore::Surface::SurfaceType::DepthStencil) { 778 VideoCore::Surface::SurfaceType::DepthStencil &&
779 return !device.IsExtShaderStencilExportSupported(); 779 !device.IsExtShaderStencilExportSupported()) {
780 return true;
781 }
782 if (dst.info.format == PixelFormat::D32_FLOAT_S8_UINT ||
783 src.info.format == PixelFormat::D32_FLOAT_S8_UINT) {
784 return true;
780 } 785 }
781 return false; 786 return false;
782} 787}