62 lines
2.6 KiB
Diff
62 lines
2.6 KiB
Diff
From: Diederik de Haas <didi.debian@cknow.org>
|
|
Date: Sun, 22 Sep 2024 10:48:22 +0200
|
|
Subject: [PATCH] dri: Add Rockchip EBC to kmsro drivers
|
|
Forwarded: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23575
|
|
|
|
The Rockchip EBC driver is used in the Pine64 PineNote.
|
|
|
|
Link: https://lore.kernel.org/linux-arm-kernel/20220413221916.50995-1-samuel@sholland.org/
|
|
---
|
|
src/gallium/targets/dri/dri_target.c | 3 +++
|
|
src/gallium/targets/dril/dril_target.c | 1 +
|
|
src/gallium/targets/dril/meson.build | 1 +
|
|
3 files changed, 5 insertions(+)
|
|
|
|
diff --git a/src/gallium/targets/dri/dri_target.c b/src/gallium/targets/dri/dri_target.c
|
|
index 6604afe99f5..9bcbc378c99 100644
|
|
--- a/src/gallium/targets/dri/dri_target.c
|
|
+++ b/src/gallium/targets/dri/dri_target.c
|
|
@@ -126,6 +126,7 @@ DEFINE_LOADER_DRM_ENTRYPOINT(pl111)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(rcar_du)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(repaper)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(rockchip)
|
|
+DEFINE_LOADER_DRM_ENTRYPOINT(rockchip_ebc)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(rzg2l_du)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(ssd130x)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(st7586)
|
|
@@ -302,6 +303,8 @@ dri_loader_get_extensions(const char *driver_name)
|
|
return __driDriverGetExtensions_repaper();
|
|
if (!strcmp(driver_name, "rockchip"))
|
|
return __driDriverGetExtensions_rockchip();
|
|
+ if (!strcmp(driver_name, "rockchip-ebc"))
|
|
+ return __driDriverGetExtensions_rockchip_ebc();
|
|
if (!strcmp(driver_name, "rzg2l-du"))
|
|
return __driDriverGetExtensions_rzg2l_du();
|
|
if (!strcmp(driver_name, "ssd130x"))
|
|
diff --git a/src/gallium/targets/dril/dril_target.c b/src/gallium/targets/dril/dril_target.c
|
|
index a94ab09858f..2e628ae1c02 100644
|
|
--- a/src/gallium/targets/dril/dril_target.c
|
|
+++ b/src/gallium/targets/dril/dril_target.c
|
|
@@ -599,6 +599,7 @@ DEFINE_LOADER_DRM_ENTRYPOINT(pl111)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(rcar_du)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(repaper)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(rockchip)
|
|
+DEFINE_LOADER_DRM_ENTRYPOINT(rockchip_ebc)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(rzg2l_du)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(ssd130x)
|
|
DEFINE_LOADER_DRM_ENTRYPOINT(st7586)
|
|
diff --git a/src/gallium/targets/dril/meson.build b/src/gallium/targets/dril/meson.build
|
|
index 3adf97b24a7..df802194bc5 100644
|
|
--- a/src/gallium/targets/dril/meson.build
|
|
+++ b/src/gallium/targets/dril/meson.build
|
|
@@ -89,6 +89,7 @@ foreach d : [[with_gallium_kmsro, [
|
|
'rcar-du_dri.so',
|
|
'repaper_dri.so',
|
|
'rockchip_dri.so',
|
|
+ 'rockchip-ebc_dri.so',
|
|
'rzg2l-du_dri.so',
|
|
'ssd130x_dri.so',
|
|
'st7586_dri.so',
|
|
--
|
|
2.45.2
|
|
|