From f25df5b4532e0200d1adb02efda60c41f15fb5fd Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 13 Jan 2021 18:45:28 +0100 Subject: [PATCH] vkd3d: Reset inline queries in BeginQuery. We currently never reset occlusion queries. For some reason, validation layers do not report this. Signed-off-by: Philip Rebohle --- libs/vkd3d/command.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index 4cebd282..322115a8 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -6885,6 +6885,12 @@ static void STDMETHODCALLTYPE d3d12_command_list_BeginQuery(d3d12_command_list_i if (d3d12_query_type_is_inline(list->device, type)) { + if (!d3d12_command_list_reset_query(list, query_heap->vk_query_pool, index)) + { + d3d12_command_list_end_current_render_pass(list, true); + VK_CALL(vkCmdResetQueryPool(list->vk_command_buffer, query_heap->vk_query_pool, index, 1)); + } + d3d12_command_list_enable_query(list, query_heap->vk_query_pool, index, flags); } else