From: Eric Engestrom Date: Thu, 28 Feb 2019 14:48:09 +0000 (+0000) Subject: vulkan: use VkBase{In,Out}Structure instead of a custom struct X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c3b2932422a7b8cad6b8373bbcf30328754b76b;p=mesa.git vulkan: use VkBase{In,Out}Structure instead of a custom struct VkBaseInStructure and VkBaseOutStructure are part of vulkan_core.h (which is part of vulkan.h) Signed-off-by: Eric Engestrom Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Lionel Landwerlin --- diff --git a/src/vulkan/util/vk_util.h b/src/vulkan/util/vk_util.h index cc6a36e5acc..e7404b08808 100644 --- a/src/vulkan/util/vk_util.h +++ b/src/vulkan/util/vk_util.h @@ -27,17 +27,12 @@ #include -struct vk_struct_common { - VkStructureType sType; - struct vk_struct_common *pNext; -}; - #define vk_foreach_struct(__iter, __start) \ - for (struct vk_struct_common *__iter = (struct vk_struct_common *)(__start); \ + for (struct VkBaseOutStructure *__iter = (struct VkBaseOutStructure *)(__start); \ __iter; __iter = __iter->pNext) #define vk_foreach_struct_const(__iter, __start) \ - for (const struct vk_struct_common *__iter = (const struct vk_struct_common *)(__start); \ + for (const struct VkBaseInStructure *__iter = (const struct VkBaseInStructure *)(__start); \ __iter; __iter = __iter->pNext) /**