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 <philip.rebohle@tu-dortmund.de>
This commit is contained in:
Philip Rebohle 2021-01-13 18:45:28 +01:00 committed by Hans-Kristian Arntzen
parent c42f4d11e2
commit f25df5b453
1 changed files with 6 additions and 0 deletions

View File

@ -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