mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
vulkan/android: fix to not append GRALLOC_USAGE_HW_COMPOSER bit
The composer usage bit is automatically added by the surface consumer
side when the consumer is SurfaceFlinger. e.g. if the swapchain is
connected with a media encoder surface, the consumer side would append
encoder usage bit instead.
Fixes: c406d53858 ("vulkan/android: Add common vkGetSwapchainGrallocUsage{2}ANDROID")
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35785>
This commit is contained in:
parent
63be5358c7
commit
495156079c
1 changed files with 0 additions and 2 deletions
|
|
@ -207,8 +207,6 @@ setup_gralloc0_usage(struct vk_device *device, VkFormat format,
|
|||
imageUsage);
|
||||
}
|
||||
|
||||
*grallocUsage |= GRALLOC_USAGE_HW_COMPOSER;
|
||||
|
||||
if (*grallocUsage == 0)
|
||||
return VK_ERROR_FORMAT_NOT_SUPPORTED;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue