Module: Mesa Branch: main Commit: ea0e22da4424a2015a894e7f4dce89870b74d234 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea0e22da4424a2015a894e7f4dce89870b74d234
Author: Samuel Pitoiset <[email protected]> Date: Tue Oct 10 13:09:43 2023 +0200 zink: use warn_missing_feature for missing modifier support To avoid spamming VKCTS output. Signed-off-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25636> --- src/gallium/drivers/zink/zink_resource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index a698be9c6d3..f41504889bf 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -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;
