ソースを参照

VulkanTexturECache: Use reinterpret on D32_S8 formats.

Fernando Sahmkow 4 年 前
コミット
d7f4434bd5
1 ファイル変更7 行追加2 行削除
  1. 7 2
      src/video_core/renderer_vulkan/vk_texture_cache.cpp

+ 7 - 2
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;
 }