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

[d3d11] Do not forward D3D11_MAP_FLAG_DO_NOT_WAIT for mapped images

Workaround for a regression in The Witcher 3 that was introduced
in commit 53d557c2db9e51c98696840e19aced94687be0ea. May have a
significant negative impact on performance in some games.
This commit is contained in:
Philip Rebohle 2018-03-22 14:12:43 +01:00
parent b3aff7cd2e
commit d9b1995cf0
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -222,7 +222,10 @@ namespace dxvk {
if (pResource->GetMapMode() == D3D11_COMMON_TEXTURE_MAP_MODE_DIRECT) {
const VkImageType imageType = mappedImage->info().type;
// Wait for the resource to become available
// Wait for the resource to become available. Forwarding
// DO_NOT_WAIT would break The Witcher 3 for some reason.
MapFlags &= ~D3D11_MAP_FLAG_DO_NOT_WAIT;
if (!WaitForResource(mappedImage, MapFlags))
return DXGI_ERROR_WAS_STILL_DRAWING;