OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 23 Feb 2017 19:34:59 +0000 (19:34 +0000)
commit173a2ab5c7db6e54f04c17fd86b0e36b4966bdcc
tree4dc89284c74746fc794c4a2d33d738b5859fac57
parent3c93076e8c4e1f1bc8f57d0c3bb853d4f4328cda
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>
(cherry picked from commit 0fcb92c17dee681bd39c08ddf0abc358a27337c7)
src/intel/vulkan/anv_wsi.c