mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 10:54:16 +01:00
parent
7469f5d4a0
commit
6fa28bf937
@ -812,13 +812,8 @@ namespace dxvk {
|
|||||||
cImage, cSubresources, VkOffset3D { 0, 0, 0 },
|
cImage, cSubresources, VkOffset3D { 0, 0, 0 },
|
||||||
cLevelExtent);
|
cLevelExtent);
|
||||||
});
|
});
|
||||||
|
|
||||||
// We need to force a wait here
|
dstTexInfo->SetDirty(dst->GetSubresource(), true);
|
||||||
// as some applications depend on
|
|
||||||
// DO_NOT_WAIT not applying after
|
|
||||||
// this has happened.
|
|
||||||
// (this is a blocking call)
|
|
||||||
WaitForResource(dstBuffer, 0);
|
|
||||||
|
|
||||||
return D3D_OK;
|
return D3D_OK;
|
||||||
}
|
}
|
||||||
@ -3861,7 +3856,8 @@ namespace dxvk {
|
|||||||
// or is reading. Remember! This will only trigger for MANAGED resources
|
// or is reading. Remember! This will only trigger for MANAGED resources
|
||||||
// that cannot get affected by GPU, therefore readonly is A-OK for NOT waiting.
|
// that cannot get affected by GPU, therefore readonly is A-OK for NOT waiting.
|
||||||
const bool readOnly = Flags & D3DLOCK_READONLY;
|
const bool readOnly = Flags & D3DLOCK_READONLY;
|
||||||
const bool skipWait = (readOnly && managed) || scratch || (readOnly && systemmem);
|
const bool dirty = pResource->SetDirty(Subresource, false);
|
||||||
|
const bool skipWait = (readOnly && managed) || scratch || (readOnly && systemmem && !dirty);
|
||||||
|
|
||||||
if (alloced)
|
if (alloced)
|
||||||
std::memset(physSlice.mapPtr, 0, physSlice.length);
|
std::memset(physSlice.mapPtr, 0, physSlice.length);
|
||||||
|
@ -318,12 +318,7 @@ namespace dxvk {
|
|||||||
cLevelExtent);
|
cLevelExtent);
|
||||||
});
|
});
|
||||||
|
|
||||||
// We need to force a wait here
|
dstTexInfo->SetDirty(dst->GetSubresource(), true);
|
||||||
// as some applications depend on
|
|
||||||
// DO_NOT_WAIT not applying after
|
|
||||||
// this has happened.
|
|
||||||
// (this is a blocking call)
|
|
||||||
m_parent->WaitForResource(dstBuffer, 0);
|
|
||||||
|
|
||||||
return D3D_OK;
|
return D3D_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user