mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 20:50:09 +01:00
lavapipe: move queue to base object
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9550>
This commit is contained in:
parent
3a466bfc1c
commit
bd623d6cd6
2 changed files with 2 additions and 2 deletions
|
|
@ -894,7 +894,6 @@ static int queue_thread(void *data)
|
|||
static VkResult
|
||||
lvp_queue_init(struct lvp_device *device, struct lvp_queue *queue)
|
||||
{
|
||||
queue->_loader_data.loaderMagic = ICD_LOADER_MAGIC;
|
||||
queue->device = device;
|
||||
|
||||
queue->flags = 0;
|
||||
|
|
@ -904,6 +903,7 @@ lvp_queue_init(struct lvp_device *device, struct lvp_queue *queue)
|
|||
mtx_init(&queue->m, mtx_plain);
|
||||
queue->exec_thread = u_thread_create(queue_thread, queue);
|
||||
|
||||
vk_object_base_init(&device->vk, &queue->base, VK_OBJECT_TYPE_QUEUE);
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ bool lvp_physical_device_extension_supported(struct lvp_physical_device *dev,
|
|||
const char *name);
|
||||
|
||||
struct lvp_queue {
|
||||
VK_LOADER_DATA _loader_data;
|
||||
struct vk_object_base base;
|
||||
VkDeviceQueueCreateFlags flags;
|
||||
struct lvp_device * device;
|
||||
struct pipe_context *ctx;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue