• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright © 2016 Red Hat.
3  * Copyright © 2016 Bas Nieuwenhuizen
4  *
5  * based in part on anv driver which is:
6  * Copyright © 2015 Intel Corporation
7  *
8  * SPDX-License-Identifier: MIT
9  */
10 
11 #ifndef RADV_EVENT_H
12 #define RADV_EVENT_H
13 
14 #include "radv_radeon_winsys.h"
15 
16 #include "vk_object.h"
17 
18 struct radv_device;
19 
20 struct radv_event {
21    struct vk_object_base base;
22    struct radeon_winsys_bo *bo;
23    uint64_t *map;
24 };
25 
26 VK_DEFINE_NONDISP_HANDLE_CASTS(radv_event, base, VkEvent, VK_OBJECT_TYPE_EVENT)
27 
28 VkResult radv_create_event(struct radv_device *device, const VkEventCreateInfo *pCreateInfo,
29                            const VkAllocationCallbacks *pAllocator, VkEvent *pEvent, bool is_internal);
30 
31 #endif /* RADV_EVENT_H */
32