Mesa (main): gbm: list to stderr all the missing extension
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon May 24 16:41:41 UTC 2021
Module: Mesa
Branch: main
Commit: af2bf08bba478d97d15c86c8defedf0337b2acfc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=af2bf08bba478d97d15c86c8defedf0337b2acfc
Author: Emil Velikov <emil.velikov at collabora.com>
Date: Mon May 10 17:55:59 2021 +0100
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 at collabora.com>
Reviewed-by: Simon Ser <contact at emersion.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10732>
---
src/gbm/backends/dri/gbm_dri.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index dff0b3c7ecf..e1ec561a117 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -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;
}
}
More information about the mesa-commit
mailing list