Vulkan Overlay: Don't try to change the image layout to present twice
authorGeorg Lehmann <dadschoorse@gmail.com>
Thu, 6 Feb 2020 21:29:42 +0000 (22:29 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 Feb 2020 14:23:23 +0000 (14:23 +0000)
commitf239bb8020df4176ca539bafff327ab5c8da2c2e
tree28d607c6089caa85167c65c65a374ceb9d80315d
parent4b978cd950cef844afce07993ddb697779e5648d
Vulkan Overlay: Don't try to change the image layout to present twice

The render pass already does the transition.
The pipeline barrier is still needed to transfer the queue family ownership.

Fixes: 320b0f66c274 ("vulkan/overlay: bounce image back to present layout")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3740>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3740>
src/vulkan/overlay-layer/overlay.cpp