xref: /aosp_15_r20/external/mesa3d/src/asahi/vulkan/hk_query_pool.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright 2024 Valve Corporation
3  * Copyright 2024 Alyssa Rosenzweig
4  * Copyright 2022-2023 Collabora Ltd. and Red Hat Inc.
5  * SPDX-License-Identifier: MIT
6  */
7 
8 #pragma once
9 
10 #include "hk_private.h"
11 #include "vk_query_pool.h"
12 
13 struct agx_bo;
14 
15 struct hk_query_pool {
16    struct vk_query_pool vk;
17 
18    uint32_t query_start;
19    uint32_t query_stride;
20 
21    struct agx_bo *bo;
22    void *bo_map;
23 
24    unsigned oq_queries;
25 };
26 
27 VK_DEFINE_NONDISP_HANDLE_CASTS(hk_query_pool, vk.base, VkQueryPool,
28                                VK_OBJECT_TYPE_QUERY_POOL)
29