Mesa (main): venus: enable ANB shared presentable image prop
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Apr 30 04:30:52 UTC 2022
Module: Mesa
Branch: main
Commit: 2f8123abab777bb66eb50acd5972ac3f9983581f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f8123abab777bb66eb50acd5972ac3f9983581f
Author: Yiwei Zhang <zzyiwei at chromium.org>
Date: Sat Apr 9 02:48:42 2022 +0000
venus: enable ANB shared presentable image prop
Signed-off-by: Yiwei Zhang <zzyiwei at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15868>
---
src/virtio/vulkan/vn_physical_device.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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;
More information about the mesa-commit
mailing list