mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
pvr: Implement vkCmdCopyQueryPoolResults 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
0aa9f32b95
commit
b6e8e1cf37
1 changed files with 16 additions and 1 deletions
|
|
@ -233,7 +233,22 @@ void pvr_CmdCopyQueryPoolResults(VkCommandBuffer commandBuffer,
|
||||||
VkDeviceSize stride,
|
VkDeviceSize stride,
|
||||||
VkQueryResultFlags flags)
|
VkQueryResultFlags flags)
|
||||||
{
|
{
|
||||||
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_COPY_QUERY_RESULTS;
|
||||||
|
|
||||||
|
query_info.copy_query_results.query_pool = queryPool;
|
||||||
|
query_info.copy_query_results.first_query = firstQuery;
|
||||||
|
query_info.copy_query_results.query_count = queryCount;
|
||||||
|
query_info.copy_query_results.dst_buffer = dstBuffer;
|
||||||
|
query_info.copy_query_results.dst_offset = dstOffset;
|
||||||
|
query_info.copy_query_results.stride = stride;
|
||||||
|
query_info.copy_query_results.flags = flags;
|
||||||
|
|
||||||
|
pvr_add_query_program(cmd_buffer, &query_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
void pvr_CmdBeginQuery(VkCommandBuffer commandBuffer,
|
void pvr_CmdBeginQuery(VkCommandBuffer commandBuffer,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue