Commit a7815d35 authored by Jan Sikorski's avatar Jan Sikorski Committed by Alexandre Julliard

wined3d: Flush on texture download to avoid stalling on readout.

Fixes a stall during a map operation in The Evil Within. Signed-off-by: 's avatarJan Sikorski <jsikorski@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 989f7d64
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment