gallium/drm: Deduplicate screen creation for the dynamic (clover) pipe loader.
authorEric Anholt <eric@anholt.net>
Wed, 16 Sep 2020 15:54:12 +0000 (08:54 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 24 Sep 2020 22:34:52 +0000 (15:34 -0700)
commit9ec28b8d226558aa2748dbf813b125f8938a09cc
treefa18d8b6e7cc04af81bb19af164e6843c52ec6d0
parent472a20c5fc0feda0f074b4ff95fd7c7a6305c8cd
gallium/drm: Deduplicate screen creation for the dynamic (clover) pipe loader.

We can just reuse drm_helper.h, which has either the real code or the stub
for all pipe_screens based on the GALLIUM_* driver defines, and the
dynamic pipe loader's .c build will only define one GALLIUM_* driver
define.  The remaining stubs should get GCed by the linker.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6751>
src/gallium/targets/pipe-loader/pipe_i915.c
src/gallium/targets/pipe-loader/pipe_kmsro.c
src/gallium/targets/pipe-loader/pipe_msm.c
src/gallium/targets/pipe-loader/pipe_nouveau.c
src/gallium/targets/pipe-loader/pipe_r300.c
src/gallium/targets/pipe-loader/pipe_r600.c
src/gallium/targets/pipe-loader/pipe_radeonsi.c
src/gallium/targets/pipe-loader/pipe_vmwgfx.c