From cf2fe3de1453c7c69ca107bfb98fdd750944f6c3 Mon Sep 17 00:00:00 2001 From: James Thomas Date: Fri, 1 May 2015 15:20:48 +0000 Subject: Revert "egl: remove egl_gallium from the loader" This reverts commit 363b53f00069af718f64cf047f19ad5681a8bf6d. --- src/egl/main/egldriver.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index 7ad14d32a7e..ca2be32407d 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -523,6 +523,19 @@ _eglAddUserDriver(void) } +/** + * Add egl_gallium to the module array. + */ +static void +_eglAddGalliumDriver(void) +{ +#ifndef _EGL_BUILT_IN_DRIVER_GALLIUM + void *external = (void *) "egl_gallium"; + _eglPreloadForEach(_eglGetSearchPath(), _eglLoaderFile, external); +#endif +} + + /** * Add built-in drivers to the module array. */ @@ -555,6 +568,7 @@ _eglAddDrivers(void) * Add other drivers only when EGL_DRIVER is not set. The order here * decides the priorities. */ + _eglAddGalliumDriver(); _eglAddBuiltInDrivers(); } -- cgit v1.2.1