1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 10:54:16 +01:00

[dxvk] Allow different but matching views in findAttachment as well

Allows us to merge clears in some further edge cases.
This commit is contained in:
Philip Rebohle 2021-03-17 19:52:48 +01:00
parent 8be777b8e2
commit 38649372bf
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -50,7 +50,7 @@ namespace dxvk {
int32_t DxvkFramebuffer::findAttachment(const Rc<DxvkImageView>& view) const {
for (uint32_t i = 0; i < m_attachmentCount; i++) {
if (getAttachment(i).view == view)
if (getAttachment(i).view->checkSubresourceMatch(view))
return int32_t(i);
}