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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user