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

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