Fix post-copy barrier in readImageAspect()
authorPyry Haulos <phaulos@google.com>
Fri, 2 Dec 2016 16:34:43 +0000 (08:34 -0800)
committerPyry Haulos <phaulos@google.com>
Fri, 2 Dec 2016 16:34:43 +0000 (08:34 -0800)
commitbd9468ab8e3e367e478fb2e9d107c33f9edc4975
treea6f207682ee83b820b95ef856807c0d9f39fe69c
parent0b0c5dba7daed6439ec6352aacf3cd216d1c1dd5
Fix post-copy barrier in readImageAspect()

 * Barrier was using TOP_OF_PIPE_BIT for flushing buffer contents for
host access. HOST_BIT must be used instead.

 * For combined depth stencil formats image was left in wrong image layout
for later stencil aspect copy.

Affects combined DS format cases in:

dEQP-VK.api.copy_and_blit.blit_image.all_formats.*

Change-Id: I80263efbc12da21c8205768687725416419e923e
external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp