From 6211654e1113bf2ed0dbc8845bbf33b91990192f Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 23 Nov 2022 19:06:38 +0100 Subject: [PATCH] openglbackend: increase severity of GPU reset messages --- src/platformsupport/scenes/opengl/openglbackend.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/platformsupport/scenes/opengl/openglbackend.cpp b/src/platformsupport/scenes/opengl/openglbackend.cpp index 03c9902686..d07a50c1df 100644 --- a/src/platformsupport/scenes/opengl/openglbackend.cpp +++ b/src/platformsupport/scenes/opengl/openglbackend.cpp @@ -86,13 +86,13 @@ bool OpenGLBackend::checkGraphicsReset() switch (status) { case GL_GUILTY_CONTEXT_RESET: - qCDebug(KWIN_OPENGL) << "A graphics reset attributable to the current GL context occurred."; + qCWarning(KWIN_OPENGL) << "A graphics reset attributable to the current GL context occurred."; break; case GL_INNOCENT_CONTEXT_RESET: - qCDebug(KWIN_OPENGL) << "A graphics reset not attributable to the current GL context occurred."; + qCWarning(KWIN_OPENGL) << "A graphics reset not attributable to the current GL context occurred."; break; case GL_UNKNOWN_CONTEXT_RESET: - qCDebug(KWIN_OPENGL) << "A graphics reset of an unknown cause occurred."; + qCWarning(KWIN_OPENGL) << "A graphics reset of an unknown cause occurred."; break; default: break; @@ -105,6 +105,9 @@ bool OpenGLBackend::checkGraphicsReset() while (timer.elapsed() < 10000 && KWin::glGetGraphicsResetStatus() != GL_NO_ERROR) { usleep(50); } + if (timer.elapsed() >= 10000) { + qCWarning(KWIN_OPENGL) << "Waiting for glGetGraphicsResetStatus to return GL_NO_ERROR timed out!"; + } return true; }