venus: enable ANB shared presentable image prop

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15868>
This commit is contained in:
Yiwei Zhang 2022-04-09 02:48:42 +00:00 committed by Marge Bot
parent 2df0aa185e
commit 2f8123abab
1 changed files with 3 additions and 1 deletions

View File

@ -2067,7 +2067,9 @@ vn_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
}
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENTATION_PROPERTIES_ANDROID:
u.presentation_properties->sharedImage = VK_FALSE;
u.presentation_properties->sharedImage =
vn_android_gralloc_get_shared_present_usage() ? VK_TRUE
: VK_FALSE;
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_PROPERTIES_EXT:
*u.provoking_vertex = props->provoking_vertex;