Remove the TODO on the max Wayland image size.
authorFufu Fang <fufu.fang@arm.com>
Fri, 22 Oct 2021 08:55:13 +0000 (09:55 +0100)
committerFufu Fang <fufu.fang@arm.com>
Wed, 27 Oct 2021 14:16:13 +0000 (15:16 +0100)
It is valid to create windows exceeding the display size. It is correct
to set the image size limits to the GPU limits.

Change-Id: I53d0865ad1a540cd2eb92137ef325f000bd76159
Signed-off-by: Fufu Fang <fufu.fang@arm.com>
wsi/wayland/surface_properties.cpp

index 57744a7..41f237e 100644 (file)
@@ -76,7 +76,6 @@ VkResult surface_properties::get_surface_capabilities(VkPhysicalDevice physical_
    pSurfaceCapabilities->currentExtent = { 0xffffffff, 0xffffffff };
    pSurfaceCapabilities->minImageExtent = { 1, 1 };
 
-   /* TODO: Ask the device for max - for now setting the max from the GPU, may be ask the display somehow*/
    VkPhysicalDeviceProperties dev_props;
    layer::instance_private_data::get(physical_device).disp.GetPhysicalDeviceProperties(physical_device, &dev_props);