From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A329DE008BA; Sun, 19 Oct 2014 19:06:27 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (coldnew.tw[at]gmail.com) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.181 listed in list.dnswl.org] Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 642E4E00861 for ; Sun, 19 Oct 2014 19:06:24 -0700 (PDT) Received: by mail-pd0-f181.google.com with SMTP id z10so4027486pdj.12 for ; Sun, 19 Oct 2014 19:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=X+65ZxonxovgNS/39RqZUVet6ezkZkI2U48nMi7juUk=; b=f/Nr2dg2KFeRbT1etjgOyrYJJGPuL3pxAwGleQ0rLXG7QCcuiWn73FURhmdU6l0wTn GBdoMWlMA++yCV1G7ft0/mVqdyuFbMk30Z3lcHzMo1BcrmwICbtf0THbjuFMdL/g98NN zLGDtSlE1yyVqucSADnUF31I2kJ2epahIJ+UqigfRzy6b3IVd7jS0DXDouQhTEZDPCUo D0OtVSle4eQSmvH3vKbVyizIcX/pl9faVWoQmYhu+HCKsI1OdXjqiAYVGvLoPONK/rh4 1ZgL9b0zuN0IPLGeyMs/M+homBMPtPAqnE5j99I2g4aYmJWjS0mx7i+VEm9/tJ9AlFK9 Mh4Q== X-Received: by 10.67.23.164 with SMTP id ib4mr24745207pad.50.1413770784239; Sun, 19 Oct 2014 19:06:24 -0700 (PDT) Received: from Rosia ([203.70.194.104]) by mx.google.com with ESMTPSA id hz4sm7603639pbc.22.2014.10.19.19.06.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Oct 2014 19:06:22 -0700 (PDT) From: Yen-Chin Lee To: "meta-freescale\@yoctoproject.org" Date: Mon, 20 Oct 2014 09:20:41 +0800 Message-ID: MIME-Version: 1.0 Subject: i.MX6 and QtWayland bad performance and other issue X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2014 02:06:27 -0000 Content-Type: text/plain Hi, has anyone try playing i.MX6 with QtWayland ? I find out the QtWayland application performance is really bad, worse than running the same application under X11 or EGLFS. I use `Cinematic Experience' as my testing app, here is the cinematicexperience running under weston with qtwayland. https://www.dropbox.com/s/3au5mmlvkroerh5/i.mx6%20with%20qtwayland.mp4?dl=0 However, compare the application speed wth EGLFS platform, you will find the QtWayland on i.MX6 is really slow. https://www.dropbox.com/s/nmjbzue7k5rxwz6/i.mx6%20with%20eglfs.mp4?dl=0 Expect for the bad performance, I also can't run QtWayland's examples, ex: qml-compositor When I try to run the qml-compositor, there's an EGL error. root@machine:/usr/share/qt5/examples/wayland/qml-compositor# ./qml-compositor -platform eglfs QEglFSImx6Hooks will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync. If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1 QtCompositor: Failed to initialize EGL display. Could not find glEGLImageTargetTexture2DOES. Sine the compositor can't initialize EGL display, I can't running either opengl app nor QtQuick2 application via wayland protocol. But weston compositor can run well under the fb-backend.so, just the slow qtwayland performance problem (weston-simple-egl works fine). Since my goal is use Qt as the core of my system, it will be nice to run QtWayland and build a compositor in purely Qt, like Jolla's Salifish does. Is there anyway to make QtWayland and it's example run well under i.MX6 ? Here is my libraries version and what I do. Here is my machine info: CPU: i.MX6 DuleLite DRAM: 1GB (176MB for GPU) Kernel: 3.10.17-1.0.1_ga Type: Based on wandboard meta-freescale branch: master meta-qt5 branch: master I use Qt 5.3.2 and QtWayland-git branch 5.4 (commit: c3d2a7b), which need to add a backport patch to build with Qt 5.3.2, you can find the patch at following link http://pastebin.com/gZFxSgRa To use qtwayland, you need to setup `QT_WAYLAND_IGNORE_BIND_DISPLAY=1` variable since i.MX6 Vivante do not use eglBindWaylandDisplayWL() to bind the wl_display to the EGL display. For more information, please see https://qt.gitorious.org/qt/lkundrak-qtwayland/commit/4d4fe579225ac089b24912bf8fad5585e615ce6b Note: [1] You can find Qt 5.3.2 in meta-qt5 master branch https://github.com/meta-qt5/meta-qt5.git [2] I also testing the libhybris on i.MX6 with Android 4.4.2_r1, but the qml-compositor example also can't run and the qt5-qpa-hwcompositor QPA plugin performance is not so good like qtwayland. If you interesting to testing i.mx6 with libhybris, you can find some info in https://github.com/aosp-hybris The libhybris please to use following repo https://github.com/aosp-hybris/libhybris (branch: test_viv) Currently aosp-hybris project just put on hold (temporarily halted) until my company's work finish. But if you interested in how to run i.MX6DL under wandboard with libhybrs, you can contacts me for the image. -- Sent with my emacs