From 6b79de84dc36fa4044929262027b24b780fd0f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Tue, 13 Dec 2016 10:09:23 +0200 Subject: [PATCH] Call XInitThreads() when creating X11Platform This makes following tests pass consistently for me: dEQP-EGL.functional.multithread.pbuffer_single_window dEQP-EGL.functional.multithread.pbuffer_single_window_context dEQP-EGL.functional.sharing.gles2.multithread otherwise there are strange misc X related errors. I believe correct fix would be to only call it when test requires/uses threads, I haven't found a nice solution to do this. --- framework/platform/X11/tcuX11Platform.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/platform/X11/tcuX11Platform.cpp b/framework/platform/X11/tcuX11Platform.cpp index a34dcdf..aa7d5ec 100644 --- a/framework/platform/X11/tcuX11Platform.cpp +++ b/framework/platform/X11/tcuX11Platform.cpp @@ -131,6 +131,7 @@ X11Platform::X11Platform (void) : m_eglPlatform (m_eventState) #endif // DEQP_SUPPORT_EGL { + XInitThreads(); #if defined (DEQP_SUPPORT_GLX) m_glPlatform.registerFactory(glx::createContextFactory(m_eventState)); #endif // DEQP_SUPPORT_GLX -- 2.9.3