• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright © 2016 Red Hat.
3  * Copyright © 2016 Bas Nieuwenhuizen
4  * SPDX-License-Identifier: MIT
5  *
6  * based in part on anv driver which is:
7  * Copyright © 2015 Intel Corporation
8  */
9 
10 #ifndef TU_QUEUE_H
11 #define TU_QUEUE_H
12 
13 #include "tu_common.h"
14 
15 struct tu_queue
16 {
17    struct vk_queue vk;
18 
19    struct tu_device *device;
20 
21    uint32_t msm_queue_id;
22    uint32_t priority;
23 
24    int fence;           /* timestamp/fence of the last queue submission */
25 };
26 VK_DEFINE_HANDLE_CASTS(tu_queue, vk.base, VkQueue, VK_OBJECT_TYPE_QUEUE)
27 
28 VkResult
29 tu_queue_init(struct tu_device *device,
30               struct tu_queue *queue,
31               int idx,
32               const VkDeviceQueueCreateInfo *create_info);
33 
34 void
35 tu_queue_finish(struct tu_queue *queue);
36 
37 #endif
38