Jan Sikorski : wined3d: Flush on texture download to avoid stalling on readout.
Module: wine Branch: master Commit: a7815d352c1165be2073cb5ba4bb4de0520c373c URL: https://source.winehq.org/git/wine.git/?a=commit;h=a7815d352c1165be2073cb5ba... Author: Jan Sikorski <jsikorski(a)codeweavers.com> Date: Wed Mar 23 17:31:58 2022 +0100 wined3d: Flush on texture download to avoid stalling on readout. Fixes a stall during a map operation in The Evil Within. Signed-off-by: Jan Sikorski <jsikorski(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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); } }
participants (1)
-
Alexandre Julliard