vulkan/wsi: fix win32 compilation

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Fixes: d7938de8fe ("vulkan/wsi: don't support present with queues where blit is unsupported")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26610>
This commit is contained in:
Rhys Perry 2023-12-09 11:13:17 +00:00
parent 48b410731d
commit 33f4e947d8

View file

@ -112,6 +112,8 @@ VKAPI_ATTR VkBool32 VKAPI_CALL
wsi_GetPhysicalDeviceWin32PresentationSupportKHR(VkPhysicalDevice physicalDevice,
uint32_t queueFamilyIndex)
{
VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice);
struct wsi_device *wsi_device = pdevice->wsi_device;
return wsi_device->queue_supports_blit & BITFIELD64_BIT(queueFamilyIndex);
}