diff options
author | Emil Velikov <[email protected]> | 2014-01-11 02:24:43 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-01-18 18:47:48 +0000 |
commit | eac776cf779b705cbfb8d41812f1d171fb09c76f (patch) | |
tree | ac9f840cce174a8c3430685065e41aa03edb811a /src/glx/dri3_glx.c | |
parent | 8c2e7fd8460750543367053b1be9368cc38e1d6a (diff) |
glx: use the loader util lib
v2
* Set logger to ErrorMessageF. Spotted by Kristian
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glx/dri3_glx.c')
-rw-r--r-- | src/glx/dri3_glx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 4aae182199c..9068ff94268 100644 --- a/src/glx/dri3_glx.c +++ b/src/glx/dri3_glx.c @@ -78,6 +78,7 @@ #include "xf86drm.h" #include "dri_common.h" #include "dri3_priv.h" +#include "loader.h" static const struct glx_context_vtable dri3_context_vtable; @@ -1597,7 +1598,7 @@ dri3_create_screen(int screen, struct glx_display * priv) } deviceName = NULL; - driverName = dri3_get_driver_for_fd(psc->fd); + driverName = loader_get_driver_for_fd(psc->fd, 0); if (!driverName) { ErrorMessageF("No driver found\n"); goto handle_error; @@ -1802,6 +1803,7 @@ dri3_create_display(Display * dpy) pdp->base.destroyDisplay = dri3_destroy_display; pdp->base.createScreen = dri3_create_screen; + loader_set_logger(ErrorMessageF); i = 0; pdp->loader_extensions[i++] = &imageLoaderExtension.base; |