zink: use warn_missing_feature for missing modifier support
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 10 Oct 2023 11:09:43 +0000 (13:09 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 Oct 2023 11:44:12 +0000 (11:44 +0000)
To avoid spamming VKCTS output.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25636>

src/gallium/drivers/zink/zink_resource.c

index a698be9..f415048 100644 (file)
@@ -1764,7 +1764,8 @@ zink_resource_get_handle(struct pipe_screen *pscreen,
             assert(!res->all_binds); //TODO handle if problematic
             assert(!zink_resource_usage_is_unflushed(res));
             if (!screen->info.have_EXT_image_drm_format_modifier) {
-               mesa_loge("zink: EXT_image_drm_format_modifier support required");
+               static bool warned = false;
+               warn_missing_feature(warned, "zink: EXT_image_drm_format_modifier support required");
                return false;
             }
             unsigned bind = ZINK_BIND_DMABUF;