[Mesa-dev] [PATCH v2 2/3] vulkan/wsi: Report the correct min/maxImageCount

Neil Roberts bpeeluk at yahoo.co.uk
Mon Oct 2 05:32:13 UTC 2017


Jason Ekstrand <jason at jlekstrand.net> writes:

> Hey, Neil!

Hey Jason :)

> Yeah... That's a bit unfortunate.  The problem is that we have no way of 
> returning a different number of images depending on the mode.  In theory, 
> we could start out at 2 and return SUBOPTIMAL and force the application to 
> recreate the swapchain with more images until we have enough.  That would 
> be a real pain though...  In not sure what the best option is.

Hm, was there a problem with the previous approach? Ie, in the surface
caps it always returns minImages as two but when it comes to creating
the swapchain if the present mode is MAILBOX then it will go ahead and
create 4 images. The parameter in the create call is also called
“minImages” not “numImages” and the spec implies it’s ok to create more
than were requested. It seems like that would just do the right thing.

Regards,
- Neil

.


More information about the mesa-dev mailing list