From 92d6f26130344147cf6fd87fc5c8fa05ed9ee800 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 18 Jul 2019 16:56:34 +0200 Subject: [PATCH] [d3d11] Always enable depth-stencil attachment usage for depth-stencil images Allows us to use framebuffer copies even if the game itself does not intend to render to the image. Improves performance in Final Fantasy XIV on RADV. --- src/d3d11/d3d11_texture.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/d3d11/d3d11_texture.cpp b/src/d3d11/d3d11_texture.cpp index 494f0581..235d78e6 100644 --- a/src/d3d11/d3d11_texture.cpp +++ b/src/d3d11/d3d11_texture.cpp @@ -343,6 +343,9 @@ namespace dxvk { | VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT; } + if (Format == VK_FORMAT_D32_SFLOAT_S8_UINT || Format == VK_FORMAT_D24_UNORM_S8_UINT) + requestedFeatures |= VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT; + if (requestedFeatures == 0) return 0;