gbm: list to stderr all the missing extension

This way people have a fighting chance of figuring out what's wrong.

v2: add gbm: prefix to the warning (Simon Ser)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10732>
This commit is contained in:
Emil Velikov 2021-05-10 17:55:59 +01:00 committed by Marge Bot
parent 77edb2d40d
commit af2bf08bba

View file

@ -298,6 +298,8 @@ dri_bind_extensions(struct gbm_dri_device *dri,
for (size_t j = 0; j < num_matches; j++) {
field = ((char *) dri + matches[j].offset);
if ((*(const __DRIextension **) field == NULL) && !matches[j].optional) {
fprintf(stderr, "gbm: did not find extension %s version %d\n",
matches[j].name, matches[j].version);
ret = false;
}
}