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

Author: Erik Faye-Lund <[email protected]>
Date:   Tue Oct 10 16:27:25 2023 +0200

zink: fix wording of warning

The string-argument for this function is the name of the feature, not
the entire message.

Fixes: ea0e22da442 ("zink: use warn_missing_feature for missing modifier 
support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25644>

---

 src/gallium/drivers/zink/zink_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_resource.c 
b/src/gallium/drivers/zink/zink_resource.c
index f41504889bf..d4e9b5e8096 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -1765,7 +1765,7 @@ zink_resource_get_handle(struct pipe_screen *pscreen,
             assert(!zink_resource_usage_is_unflushed(res));
             if (!screen->info.have_EXT_image_drm_format_modifier) {
                static bool warned = false;
-               warn_missing_feature(warned, "zink: 
EXT_image_drm_format_modifier support required");
+               warn_missing_feature(warned, "EXT_image_drm_format_modifier");
                return false;
             }
             unsigned bind = ZINK_BIND_DMABUF;

Reply via email to