1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 22:29:15 +01:00

[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.
This commit is contained in:
Philip Rebohle 2019-07-18 16:56:34 +02:00
parent 8a9cee903b
commit 92d6f26130
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -343,6 +343,9 @@ namespace dxvk {
| VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT; | 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) if (requestedFeatures == 0)
return 0; return 0;