1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 04:29:15 +01:00

[dxvk] Fix resource tracking in attachment transitions

Fixes a crash in Portal 2 on DXVK native in which an old depth stencil is used after free after a device reset.
This commit is contained in:
Joshua Ashton 2021-02-20 18:23:00 +00:00 committed by Philip Rebohle
parent e9c91daba7
commit 80049c360e

View File

@ -4063,6 +4063,8 @@ namespace dxvk {
attachment.view->imageInfo().layout,
attachment.view->imageInfo().stages,
attachment.view->imageInfo().access);
m_cmd->trackResource<DxvkAccess::Write>(attachment.view->image());
}
}
@ -4082,6 +4084,8 @@ namespace dxvk {
attachment.view->imageInfo().layout,
attachment.view->imageInfo().stages,
attachment.view->imageInfo().access);
m_cmd->trackResource<DxvkAccess::Write>(attachment.view->image());
}
}