dzn: Decorrelate external image info and external image properties

One can be present without the other.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16926>
This commit is contained in:
Boris Brezillon 2022-04-19 10:57:15 +02:00 committed by Marge Bot
parent cd4bc4893b
commit fa79d036f1

View file

@ -727,8 +727,6 @@ dzn_physical_device_get_image_format_properties(struct dzn_physical_device *pdev
}
}
assert((external_props != NULL) == (external_info != NULL));
/* TODO: support image import */
if (external_info && external_info->handleType != 0)
return VK_ERROR_FORMAT_NOT_SUPPORTED;