Debian Codegraph @

src/asahi/vulkan/hk_query_pool.h

raw
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 /* For timestamp queries, the kernel-assigned timestamp buffer handle. Unused
25 * for all other query types
26 */
27 uint32_t handle;
28
29 unsigned oq_queries;
30 };
31
32 VK_DEFINE_NONDISP_HANDLE_CASTS(hk_query_pool, vk.base, VkQueryPool,
33 VK_OBJECT_TYPE_QUERY_POOL)