1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[d3d9] Only set feedback loop usage on textures, not plain surfaces

This commit is contained in:
Joshua Ashton 2022-08-16 12:32:32 +00:00
parent cf9e217e7b
commit 084969135b

View File

@ -305,7 +305,7 @@ namespace dxvk {
| VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT;
} }
if ((isRT || isDS) && hasAttachmentFeedbackLoops) if (ResourceType == D3DRTYPE_TEXTURE && (isRT || isDS) && hasAttachmentFeedbackLoops)
imageInfo.usage |= VK_IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT; imageInfo.usage |= VK_IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT;
if (ResourceType == D3DRTYPE_CUBETEXTURE) if (ResourceType == D3DRTYPE_CUBETEXTURE)