gallium: remove library_path argument from pipe_loader_create_screen()
Currently the location is determined at configure/build time and consistently copied across gallium. Just remove the extra argument, and use PIPE_SEARCH_DIR where appropriate. This will allow us to remove the duplication in the *configuration and *screen_create APIs by moving util_dl_get_proc_address() and friends to probe time. v2: rebase on top of vl_winsys_drm.c addition Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
@@ -165,14 +165,13 @@ pipe_loader_drm_configuration(struct pipe_loader_device *dev,
|
||||
}
|
||||
|
||||
static struct pipe_screen *
|
||||
pipe_loader_drm_create_screen(struct pipe_loader_device *dev,
|
||||
const char *library_paths)
|
||||
pipe_loader_drm_create_screen(struct pipe_loader_device *dev)
|
||||
{
|
||||
struct pipe_loader_drm_device *ddev = pipe_loader_drm_device(dev);
|
||||
const struct drm_driver_descriptor *dd;
|
||||
|
||||
if (!ddev->lib)
|
||||
ddev->lib = pipe_loader_find_module(dev, library_paths);
|
||||
ddev->lib = pipe_loader_find_module(&ddev->base, PIPE_SEARCH_DIR);
|
||||
if (!ddev->lib)
|
||||
return NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user