xref: /aosp_15_r20/external/mesa3d/src/asahi/vulkan/hk_event.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 
12 #include "vk_object.h"
13 
14 struct hk_event {
15    struct vk_object_base base;
16    struct agx_bo *bo;
17 
18    uint64_t addr;
19    VkResult *status;
20 };
21 
22 VK_DEFINE_NONDISP_HANDLE_CASTS(hk_event, base, VkEvent, VK_OBJECT_TYPE_EVENT)
23