summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYiwei Zhang <zzyiwei@chromium.org>2022-04-09 02:48:42 +0000
committerMarge Bot <emma+marge@anholt.net>2022-04-30 04:25:44 +0000
commit2f8123abab777bb66eb50acd5972ac3f9983581f (patch)
tree55876b0d520c07ea2480a26cc5b00afe812cf2c2
parent2df0aa185ecdaa2047a3545ca470fe840ffd126a (diff)
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>
-rw-r--r--src/virtio/vulkan/vn_physical_device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/virtio/vulkan/vn_physical_device.c b/src/virtio/vulkan/vn_physical_device.c
index a372f4318e9..a51654489ae 100644
--- a/src/virtio/vulkan/vn_physical_device.c
+++ b/src/virtio/vulkan/vn_physical_device.c
@@ -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;