Fix pipeline barrier test issues
authorMika Isojärvi <misojarvi@google.com>
Wed, 6 Jan 2016 21:43:53 +0000 (13:43 -0800)
committerMika Isojärvi <misojarvi@google.com>
Wed, 6 Jan 2016 23:00:02 +0000 (15:00 -0800)
commit249ab617863dbeb32a591ca7194e933bb6d419d1
treedce74afc8e4e49c0cc36dfdbaa08f82add21ab22
parenta49098ff22c8a0aca05640edc230f447167622ee
Fix pipeline barrier test issues

- Fix unmapping wrong memory object.
- Fixes to findMaxBufferSize.
- Round max buffer size to W*H*4 to make sure copies to and from
  images will cover whole buffer.
- Make sure that buffer copies to and from image always use the whole buffer.
- Fix life time issues of the buffer and image objects.
- Fix creating buffers / images with 0 usage.

Change-Id: I03fcc1b493dab36f4a55241a15a9f0bf804b27c8
external/vulkancts/modules/vulkan/memory/vktMemoryPipelineBarrierTests.cpp