nvk: Move nvk_cmd_pool cast definitions
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:48 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:54 +0000 (21:31 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_cmd_buffer.h

index f720c2a..b1361e5 100644 (file)
@@ -16,6 +16,9 @@ struct nvk_cmd_pool {
    struct nvk_device *dev;
 };
 
+VK_DEFINE_NONDISP_HANDLE_CASTS(nvk_cmd_pool, vk.base, VkCommandPool,
+                               VK_OBJECT_TYPE_COMMAND_POOL)
+
 struct nvk_cmd_buffer {
    struct vk_command_buffer vk;
 
@@ -30,7 +33,5 @@ VkResult nvk_reset_cmd_buffer(struct nvk_cmd_buffer *cmd_buffer);
 
 VK_DEFINE_HANDLE_CASTS(nvk_cmd_buffer, vk.base, VkCommandBuffer,
                        VK_OBJECT_TYPE_COMMAND_BUFFER)
-VK_DEFINE_NONDISP_HANDLE_CASTS(nvk_cmd_pool, vk.base, VkCommandPool,
-                               VK_OBJECT_TYPE_COMMAND_POOL)
 
 #endif