diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-10-14 16:37:37 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-11-21 12:52:18 +0000 |
commit | 74d41a32bc179425e866f8afa33a222488ea7760 (patch) | |
tree | 7f3c766ab1585845c4bb7b635d698adaebcb4427 /src/gallium/auxiliary/vl/vl_winsys_drm.c | |
parent | cbc4d9730a7c48744fe7ac62d55b40a80e8fc2e2 (diff) | |
download | external_mesa3d-74d41a32bc179425e866f8afa33a222488ea7760.zip external_mesa3d-74d41a32bc179425e866f8afa33a222488ea7760.tar.gz external_mesa3d-74d41a32bc179425e866f8afa33a222488ea7760.tar.bz2 |
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>
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_winsys_drm.c')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_winsys_drm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/vl/vl_winsys_drm.c b/src/gallium/auxiliary/vl/vl_winsys_drm.c index c96187b..f4e8306 100644 --- a/src/gallium/auxiliary/vl/vl_winsys_drm.c +++ b/src/gallium/auxiliary/vl/vl_winsys_drm.c @@ -49,10 +49,8 @@ vl_drm_screen_create(int fd) #if GALLIUM_STATIC_TARGETS vscreen->pscreen = dd_create_screen(fd); #else - if (pipe_loader_drm_probe_fd(&vscreen->dev, dup(fd))) { - vscreen->pscreen = - pipe_loader_create_screen(vscreen->dev, PIPE_SEARCH_DIR); - } + if (pipe_loader_drm_probe_fd(&vscreen->dev, dup(fd))) + vscreen->pscreen = pipe_loader_create_screen(vscreen->dev); #endif if (!vscreen->pscreen) |