From: Conor McCarthy Subject: [PATCH vkd3d 2/2] vkd3d: Return valid node masks in external resource heap properties. Message-Id: <20191113144829.19536-2-cmccarthy@codeweavers.com> Date: Thu, 14 Nov 2019 00:48:29 +1000 In-Reply-To: <20191113144829.19536-1-cmccarthy@codeweavers.com> References: <20191113144829.19536-1-cmccarthy@codeweavers.com> 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 --- libs/vkd3d/resource.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c index e93d50b..45a80af 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -1518,6 +1518,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.23.0