d3d12 regression: libnir no longer builds for xbox
It looks like !19950 (merged) inadvertently broke libnir compilation for Xbox platforms.
The problem is that nir_convert_ycbcr.c
now includes vulkan/runtime/vk_ycbcr_conversion.h
, which includes vk_object.h
, which includes vulkan.h
, which finally includes vulkan_win32.h
. Inside vulkan_win32.h
is the declaration for the VkSurfaceFullScreenExclusiveWin32InfoEXT
, which includes an HMONITOR
as one of its members. For some reason the Windows SDK does not define HMONITOR
for GDK platforms, so we end up with an "unknown identifier HMONITOR" error stopping the build.
It seems like a nir source file probably shouldn't be pulling in vulkan.h
in its entirety? If that's unavoidable, maybe there's a way we can slide in a compatibility shim into vk_object.h
. (That would probably help with a future Xbox port of the dzn driver as well.)