dzn: Return empty external properties

We don't support importing/exporting images yet, so let's zero out the
whole external properties struct, if present.

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:58:54 +02:00 committed by Marge Bot
parent fa79d036f1
commit cc7158fe2f
1 changed files with 1 additions and 0 deletions

View File

@ -720,6 +720,7 @@ dzn_physical_device_get_image_format_properties(struct dzn_physical_device *pdev
switch (s->sType) {
case VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES:
external_props = (VkExternalImageFormatProperties *)s;
external_props->externalMemoryProperties = (VkExternalMemoryProperties) { 0 };
break;
default:
dzn_debug_ignored_stype(s->sType);