From caa83247d9b0b0a4f877c82b9b74bbf8110e53ce Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 13 Mar 2022 02:32:56 +0100 Subject: [PATCH] [d3d9] Mark backend image as shared for shared resources Otherwise, the backend may not transition the image to the correct layout after each submission. --- src/d3d9/d3d9_common_texture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/d3d9/d3d9_common_texture.cpp b/src/d3d9/d3d9_common_texture.cpp index 99ec33de..b0681d49 100644 --- a/src/d3d9/d3d9_common_texture.cpp +++ b/src/d3d9/d3d9_common_texture.cpp @@ -249,6 +249,7 @@ namespace dxvk { : DxvkSharedHandleMode::Import; imageInfo.sharing.type = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT; imageInfo.sharing.handle = *pSharedHandle; + imageInfo.shared = true; // TODO: validate metadata? }