vulkan/wsi: Implement GetPhysicalDevicePresentRectanglesKHR
[mesa.git] / src / intel / vulkan / anv_wsi.c
index 1c9a54804e8ac675ca0c6398a9a4734f27921061..5d672c211c471179646bce1d9439d243fe30ecd3 100644 (file)
@@ -293,3 +293,17 @@ VkResult anv_GetDeviceGroupSurfacePresentModesKHR(
 
    return VK_SUCCESS;
 }
+
+VkResult anv_GetPhysicalDevicePresentRectanglesKHR(
+    VkPhysicalDevice                            physicalDevice,
+    VkSurfaceKHR                                surface,
+    uint32_t*                                   pRectCount,
+    VkRect2D*                                   pRects)
+{
+   ANV_FROM_HANDLE(anv_physical_device, device, physicalDevice);
+
+   return wsi_common_get_present_rectangles(&device->wsi_device,
+                                            device->local_fd,
+                                            surface,
+                                            pRectCount, pRects);
+}