Explorar el Código

Texture Cache: Always copy on NVIDIA.

Fernando Sahmkow hace 4 años
padre
commit
0902119302
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/video_core/renderer_vulkan/vk_texture_cache.cpp

+ 5 - 0
src/video_core/renderer_vulkan/vk_texture_cache.cpp

@@ -779,6 +779,11 @@ bool TextureCacheRuntime::ShouldReinterpret(Image& dst, Image& src) {
         !device.IsExtShaderStencilExportSupported()) {
         return true;
     }
+    if (VideoCore::Surface::GetFormatType(src.info.format) ==
+            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;