|
|
8fce16 |
From 3206e133cb768709d32f260ac4b1bb17a46141a7 Mon Sep 17 00:00:00 2001
|
|
|
8fce16 |
From: Olivier Fourdan <ofourdan@redhat.com>
|
|
|
8fce16 |
Date: Wed, 17 Nov 2021 13:09:58 +0100
|
|
|
8fce16 |
Subject: [PATCH xserver 3/4] xwayland/glamor: Log backend selected for debug
|
|
|
8fce16 |
MIME-Version: 1.0
|
|
|
8fce16 |
Content-Type: text/plain; charset=UTF-8
|
|
|
8fce16 |
Content-Transfer-Encoding: 8bit
|
|
|
8fce16 |
|
|
|
8fce16 |
Add (verbose) statements to trace the actual backend used with glamor.
|
|
|
8fce16 |
|
|
|
8fce16 |
That can be useful for debugging.
|
|
|
8fce16 |
|
|
|
8fce16 |
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
|
|
|
8fce16 |
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
|
|
|
8fce16 |
(cherry picked from commit c5d1fed9fa32244739677ec5c58ea87b261e023b)
|
|
|
8fce16 |
---
|
|
|
8fce16 |
hw/xwayland/xwayland-glamor.c | 2 ++
|
|
|
8fce16 |
1 file changed, 2 insertions(+)
|
|
|
8fce16 |
|
|
|
8fce16 |
diff --git a/hw/xwayland/xwayland-glamor.c b/hw/xwayland/xwayland-glamor.c
|
|
|
8fce16 |
index 541d5e923..b34eafabb 100644
|
|
|
8fce16 |
--- a/hw/xwayland/xwayland-glamor.c
|
|
|
8fce16 |
+++ b/hw/xwayland/xwayland-glamor.c
|
|
|
8fce16 |
@@ -409,6 +409,7 @@ xwl_glamor_select_gbm_backend(struct xwl_screen *xwl_screen)
|
|
|
8fce16 |
if (xwl_screen->gbm_backend.is_available &&
|
|
|
8fce16 |
xwl_glamor_has_wl_interfaces(xwl_screen, &xwl_screen->gbm_backend)) {
|
|
|
8fce16 |
xwl_screen->egl_backend = &xwl_screen->gbm_backend;
|
|
|
8fce16 |
+ LogMessageVerb(X_INFO, 3, "glamor: Using GBM backend\n");
|
|
|
8fce16 |
return TRUE;
|
|
|
8fce16 |
}
|
|
|
8fce16 |
else
|
|
|
8fce16 |
@@ -426,6 +427,7 @@ xwl_glamor_select_eglstream_backend(struct xwl_screen *xwl_screen)
|
|
|
8fce16 |
if (xwl_screen->eglstream_backend.is_available &&
|
|
|
8fce16 |
xwl_glamor_has_wl_interfaces(xwl_screen, &xwl_screen->eglstream_backend)) {
|
|
|
8fce16 |
xwl_screen->egl_backend = &xwl_screen->eglstream_backend;
|
|
|
8fce16 |
+ LogMessageVerb(X_INFO, 3, "glamor: Using EGLStream backend\n");
|
|
|
8fce16 |
return TRUE;
|
|
|
8fce16 |
}
|
|
|
8fce16 |
else
|
|
|
8fce16 |
--
|
|
|
8fce16 |
2.33.1
|
|
|
8fce16 |
|