mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +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
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue