Mesa (main): dzn: Decorrelate external image info and external image properties

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 14 23:17:13 UTC 2022


Module: Mesa
Branch: main
Commit: fa79d036f1ca5db54126c0d2e724a6faf1322b2a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fa79d036f1ca5db54126c0d2e724a6faf1322b2a

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Tue Apr 19 10:57:15 2022 +0200

dzn: Decorrelate external image info and external image properties

One can be present without the other.

Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16926>

---

 src/microsoft/vulkan/dzn_device.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c
index 0e174df2403..cfda9e73ff1 100644
--- a/src/microsoft/vulkan/dzn_device.c
+++ b/src/microsoft/vulkan/dzn_device.c
@@ -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;



More information about the mesa-commit mailing list