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:
parent
676abf12dc
commit
889a8df5bd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue