mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 08:28:16 +02:00
We will be expanding this shortly, as we move device state over to queue state. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32165>
37 lines
752 B
C
37 lines
752 B
C
/*
|
|
* Copyright © 2016 Red Hat.
|
|
* Copyright © 2016 Bas Nieuwenhuizen
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* based in part on anv driver which is:
|
|
* Copyright © 2015 Intel Corporation
|
|
*/
|
|
|
|
#ifndef TU_QUEUE_H
|
|
#define TU_QUEUE_H
|
|
|
|
#include "tu_common.h"
|
|
|
|
struct tu_queue
|
|
{
|
|
struct vk_queue vk;
|
|
|
|
struct tu_device *device;
|
|
|
|
uint32_t msm_queue_id;
|
|
uint32_t priority;
|
|
|
|
int fence; /* timestamp/fence of the last queue submission */
|
|
};
|
|
VK_DEFINE_HANDLE_CASTS(tu_queue, vk.base, VkQueue, VK_OBJECT_TYPE_QUEUE)
|
|
|
|
VkResult
|
|
tu_queue_init(struct tu_device *device,
|
|
struct tu_queue *queue,
|
|
int idx,
|
|
const VkDeviceQueueCreateInfo *create_info);
|
|
|
|
void
|
|
tu_queue_finish(struct tu_queue *queue);
|
|
|
|
#endif
|