vulkan/wsi/x11: report device-group present rectangles with prime.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 24 Jul 2020 23:37:57 +0000 (01:37 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Jul 2020 11:30:22 +0000 (11:30 +0000)
commite1147caecb2b8f1e4783a0e12ffb7d610bd2a6d8
treea9f67df5a0e9b571b58fcec02023fb5236bfc70a
parentaf0bc71015905f14f07abeb216499adc792e1b10
vulkan/wsi/x11: report device-group present rectangles with prime.

dEQP-VK.wsi.xlib.surface.query_devgroup_present_modes with prime
fail when 0 rectangles are reported. While I believe that test
tests this unintentionally (trying to test the VK_INCOMPLETE return),
I believe it makes sense to always return a rectangle.

In particular we require the data from the given rectangle for
presentation even if we use prime and given that prime is completely
transparent for the app it still counts as local from the perspective
as the application.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6071>
src/vulkan/wsi/wsi_common_x11.c