Jan Sikorski : wined3d: Don't try to reset query pools if we don't have a command buffer.
Alexandre Julliard
julliard at winehq.org
Fri Aug 6 16:10:40 CDT 2021
Module: wine
Branch: master
Commit: 9b9f07ca84e8059dab4551eac9821c1beca8f37e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9b9f07ca84e8059dab4551eac9821c1beca8f37e
Author: Jan Sikorski <jsikorski at codeweavers.com>
Date: Wed Aug 4 17:25:00 2021 +0200
wined3d: Don't try to reset query pools if we don't have a command buffer.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51419
Signed-off-by: Jan Sikorski <jsikorski at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/context_vk.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/dlls/wined3d/context_vk.c b/dlls/wined3d/context_vk.c
index eac4eacff5a..8df416851f2 100644
--- a/dlls/wined3d/context_vk.c
+++ b/dlls/wined3d/context_vk.c
@@ -1314,12 +1314,15 @@ void wined3d_context_vk_end_current_render_pass(struct wined3d_context_vk *conte
context_vk->vk_framebuffer = VK_NULL_HANDLE;
}
- LIST_FOR_EACH_ENTRY_SAFE(pool_vk, pool_vk_next, &context_vk->completed_query_pools,
- struct wined3d_query_pool_vk, completed_entry)
+ if (vk_command_buffer)
{
- list_remove(&pool_vk->completed_entry);
- list_init(&pool_vk->completed_entry);
- wined3d_query_pool_vk_reset(pool_vk, context_vk, vk_command_buffer);
+ LIST_FOR_EACH_ENTRY_SAFE(pool_vk, pool_vk_next, &context_vk->completed_query_pools,
+ struct wined3d_query_pool_vk, completed_entry)
+ {
+ list_remove(&pool_vk->completed_entry);
+ list_init(&pool_vk->completed_entry);
+ wined3d_query_pool_vk_reset(pool_vk, context_vk, vk_command_buffer);
+ }
}
}
More information about the wine-cvs
mailing list