kmsro: Move DRM entrypoints to shared block
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 5 Feb 2019 02:25:01 +0000 (02:25 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 7 Feb 2019 01:50:16 +0000 (01:50 +0000)
As kmsro allows an essentially mix-and-match hodgepodge of display
drivers and renderonly GPUs, it doesn't make sense to couple the display
driver entrypoint definition with the driver. Instead, we move *all*
kmsro entrypoints to a shared kmsro block at the end (avoiding clutter
and distraction since this list may snowball in the future).

v2: Alphabetize driver list.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/targets/dri/target.c

index 17484ced9790682db3e1ea2d5ae7746264925d9d..8acec0c819d9c0e02b815bd1ed39207b814276c5 100644 (file)
@@ -77,21 +77,11 @@ DEFINE_LOADER_DRM_ENTRYPOINT(v3d)
 
 #if defined(GALLIUM_VC4)
 DEFINE_LOADER_DRM_ENTRYPOINT(vc4)
-#if defined(GALLIUM_KMSRO)
-DEFINE_LOADER_DRM_ENTRYPOINT(hx8357d)
-DEFINE_LOADER_DRM_ENTRYPOINT(pl111)
-#endif
 #endif
 
 #if defined(GALLIUM_PANFROST)
 DEFINE_LOADER_DRM_ENTRYPOINT(panfrost)
-#if defined(GALLIUM_KMSRO)
-DEFINE_LOADER_DRM_ENTRYPOINT(rockchip)
-DEFINE_LOADER_DRM_ENTRYPOINT(meson)
 #endif
-#endif
-
-
 
 #if defined(GALLIUM_ETNAVIV)
 DEFINE_LOADER_DRM_ENTRYPOINT(imx_drm)
@@ -101,3 +91,11 @@ DEFINE_LOADER_DRM_ENTRYPOINT(etnaviv)
 #if defined(GALLIUM_TEGRA)
 DEFINE_LOADER_DRM_ENTRYPOINT(tegra);
 #endif
+
+#if defined(GALLIUM_KMSRO)
+DEFINE_LOADER_DRM_ENTRYPOINT(hx8357d)
+DEFINE_LOADER_DRM_ENTRYPOINT(meson)
+DEFINE_LOADER_DRM_ENTRYPOINT(pl111)
+DEFINE_LOADER_DRM_ENTRYPOINT(rockchip)
+#endif
+