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

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