mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
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:
parent
77edb2d40d
commit
af2bf08bba
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue