mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 01:54:16 +01:00
[dxvk] Track lifetime of framebuffer attachments
We should mark images that are being used for rendering as in-use by the GPU when binding the corresponding framebuffer.
This commit is contained in:
parent
87b5161b2a
commit
67fe452580
@ -1758,7 +1758,14 @@ namespace dxvk {
|
||||
|
||||
m_cmd->cmdBeginRenderPass(&info,
|
||||
VK_SUBPASS_CONTENTS_INLINE);
|
||||
|
||||
m_cmd->trackResource(framebuffer);
|
||||
|
||||
for (uint32_t i = 0; i < framebuffer->numAttachments(); i++) {
|
||||
m_cmd->trackResource(framebuffer->getAttachment(i).view);
|
||||
m_cmd->trackResource(framebuffer->getAttachment(i).view->image());
|
||||
}
|
||||
|
||||
m_cmd->addStatCtr(DxvkStatCounter::CmdRenderPassCount, 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user