Blame SOURCES/0008-glamor-Dump-backtrace-on-GL-error.patch

4c4b8b
From 85638273f23338d06776cdb7bb422440f690038a Mon Sep 17 00:00:00 2001
4c4b8b
From: Olivier Fourdan <ofourdan@redhat.com>
4c4b8b
Date: Tue, 30 Mar 2021 08:48:25 +0200
4c4b8b
Subject: [PATCH xserver 08/27] glamor: Dump backtrace on GL error
4c4b8b
MIME-Version: 1.0
4c4b8b
Content-Type: text/plain; charset=UTF-8
4c4b8b
Content-Transfer-Encoding: 8bit
4c4b8b
4c4b8b
Currrently, when a GL error is triggered, glamor would log the error
4c4b8b
which may not be sufficient to trace it back to the cause of the error.
4c4b8b
4c4b8b
Also dump the backtrace which may give more information as to where the
4c4b8b
error comes from.
4c4b8b
4c4b8b
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
4c4b8b
Reviewed-by: Martin Peres <martin.peres@mupuf.org>
4c4b8b
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
4c4b8b
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1156
4c4b8b
(cherry picked from commit 3b265c59a6456f6e4abfb9e1694237bc56f1776a)
4c4b8b
---
4c4b8b
 glamor/glamor.c | 1 +
4c4b8b
 1 file changed, 1 insertion(+)
4c4b8b
4c4b8b
diff --git a/glamor/glamor.c b/glamor/glamor.c
4c4b8b
index 3baef4b9f..b8406f42d 100644
4c4b8b
--- a/glamor/glamor.c
4c4b8b
+++ b/glamor/glamor.c
4c4b8b
@@ -414,6 +414,7 @@ glamor_debug_output_callback(GLenum source,
4c4b8b
 
4c4b8b
     LogMessageVerb(X_ERROR, 0, "glamor%d: GL error: %*s\n",
4c4b8b
                screen->myNum, length, message);
4c4b8b
+    xorg_backtrace();
4c4b8b
 }
4c4b8b
 
4c4b8b
 /**
4c4b8b
-- 
4c4b8b
2.31.1
4c4b8b