zink: use warn_missing_feature for missing modifier support

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>
This commit is contained in:
Samuel Pitoiset
2023-10-10 13:09:43 +02:00
committed by Marge Bot
parent 2ac2268ce7
commit ea0e22da44

View 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;