mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 18:40:42 +01:00
v3dv: Use a common vk_queue structure
Switch to using common structure. Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13000>
This commit is contained in:
parent
37d32dcce3
commit
c9dbd3c06e
2 changed files with 6 additions and 3 deletions
|
|
@ -1678,7 +1678,9 @@ v3dv_EnumerateDeviceLayerProperties(VkPhysicalDevice physicalDevice,
|
|||
static VkResult
|
||||
queue_init(struct v3dv_device *device, struct v3dv_queue *queue)
|
||||
{
|
||||
vk_object_base_init(&device->vk, &queue->base, VK_OBJECT_TYPE_QUEUE);
|
||||
VkResult result = vk_queue_init(&queue->vk, &device->vk);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
queue->device = device;
|
||||
queue->flags = 0;
|
||||
queue->noop_job = NULL;
|
||||
|
|
@ -1690,7 +1692,7 @@ queue_init(struct v3dv_device *device, struct v3dv_queue *queue)
|
|||
static void
|
||||
queue_finish(struct v3dv_queue *queue)
|
||||
{
|
||||
vk_object_base_finish(&queue->base);
|
||||
vk_queue_finish(&queue->vk);
|
||||
assert(list_is_empty(&queue->submit_wait_list));
|
||||
if (queue->noop_job)
|
||||
v3dv_job_destroy(queue->noop_job);
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
#include "vk_util.h"
|
||||
|
||||
#include "vk_command_buffer.h"
|
||||
#include "vk_queue.h"
|
||||
|
||||
#include <xf86drm.h>
|
||||
|
||||
|
|
@ -218,7 +219,7 @@ struct v3dv_queue_submit_wait_info {
|
|||
};
|
||||
|
||||
struct v3dv_queue {
|
||||
struct vk_object_base base;
|
||||
struct vk_queue vk;
|
||||
|
||||
struct v3dv_device *device;
|
||||
VkDeviceQueueCreateFlags flags;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue