venus: Only claim modifiers in WSI if the host driver supports it
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34218>
This commit is contained in:
committed by
Marge Bot
parent
de7cae705d
commit
11ba89097f
@@ -87,7 +87,8 @@ vn_wsi_init(struct vn_physical_device *physical_dev)
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
|
||||
physical_dev->wsi_device.supports_modifiers = true;
|
||||
physical_dev->wsi_device.supports_modifiers =
|
||||
physical_dev->base.vk.supported_extensions.EXT_image_drm_format_modifier;
|
||||
physical_dev->base.vk.wsi_device = &physical_dev->wsi_device;
|
||||
|
||||
return VK_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user