1 /* 2 * Copyright © 2021 Collabora Ltd. 3 * SPDX-License-Identifier: MIT 4 */ 5 6 #ifndef PANVK_CMD_POOL_H 7 #define PANVK_CMD_POOL_H 8 9 #include "vk_command_pool.h" 10 11 #include "panvk_mempool.h" 12 13 struct panvk_cmd_pool { 14 struct vk_command_pool vk; 15 struct panvk_bo_pool cs_bo_pool; 16 struct panvk_bo_pool desc_bo_pool; 17 struct panvk_bo_pool varying_bo_pool; 18 struct panvk_bo_pool tls_bo_pool; 19 struct list_head push_sets; 20 }; 21 22 VK_DEFINE_NONDISP_HANDLE_CASTS(panvk_cmd_pool, vk.base, VkCommandPool, 23 VK_OBJECT_TYPE_COMMAND_POOL) 24 25 struct panvk_cmd_pool_obj { 26 struct list_head node; 27 }; 28 29 #endif 30