[PATCH 1/2] wined3d: Flush on texture download to avoid stalling on readout.

Jan Sikorski jsikorski at codeweavers.com
Wed Mar 23 11:31:58 CDT 2022


Fixes a stall during a map operation in The Evil Within.

Signed-off-by: Jan Sikorski <jsikorski at codeweavers.com>
---
 dlls/wined3d/texture.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
index fdd2c70c667..ebe770af0d2 100644
--- a/dlls/wined3d/texture.c
+++ b/dlls/wined3d/texture.c
@@ -5163,6 +5163,8 @@ static void wined3d_texture_vk_download_data(struct wined3d_context *context,
 
         VK_CALL(vkCmdPipelineBarrier(vk_command_buffer, VK_PIPELINE_STAGE_TRANSFER_BIT,
                 bo_stage_flags, 0, 0, NULL, 1, &vk_barrier, 0, NULL));
+        /* Start the download so we don't stall waiting for the result. */
+        wined3d_context_vk_submit_command_buffer(context_vk, 0, NULL, NULL, 0, NULL);
     }
 }
 
-- 
2.32.0




More information about the wine-devel mailing list