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

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