anv: wsi: report presentation error per image request
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 10 Feb 2017 17:54:12 +0000 (17:54 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 15 Feb 2017 11:43:05 +0000 (11:43 +0000)
commit0fcb92c17dee681bd39c08ddf0abc358a27337c7
tree842ff97de8b98ff02f5b9b1bcb6afa84717cf08a
parentfc9b1190134f2596ed84dad1d4aa286bc6e39142
anv: wsi: report presentation error per image request

vkQueuePresentKHR() takes VkPresentInfoKHR pointer and includes a
pResults fields which must holds the results of all the images
requested to be presented. Currently we're not filling this field.

Also as a side effect we probably want to go through all the images
rather than stopping on the first error.

This commit also makes the QueuePresentKHR() implementation return the
first error encountered.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_wsi.c