vulkan/runtime: Add vk_cmd_queue.h to idep_vulkan_runtime_headers
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 24 Mar 2022 09:11:56 +0000 (10:11 +0100)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 24 Mar 2022 19:43:02 +0000 (19:43 +0000)
If we don't do that, meson might start compiling source files
including vk_command_buffer.h which in turn includes vk_cmd_queue.h
before this file is even generated, and we end up with errors like
that https://gitlab.freedesktop.org/mesa/mesa/-/jobs/20157936#L1119.

Fixes: 6bd8a3c7e434 ("vulkan/runtime: Add a vk_cmd_queue object to vk_command_buffer")
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15546>

src/vulkan/runtime/meson.build

index fec1d0a..af134ef 100644 (file)
@@ -162,6 +162,7 @@ libvulkan_runtime = static_library(
 )
 
 idep_vulkan_runtime_headers = declare_dependency(
+  sources : [vk_cmd_queue[1]],
   include_directories : include_directories('.')
 )