Debian Codegraph @

src/kosmickrisp/vulkan/kk_cmd_pool.h

raw symbols SCIP
1 /*
2 * Copyright © 2022 Collabora Ltd. and Red Hat Inc.
3 * Copyright 2025 LunarG, Inc.
4 * Copyright 2025 Google LLC
5 * SPDX-License-Identifier: MIT
6 */
7
8 #ifndef KK_CMD_POOL_H
9 #define KK_CMD_POOL_H
10
11 #include "kk_private.h"
12
13 #include "vk_command_pool.h"
14
15 struct kk_cmd_pool {
16 struct vk_command_pool vk;
17
18 /** List of nvk_cmd_mem */
19 struct list_head free_mem;
20 struct list_head free_gart_mem;
21 };
22
23 VK_DEFINE_NONDISP_HANDLE_CASTS(kk_cmd_pool, vk.base, VkCommandPool,
24 VK_OBJECT_TYPE_COMMAND_POOL)
25
26 static inline struct kk_device *
27 kk_cmd_pool_device(struct kk_cmd_pool *pool)
28 {
29 return (struct kk_device *)pool->vk.base.device;
30 }
31
32 #endif /* KK_CMD_POOL_H */