mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22: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:
parent
e9c91daba7
commit
80049c360e
@ -4063,6 +4063,8 @@ namespace dxvk {
|
|||||||
attachment.view->imageInfo().layout,
|
attachment.view->imageInfo().layout,
|
||||||
attachment.view->imageInfo().stages,
|
attachment.view->imageInfo().stages,
|
||||||
attachment.view->imageInfo().access);
|
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().layout,
|
||||||
attachment.view->imageInfo().stages,
|
attachment.view->imageInfo().stages,
|
||||||
attachment.view->imageInfo().access);
|
attachment.view->imageInfo().access);
|
||||||
|
|
||||||
|
m_cmd->trackResource<DxvkAccess::Write>(attachment.view->image());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user