From ea98467a2dac7e41fd73dc4cbbb50eb0c8e061ac Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Fri, 2 Feb 2024 11:45:05 +0100 Subject: [PATCH] panvk: Make panvk_queue per-gen Signed-off-by: Boris Brezillon Acked-by: Erik Faye-Lund Reviewed-by: Mary Guillemard Reviewed-by: Rebecca Mckeever Part-of: --- src/panfrost/vulkan/panvk_queue.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/panfrost/vulkan/panvk_queue.h b/src/panfrost/vulkan/panvk_queue.h index 4fe9687e4e5..fc4b8a130db 100644 --- a/src/panfrost/vulkan/panvk_queue.h +++ b/src/panfrost/vulkan/panvk_queue.h @@ -6,6 +6,10 @@ #ifndef PANVK_QUEUE_H #define PANVK_QUEUE_H +#ifndef PAN_ARCH +#error "PAN_ARCH must be defined" +#endif + #include #include "vk_queue.h" @@ -32,10 +36,8 @@ panvk_queue_finish(struct panvk_queue *queue) drmSyncobjDestroy(dev->vk.drm_fd, queue->sync); } -#ifdef PAN_ARCH VkResult panvk_per_arch(queue_init)(struct panvk_device *device, struct panvk_queue *queue, int idx, const VkDeviceQueueCreateInfo *create_info); -#endif #endif