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

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