Module: Mesa
Branch: main
Commit: 33f4e947d8c92598c46165618cc436ea1b72145e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=33f4e947d8c92598c46165618cc436ea1b72145e

Author: Rhys Perry <[email protected]>
Date:   Sat Dec  9 11:13:17 2023 +0000

vulkan/wsi: fix win32 compilation

Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Jesse Natalie <[email protected]>
Fixes: d7938de8feea ("vulkan/wsi: don't support present with queues where blit 
is unsupported")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26610>

---

 src/vulkan/wsi/wsi_common_win32.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/vulkan/wsi/wsi_common_win32.cpp 
b/src/vulkan/wsi/wsi_common_win32.cpp
index a85e6909e5d..acc4136bda5 100644
--- a/src/vulkan/wsi/wsi_common_win32.cpp
+++ b/src/vulkan/wsi/wsi_common_win32.cpp
@@ -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);
 }
 

Reply via email to