venus: enable wsi image ownership transfer for common wsi

v2: this is split out from the last commit

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> (v1)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10709>
This commit is contained in:
Chia-I Wu 2021-05-14 12:03:31 -07:00 committed by Marge Bot
parent 676abf12dc
commit 889a8df5bd
1 changed files with 3 additions and 5 deletions

View File

@ -13,12 +13,10 @@
#include "vn_common.h"
/* XXX drop the #ifdef after fixing common wsi */
#ifdef ANDROID
/* changing this to VK_IMAGE_LAYOUT_PRESENT_SRC_KHR disables ownership
* transfers and can be useful for debugging
*/
#define VN_PRESENT_SRC_INTERNAL_LAYOUT VK_IMAGE_LAYOUT_GENERAL
#else
#define VN_PRESENT_SRC_INTERNAL_LAYOUT VK_IMAGE_LAYOUT_PRESENT_SRC_KHR
#endif
struct vn_image_create_deferred_info {
VkImageCreateInfo create;