Mesa (main): gbm: Rename the DRI backend from gbm_dri.so to dri

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 6 17:27:20 UTC 2021


Module: Mesa
Branch: main
Commit: 6d0c9358463bd2544ef40d62c41f5e4250a4e54d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6d0c9358463bd2544ef40d62c41f5e4250a4e54d

Author: James Jones <jajones at nvidia.com>
Date:   Tue Jun 22 17:44:17 2021 -0700

gbm: Rename the DRI backend from gbm_dri.so to dri

A subsequent change will allow loading backends
from DSOs specified by the GBM_BACKEND environment
variable. The exact DSO name and path are derived
by the common loader code and will be of the form:

 <gbm_backend_path>/<GBM_BACKEND>_gbm.so

E.g., a user would set the environment variable to
"external" to load "external_gbm.so". Users will
also still be able to explicitly request any
builtin backends by name as well, so this change
helps keep the environment variable syntax
consistent between internal and external backends.

Signed-off-by: James Jones <jajones at nvidia.com>
Reviewed-by: Michel Dänzer <mdaenzer at redhat.com>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9902>

---

 src/gbm/main/backend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gbm/main/backend.c b/src/gbm/main/backend.c
index ef9cfd6dfe6..7f527fcf0f8 100644
--- a/src/gbm/main/backend.c
+++ b/src/gbm/main/backend.c
@@ -45,7 +45,7 @@ struct gbm_backend_desc {
 };
 
 static const struct gbm_backend_desc builtin_backends[] = {
-   { "gbm_dri.so", &gbm_dri_backend },
+   { "dri", &gbm_dri_backend },
 };
 
 static struct gbm_device *



More information about the mesa-commit mailing list