[PATCH vkd3d v2 1/2] vkd3d: Return valid node masks in external resource heap properties.

Conor McCarthy cmccarthy at codeweavers.com
Wed Nov 20 09:12:15 CST 2019


Hitman 2 calls GetHeapProperties() for each swapchain buffer and checks if
the creation node mask is 1. If not then it fails to store the resource
pointers for later rendering.

Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
---
Supersedes 173580.
---
 libs/vkd3d/resource.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c
index 256c0b9..c5f55fd 100644
--- a/libs/vkd3d/resource.c
+++ b/libs/vkd3d/resource.c
@@ -1534,6 +1534,8 @@ static HRESULT STDMETHODCALLTYPE d3d12_resource_GetHeapProperties(ID3D12Resource
         {
             memset(heap_properties, 0, sizeof(*heap_properties));
             heap_properties->Type = D3D12_HEAP_TYPE_DEFAULT;
+            heap_properties->CreationNodeMask = 1;
+            heap_properties->VisibleNodeMask = 1;
         }
         if (flags)
             *flags = D3D12_HEAP_FLAG_NONE;
-- 
2.24.0




More information about the wine-devel mailing list