From 61d3ae6e0bde93c5601278d1a60c44be655a7cb5 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 29 Jan 2019 05:46:07 +0000 Subject: panfrost: Initial stub for Panfrost driver This patch adds an initial stub for the Gallium driver, containing simple screen functions and the majority of the driver headers but no actual functionality. It further adds the winsys glue for linking in this stub driver via kmsro on Rockchip/Amlogic boards. Signed-off-by: Alyssa Rosenzweig Acked-by: Jason Ekstrand Acked-by: Rob Clark Acked-by: Eric Anholt Acked-by: Emil Velikov --- src/gallium/targets/dri/meson.build | 5 ++++- src/gallium/targets/dri/target.c | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src/gallium/targets/dri') diff --git a/src/gallium/targets/dri/meson.build b/src/gallium/targets/dri/meson.build index 68d226621b2..df77d329efa 100644 --- a/src/gallium/targets/dri/meson.build +++ b/src/gallium/targets/dri/meson.build @@ -58,13 +58,15 @@ libgallium_dri = shared_library( driver_swrast, driver_r300, driver_r600, driver_radeonsi, driver_nouveau, driver_kmsro, driver_v3d, driver_vc4, driver_freedreno, driver_etnaviv, driver_tegra, driver_i915, driver_svga, driver_virgl, - driver_swr, + driver_swr, driver_panfrost ], ) foreach d : [[with_gallium_kmsro, 'pl111_dri.so'], [with_gallium_kmsro, 'hx8357d_dri.so'], [with_gallium_kmsro, 'imx-drm_dri.so'], + [with_gallium_kmsro, 'rockchip_dri.so'], + [with_gallium_kmsro, 'meson_dri.so'], [with_gallium_radeonsi, 'radeonsi_dri.so'], [with_gallium_nouveau, 'nouveau_dri.so'], [with_gallium_freedreno, ['msm_dri.so', 'kgsl_dri.so']], @@ -72,6 +74,7 @@ foreach d : [[with_gallium_kmsro, 'pl111_dri.so'], [with_gallium_softpipe and with_gallium_drisw_kms, 'kms_swrast_dri.so'], [with_gallium_v3d, 'v3d_dri.so'], [with_gallium_vc4, 'vc4_dri.so'], + [with_gallium_panfrost, 'panfrost_dri.so'], [with_gallium_etnaviv, 'etnaviv_dri.so'], [with_gallium_tegra, 'tegra_dri.so'], [with_gallium_i915, 'i915_dri.so'], diff --git a/src/gallium/targets/dri/target.c b/src/gallium/targets/dri/target.c index 6b0ea785c40..17484ced979 100644 --- a/src/gallium/targets/dri/target.c +++ b/src/gallium/targets/dri/target.c @@ -83,6 +83,16 @@ 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) DEFINE_LOADER_DRM_ENTRYPOINT(etnaviv) -- cgit v1.2.3