OSDN Git Service

gallium: introduce load_pipe_screen()
authorRob Herring <robh@kernel.org>
Wed, 10 Feb 2016 22:56:56 +0000 (16:56 -0600)
committerMauro Rossi <issor.oruam@gmail.com>
Mon, 20 Mar 2017 23:15:04 +0000 (00:15 +0100)
commit342f6c8b02ac6f6bdde393855e0637954e417672
tree2452c2bed2502ea9253e6aeeb65c17d9a8e010a4
parent2f8259928c65e54eb61d1e89ff4fb1fe6f72762d
gallium: introduce load_pipe_screen()

Introduce load_pipe_screen() public entry point for other code which
dlopen()'s gralloc_dri.so for purposes of loading a pipe_screen. This way
drm_gralloc can avoid static linking of each gallium winsys and driver,
and avoid duplicated logic to figure out which pipe driver to load.

This is based on Rob Clark's work. I moved it into pipe_loader which seems
to be a better spot.

Signed-off-by: Rob Herring <robh@kernel.org>
src/gallium/auxiliary/pipe-loader/pipe_loader.h
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
src/gallium/state_trackers/dri/dri2.c
src/gallium/targets/dri/dri.sym