gsk: vulkan: rework image layout/access transitions
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 20 Sep 2017 23:11:42 +0000 (19:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 21 Sep 2017 03:26:14 +0000 (23:26 -0400)
commitb97fb751469dbe43ec39f1278bc8d79377cfc667
tree25d9ccf5ee0d62aa69cf336519fa9a577bbe9751
parent28bd26ca062de7642bac4e5247933aaf3073bf41
gsk: vulkan: rework image layout/access transitions

By tracking the last transition we can build the appropriate barriers.
Also use the most appropriate initial layout/access at creation :

for linear image : predefined (we prepare the content ourself through memcpy)
for everything else : undefined (we don't care about the content, will most likely be erase)
gsk/gskvulkanimage.c
gsk/gskvulkanimageprivate.h