Without this header-file, we can't build the driver. So let's verify
that it exists, and can be used by the C++ compiler.
This should make it a bit more clear what's wrong if someone attempts to
build this using MinGW or on Linux.
Fixes:
2ea15cd661c ("d3d12: introduce d3d12 gallium driver")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7575>
dep_vulkan = dependency('vulkan')
endif
+if with_gallium_d3d12 and not cpp.check_header('d3d12.h')
+ error('The D3D12 driver requires d3d12.h from the Windows SDK')
+endif
+
if with_vulkan_overlay_layer or with_aco_tests
prog_glslang = find_program('glslangValidator')
endif