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

[d3d9] Pass feedback loop aspect mask to backend

This commit is contained in:
Joshua Ashton 2022-08-05 23:12:03 +00:00 committed by Joshie
parent 8d070e54a1
commit 90abd993d4

View File

@ -5464,11 +5464,20 @@ namespace dxvk {
}
}
VkImageAspectFlags feedbackLoopAspects = 0u;
if (m_hazardLayout == VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT) {
if (m_activeHazardsRT != 0)
feedbackLoopAspects |= VK_IMAGE_ASPECT_COLOR_BIT;
if (m_activeHazardsDS != 0)
feedbackLoopAspects |= VK_IMAGE_ASPECT_DEPTH_BIT;
}
// Create and bind the framebuffer object to the context
EmitCs([
cAttachments = std::move(attachments)
cAttachments = std::move(attachments),
cFeedbackLoopAspects = feedbackLoopAspects
] (DxvkContext* ctx) mutable {
ctx->bindRenderTargets(std::move(cAttachments), 0u);
ctx->bindRenderTargets(std::move(cAttachments), cFeedbackLoopAspects);
});
}