mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
pvr: Implement vkCmdResetQueryPool API.
Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19371>
This commit is contained in:
parent
d69362ae84
commit
0aa9f32b95
1 changed files with 12 additions and 1 deletions
|
|
@ -210,7 +210,18 @@ void pvr_CmdResetQueryPool(VkCommandBuffer commandBuffer,
|
||||||
uint32_t firstQuery,
|
uint32_t firstQuery,
|
||||||
uint32_t queryCount)
|
uint32_t queryCount)
|
||||||
{
|
{
|
||||||
assert(!"Unimplemented");
|
PVR_FROM_HANDLE(pvr_cmd_buffer, cmd_buffer, commandBuffer);
|
||||||
|
struct pvr_query_info query_info;
|
||||||
|
|
||||||
|
PVR_CHECK_COMMAND_BUFFER_BUILDING_STATE(cmd_buffer);
|
||||||
|
|
||||||
|
query_info.type = PVR_QUERY_TYPE_RESET_QUERY_POOL;
|
||||||
|
|
||||||
|
query_info.reset_query_pool.query_pool = queryPool;
|
||||||
|
query_info.reset_query_pool.first_query = firstQuery;
|
||||||
|
query_info.reset_query_pool.query_count = queryCount;
|
||||||
|
|
||||||
|
pvr_add_query_program(cmd_buffer, &query_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
void pvr_CmdCopyQueryPoolResults(VkCommandBuffer commandBuffer,
|
void pvr_CmdCopyQueryPoolResults(VkCommandBuffer commandBuffer,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue