Commit 754d697f by Yuly Novikov Committed by Commit Bot

Ignore FreeAllocationOnTimestamp GL debug message

Erroneously produced by Android Q Qualcomm driver for worker contexts. Bug: angleproject:3491 Change-Id: I8f2a5f05ad8a00c97d0dfa6e3b7a939d05656420 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1700255 Commit-Queue: Yuly Novikov <ynovikov@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 5de073c0
......@@ -70,6 +70,14 @@ void SetMaxShaderCompilerThreads(const rx::FunctionsGL *functions, GLuint count)
}
}
#if defined(ANGLE_PLATFORM_ANDROID)
const char *kIgnoredErrors[] = {
// Wrong error message on Android Q Pixel 2. http://anglebug.com/3491
"FreeAllocationOnTimestamp - Reference to buffer created from "
"different context without a share list. Application failed to pass "
"share_context to eglCreateContext. Results are undefined.",
};
#endif // defined(ANGLE_PLATFORM_ANDROID)
} // namespace
static void INTERNAL_GL_APIENTRY LogGLDebugMessage(GLenum source,
......@@ -155,6 +163,21 @@ static void INTERNAL_GL_APIENTRY LogGLDebugMessage(GLenum source,
break;
}
#if defined(ANGLE_PLATFORM_ANDROID)
if (type == GL_DEBUG_TYPE_ERROR)
{
for (const char *&err : kIgnoredErrors)
{
if (strncmp(err, message, length) == 0)
{
// There is only one ignored message right now and it is quite spammy, around 3MB
// for a complete end2end tests run, so don't print it even as a warning.
return;
}
}
}
#endif // defined(ANGLE_PLATFORM_ANDROID)
if (type == GL_DEBUG_TYPE_ERROR)
{
ERR() << std::endl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment