layers: Validate shared presentable image cases
authorTobin Ehlis <tobine@google.com>
Thu, 11 May 2017 14:52:51 +0000 (08:52 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Wed, 17 May 2017 14:15:42 +0000 (08:15 -0600)
commitad190dca307a079766a6f558ddda4e2774b2c136
tree9bcbadd864d7ec25b63ea2556d8314677631a1f1
parent4d1154c806f46d44166278f52197e72df1ca3150
layers: Validate shared presentable image cases

Add validation support for shared presentable images as defined in
VK_KHR_shared_presentable_image extension.

For all uses of shared presentable images, make sure that the image is
appropriately in VK_IMAGE_LAYOUT_PRESENT_SRC_KHR layout.
For two cases where no layout validation was performed, added a TODO
note (vkCmdBlitImage, vkCmdResolveImage) as basic layout validation
should first be added upstream.
Also locked the layout in the case where a front-buffered image is
presented and then flag an error if an attempt is made to transition
the image layout after that point.

Change-Id: I06cda727e3a7f56ccff4bffd7503b5ff73e8a795
layers/buffer_validation.cpp
layers/core_validation.cpp
layers/core_validation_types.h
layers/descriptor_sets.cpp