<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Wrong Qt-Rendering with platform EGLFS in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Wrong-Qt-Rendering-with-platform-EGLFS/m-p/396770#M58209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I have exactly the same problem as in this thread &lt;A href="https://community.nxp.com/thread/338217"&gt;EGLFS ugly rendering.&lt;/A&gt; .&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;In my case i have a display with 800x480 pixel. EGL renders obviously 1000x480 pixel. The 200 pixel are shifted like in the picture below but when i change the parameter bits_per_pixel from 24 to 32 bit (/sys/class/graphics/fb0/bits_per_pixel) the shift will not be visible on the left side. I will simply not be shown anymore because of the end of the display. The rendering failure still exists.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Which init file do &lt;SPAN style="font-size: 12.6000003814697px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" data-avatarid="26870" data-content-finding="Community" data-externalid="" data-presence="null" data-userid="14228" data-username="jamesbone" href="https://community.nxp.com/people/jamesbone" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #017bba;"&gt;jamesbone&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; mean and where can i find this file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Here are some pictures from my side to give you a better felling what is happening to my system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Picture 1: this picture shows the effect like above with visible shift&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Picture 2: here we can see the same effect but the pixel depth is changed from 24 to 32 bit&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Picture 3: this picture shows the output, when i start the example with linuxfb (but in our project we can´t use linuxfb because we use opengl es 2)&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IMAG0390_.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25616i593B4AAAB54849AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMAG0390_.jpg" alt="IMAG0390_.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IMAG0392_.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25665iDB562E920796F4E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMAG0392_.jpg" alt="IMAG0392_.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IMAG0391_.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25791iBE990479C88BC492/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMAG0391_.jpg" alt="IMAG0391_.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;PS: it seems that the eglfs is not interested in the environment variables mentioned here: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://doc.qt.io/qt-5/embedded-linux.html" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #017bba;" target="_blank"&gt;Qt for Embedded Linux | Qt 5.4&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I tested some possible settings but there is no effect to the output. We use Qt 5.3.2 built with yocto in our application.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Also fbset 800 480 800 480 24 only have a effect on the color depth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Would be perfect if anyone can give some support to me or have some ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2015 13:36:58 GMT</pubDate>
    <dc:creator>michaelwiesent</dc:creator>
    <dc:date>2015-06-12T13:36:58Z</dc:date>
    <item>
      <title>Wrong Qt-Rendering with platform EGLFS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wrong-Qt-Rendering-with-platform-EGLFS/m-p/396770#M58209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I have exactly the same problem as in this thread &lt;A href="https://community.nxp.com/thread/338217"&gt;EGLFS ugly rendering.&lt;/A&gt; .&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;In my case i have a display with 800x480 pixel. EGL renders obviously 1000x480 pixel. The 200 pixel are shifted like in the picture below but when i change the parameter bits_per_pixel from 24 to 32 bit (/sys/class/graphics/fb0/bits_per_pixel) the shift will not be visible on the left side. I will simply not be shown anymore because of the end of the display. The rendering failure still exists.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Which init file do &lt;SPAN style="font-size: 12.6000003814697px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" data-avatarid="26870" data-content-finding="Community" data-externalid="" data-presence="null" data-userid="14228" data-username="jamesbone" href="https://community.nxp.com/people/jamesbone" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #017bba;"&gt;jamesbone&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; mean and where can i find this file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Here are some pictures from my side to give you a better felling what is happening to my system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Picture 1: this picture shows the effect like above with visible shift&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Picture 2: here we can see the same effect but the pixel depth is changed from 24 to 32 bit&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Picture 3: this picture shows the output, when i start the example with linuxfb (but in our project we can´t use linuxfb because we use opengl es 2)&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IMAG0390_.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25616i593B4AAAB54849AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMAG0390_.jpg" alt="IMAG0390_.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IMAG0392_.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25665iDB562E920796F4E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMAG0392_.jpg" alt="IMAG0392_.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IMAG0391_.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25791iBE990479C88BC492/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMAG0391_.jpg" alt="IMAG0391_.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;PS: it seems that the eglfs is not interested in the environment variables mentioned here: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://doc.qt.io/qt-5/embedded-linux.html" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #017bba;" target="_blank"&gt;Qt for Embedded Linux | Qt 5.4&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I tested some possible settings but there is no effect to the output. We use Qt 5.3.2 built with yocto in our application.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Also fbset 800 480 800 480 24 only have a effect on the color depth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Would be perfect if anyone can give some support to me or have some ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 13:36:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wrong-Qt-Rendering-with-platform-EGLFS/m-p/396770#M58209</guid>
      <dc:creator>michaelwiesent</dc:creator>
      <dc:date>2015-06-12T13:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Qt-Rendering with platform EGLFS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wrong-Qt-Rendering-with-platform-EGLFS/m-p/396771#M58210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that you have settings incorrect of the&amp;nbsp; EGL native Window, so in your init function of your application you need to check&amp;nbsp; EGLQuerySurface. To provide the width and height of EGL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New;"&gt;/*get width and height from egl*/&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Courier New;"&gt;eglQuerySurface(egldisplay, eglsurface, EGL_WIDTH, &amp;amp;w);&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Courier New;"&gt;eglQuerySurface(egldisplay, eglsurface, EGL_HEIGHT, &amp;amp;h);&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 16:38:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wrong-Qt-Rendering-with-platform-EGLFS/m-p/396771#M58210</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2015-06-18T16:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Qt-Rendering with platform EGLFS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wrong-Qt-Rendering-with-platform-EGLFS/m-p/396772#M58211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t exactly know where to set this settings. In the pictures above i tried to use the standard examples from Qt. It´s the example under examples/widgets/animation/animatedtiles. Therefore I don´t think, that I have to change the code for this examples. It has to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also invested some time in getting into the platform coding and the framebuffer. After this i have a guess but don´t know how or where to fix it. When linuxfb is used there are only the RGB values in the framebuffer. It looks like this&lt;/P&gt;&lt;P&gt;R G B R G B R G B ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the platform eglfs it seems that there is the color format RGBA so it looks like this&lt;/P&gt;&lt;P&gt;R G B &lt;STRONG&gt;A&lt;/STRONG&gt; R G B &lt;STRONG&gt;A&lt;/STRONG&gt; R G B &lt;STRONG&gt;A&lt;/STRONG&gt; ...&lt;/P&gt;&lt;P&gt;The alpha channel has always the value 0xFF. I checked this with hexdump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the driver (should be vivante) which is interpreting this data do not know about this RGBA format und interpet it like a RGB format. I tried to set the boot parameters to RGBA32 or RGBA8888 but there was no change. The result could be the following:&lt;/P&gt;&lt;P&gt;framebuffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R G B A R G B A R G B A&lt;/P&gt;&lt;P&gt;graphic driver interpretation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R G B R G B R G B R G B&lt;/P&gt;&lt;P&gt;This could be the reason why the image is around 200px larger. The basic width is 800px.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m able to cross compile the libqeglfs.so. Therefore I added some debugging information for a better understanding how this plugin works. So I can change anything of this plugin. Can anyone tell me where I can set the color width so that only RGB is set to the framebuffer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE:&lt;BR /&gt;I think i have to change the configuration of the attribute EGL_BUFFER_SIZE or EGL_NATIVE_VISUAL_TYPE from 32 to 24. Where can i do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 07:43:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wrong-Qt-Rendering-with-platform-EGLFS/m-p/396772#M58211</guid>
      <dc:creator>michaelwiesent</dc:creator>
      <dc:date>2015-06-19T07:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Qt-Rendering with platform EGLFS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wrong-Qt-Rendering-with-platform-EGLFS/m-p/396773#M58212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have some great news i want to share. After some searching i found this link&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-93617"&gt;iMX6QD How to Add 24-bit LVDS Support in Android&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is exactly described how to solve my problem. I have to change the boot parameter. Here is the important part&lt;/P&gt;&lt;P&gt;... &lt;STRONG&gt; &lt;SPAN style="color: black; font-family: Arial;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Arial;"&gt;=RGB24,fbpix=RGB32&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Arial;"&gt;These parameters describe that the display need RGB24 while the framebuffer holds data with RGB32. After this change it works perfect. Therefore I don´t have to change the EGLFS platform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Arial;"&gt;Hope i can help somebody else with this information.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 08:25:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wrong-Qt-Rendering-with-platform-EGLFS/m-p/396773#M58212</guid>
      <dc:creator>michaelwiesent</dc:creator>
      <dc:date>2015-06-23T08:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Qt-Rendering with platform EGLFS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wrong-Qt-Rendering-with-platform-EGLFS/m-p/396774#M58213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for following up. We were addressing this issue on a Wandboard Solo and your fix in the uboot arguments got it for us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 23:05:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wrong-Qt-Rendering-with-platform-EGLFS/m-p/396774#M58213</guid>
      <dc:creator>hardyb</dc:creator>
      <dc:date>2017-12-05T23:05:02Z</dc:date>
    </item>
  </channel>
</rss>

