Stack size increase for x86 QNX systems
authorJames McDonnell <jmcdonnell@qnx.com>
Mon, 10 Mar 2014 16:00:58 +0000 (12:00 -0400)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 10 Mar 2014 18:12:11 +0000 (19:12 +0100)
Increase the size of the stack for the scene graph thread on x86
QNX systems.  The default stack size (132K) is too small for the
MESA graphics driver shared libraries on these systems.

Task-number: QTBUG-37338
Change-Id: I8b50aece98ef3f530f2202fc89a0e90b0b2e2e72
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/quick/scenegraph/qsgthreadedrenderloop.cpp

index a420ce074ae730b4d2a73d9f347c2b65f76afded..f6398415880f2c76962acf47863df2746d0bc264 100644 (file)
@@ -289,6 +289,10 @@ public:
         , window(0)
         , stopEventProcessing(false)
     {
+#if defined(Q_OS_QNX) && !defined(Q_OS_BLACKBERRY) && defined(Q_PROCESSOR_X86)
+        // The SDP 6.6.0 x86 MESA driver requires a larger stack than the default.
+        setStackSize(1024 * 1024);
+#endif
         vsyncDelta = qsgrl_animation_interval();
     }