mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +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:
parent
8a9cee903b
commit
92d6f26130
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user