mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d: Implement EndQuery() for QUERY_TYPE_PIPELINE_STATISTICS.
This commit is contained in:
@ -3152,14 +3152,26 @@ static void STDMETHODCALLTYPE d3d12_command_list_EndQuery(ID3D12GraphicsCommandL
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == D3D12_QUERY_TYPE_TIMESTAMP)
|
switch (type)
|
||||||
{
|
{
|
||||||
VK_CALL(vkCmdWriteTimestamp(list->vk_command_buffer, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT,
|
case D3D12_QUERY_TYPE_TIMESTAMP:
|
||||||
query_heap->vk_query_pool, index));
|
VK_CALL(vkCmdWriteTimestamp(list->vk_command_buffer, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT,
|
||||||
return;
|
query_heap->vk_query_pool, index));
|
||||||
}
|
return;
|
||||||
|
|
||||||
FIXME("Unhandled query type %#x.\n", type);
|
case D3D12_QUERY_TYPE_PIPELINE_STATISTICS:
|
||||||
|
VK_CALL(vkCmdEndQuery(list->vk_command_buffer, query_heap->vk_query_pool, index));
|
||||||
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void STDMETHODCALLTYPE d3d12_command_list_ResolveQueryData(ID3D12GraphicsCommandList *iface,
|
static void STDMETHODCALLTYPE d3d12_command_list_ResolveQueryData(ID3D12GraphicsCommandList *iface,
|
||||||
|
Reference in New Issue
Block a user