summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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}