mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 09:00:37 +02:00
panvk: Make panvk_queue_finish() a per-arch function
The JM implementation of queue_finish() is simple enough to be inlined, but that won't be the case of the CSF implementation. So let's make this function per-arch so we can move it to panvk_vX_queue.c. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30736>
This commit is contained in:
parent
09682bc5b0
commit
5571a4cdaa
2 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ struct panvk_queue {
|
|||
VK_DEFINE_HANDLE_CASTS(panvk_queue, vk.base, VkQueue, VK_OBJECT_TYPE_QUEUE)
|
||||
|
||||
static inline void
|
||||
panvk_queue_finish(struct panvk_queue *queue)
|
||||
panvk_per_arch(queue_finish)(struct panvk_queue *queue)
|
||||
{
|
||||
struct panvk_device *dev = to_panvk_device(queue->vk.base.device);
|
||||
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ panvk_per_arch(create_device)(struct panvk_physical_device *physical_device,
|
|||
err_finish_queues:
|
||||
for (unsigned i = 0; i < PANVK_MAX_QUEUE_FAMILIES; i++) {
|
||||
for (unsigned q = 0; q < device->queue_count[i]; q++)
|
||||
panvk_queue_finish(&device->queues[i][q]);
|
||||
panvk_per_arch(queue_finish)(&device->queues[i][q]);
|
||||
if (device->queue_count[i])
|
||||
vk_object_free(&device->vk, NULL, device->queues[i]);
|
||||
}
|
||||
|
|
@ -379,7 +379,7 @@ panvk_per_arch(destroy_device)(struct panvk_device *device,
|
|||
|
||||
for (unsigned i = 0; i < PANVK_MAX_QUEUE_FAMILIES; i++) {
|
||||
for (unsigned q = 0; q < device->queue_count[i]; q++)
|
||||
panvk_queue_finish(&device->queues[i][q]);
|
||||
panvk_per_arch(queue_finish)(&device->queues[i][q]);
|
||||
if (device->queue_count[i])
|
||||
vk_object_free(&device->vk, NULL, device->queues[i]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue