Blame SOURCES/0003-xwayland-glamor-Log-backend-selected-for-debug.patch

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