From 9af2876958686c3bdb7bbc311350d7ab2b971c34 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 28 Aug 2017 20:20:45 +0200 Subject: [PATCH] libs/vkd3d: Simplify d3d12_command_list_BeginQuery(). --- libs/vkd3d/command.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index ea4bd8fc..8b305c86 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -3106,25 +3106,7 @@ static void STDMETHODCALLTYPE d3d12_command_list_BeginQuery(ID3D12GraphicsComman TRACE("iface %p, heap %p, type %#x, index %u.\n", iface, heap, type, index); - switch (type) - { - case D3D12_QUERY_TYPE_TIMESTAMP: - WARN("BeginQuery does not work with timestamp queries"); - return; - - case D3D12_QUERY_TYPE_PIPELINE_STATISTICS: - VK_CALL(vkCmdBeginQuery(list->vk_command_buffer, query_heap->vk_query_pool, index, 0)); - return; - - case D3D12_QUERY_TYPE_OCCLUSION: - case D3D12_QUERY_TYPE_BINARY_OCCLUSION: - case D3D12_QUERY_TYPE_SO_STATISTICS_STREAM0: - case D3D12_QUERY_TYPE_SO_STATISTICS_STREAM1: - case D3D12_QUERY_TYPE_SO_STATISTICS_STREAM2: - case D3D12_QUERY_TYPE_SO_STATISTICS_STREAM3: - FIXME("Unhandled query type %#x.\n", type); - return; - } + VK_CALL(vkCmdBeginQuery(list->vk_command_buffer, query_heap->vk_query_pool, index, 0)); } static void STDMETHODCALLTYPE d3d12_command_list_EndQuery(ID3D12GraphicsCommandList *iface,