<?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>i.MX Processorsのトピックimx6q OpenGL ES 2.0 Lib Bug?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-OpenGL-ES-2-0-Lib-Bug/m-p/653957#M100126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My board's config:&lt;/P&gt;&lt;P&gt;iMX6Q&lt;/P&gt;&lt;P&gt;Linux 3.14.28 &amp;nbsp;1GB DDR&lt;/P&gt;&lt;P&gt;LCD 800 x 480 &amp;nbsp;RGB888&lt;/P&gt;&lt;P&gt;Several versions of rootfs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am testing OpenGL ES API these days. I've tested the following version OpenGL ES lib(inside rootfs/usr/lib). My app just draws a RED triangle. The app running result&amp;nbsp;is either color incorrect as the attached bmp OR API assert fail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The app code is from imx6 gpu sdk Samples/GLES2.0/01_SimpleTriangle.&lt;/P&gt;&lt;P&gt;The tested lib&amp;nbsp;is extracted from following release,&amp;nbsp;all based on FB, not X11:&lt;/P&gt;&lt;P&gt;L3.0.101&lt;/P&gt;&lt;P&gt;L3.10.53&lt;/P&gt;&lt;P&gt;L3.14.52&lt;/P&gt;&lt;P&gt;L3.14.28&lt;/P&gt;&lt;P&gt;L4.1.15_1.0.0&lt;/P&gt;&lt;P&gt;L4.1.15_2.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside my code, the EGL config is:&lt;/P&gt;&lt;P&gt;static const EGLint s_configAttribs[] =&lt;BR /&gt; {&lt;BR /&gt; EGL_SAMPLES, 0,&lt;BR /&gt; EGL_RED_SIZE, 8,&lt;BR /&gt; EGL_GREEN_SIZE, 8,&lt;BR /&gt; EGL_BLUE_SIZE, 8,&lt;BR /&gt; EGL_ALPHA_SIZE, EGL_DONT_CARE,&lt;BR /&gt; EGL_DEPTH_SIZE, 0,&lt;BR /&gt; EGL_SURFACE_TYPE, EGL_WINDOW_BIT,&lt;BR /&gt; EGL_NONE&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Shaders code are:&lt;/P&gt;&lt;P&gt;const char* g_strVertexShader = &lt;BR /&gt;"uniform mat4 g_matModelView; \n"&lt;BR /&gt;"uniform mat4 g_matProj; \n"&lt;BR /&gt;" \n"&lt;BR /&gt;"attribute vec4 g_vPosition; \n"&lt;BR /&gt;" \n"&lt;BR /&gt;"void main() \n"&lt;BR /&gt;"{ \n"&lt;BR /&gt;" vec4 vPositionES = g_matModelView * g_vPosition; \n"&lt;BR /&gt;" gl_Position = g_matProj * vPositionES; \n"&lt;BR /&gt;"} \n";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;const char* g_strFragmentShader = &lt;BR /&gt;"#ifdef GL_FRAGMENT_PRECISION_HIGH \n"&lt;BR /&gt;" precision highp float; \n"&lt;BR /&gt;"#else \n"&lt;BR /&gt;" precision mediump float; \n"&lt;BR /&gt;"#endif \n"&lt;BR /&gt;" \n"&lt;BR /&gt;"void main() \n"&lt;BR /&gt;"{ \n"&lt;BR /&gt;" gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 ); \n" &amp;nbsp;/******** Fix RED color *********/&lt;BR /&gt;"} \n";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output should be a RED Triangle. But both the foreground and background are all incorrect!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="303749628342956880.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8876iE0FC9C22C2F1FBF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="303749628342956880.jpg" alt="303749628342956880.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Nov 2016 04:45:04 GMT</pubDate>
    <dc:creator>garyyin</dc:creator>
    <dc:date>2016-11-12T04:45:04Z</dc:date>
    <item>
      <title>imx6q OpenGL ES 2.0 Lib Bug?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-OpenGL-ES-2-0-Lib-Bug/m-p/653957#M100126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My board's config:&lt;/P&gt;&lt;P&gt;iMX6Q&lt;/P&gt;&lt;P&gt;Linux 3.14.28 &amp;nbsp;1GB DDR&lt;/P&gt;&lt;P&gt;LCD 800 x 480 &amp;nbsp;RGB888&lt;/P&gt;&lt;P&gt;Several versions of rootfs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am testing OpenGL ES API these days. I've tested the following version OpenGL ES lib(inside rootfs/usr/lib). My app just draws a RED triangle. The app running result&amp;nbsp;is either color incorrect as the attached bmp OR API assert fail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The app code is from imx6 gpu sdk Samples/GLES2.0/01_SimpleTriangle.&lt;/P&gt;&lt;P&gt;The tested lib&amp;nbsp;is extracted from following release,&amp;nbsp;all based on FB, not X11:&lt;/P&gt;&lt;P&gt;L3.0.101&lt;/P&gt;&lt;P&gt;L3.10.53&lt;/P&gt;&lt;P&gt;L3.14.52&lt;/P&gt;&lt;P&gt;L3.14.28&lt;/P&gt;&lt;P&gt;L4.1.15_1.0.0&lt;/P&gt;&lt;P&gt;L4.1.15_2.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside my code, the EGL config is:&lt;/P&gt;&lt;P&gt;static const EGLint s_configAttribs[] =&lt;BR /&gt; {&lt;BR /&gt; EGL_SAMPLES, 0,&lt;BR /&gt; EGL_RED_SIZE, 8,&lt;BR /&gt; EGL_GREEN_SIZE, 8,&lt;BR /&gt; EGL_BLUE_SIZE, 8,&lt;BR /&gt; EGL_ALPHA_SIZE, EGL_DONT_CARE,&lt;BR /&gt; EGL_DEPTH_SIZE, 0,&lt;BR /&gt; EGL_SURFACE_TYPE, EGL_WINDOW_BIT,&lt;BR /&gt; EGL_NONE&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Shaders code are:&lt;/P&gt;&lt;P&gt;const char* g_strVertexShader = &lt;BR /&gt;"uniform mat4 g_matModelView; \n"&lt;BR /&gt;"uniform mat4 g_matProj; \n"&lt;BR /&gt;" \n"&lt;BR /&gt;"attribute vec4 g_vPosition; \n"&lt;BR /&gt;" \n"&lt;BR /&gt;"void main() \n"&lt;BR /&gt;"{ \n"&lt;BR /&gt;" vec4 vPositionES = g_matModelView * g_vPosition; \n"&lt;BR /&gt;" gl_Position = g_matProj * vPositionES; \n"&lt;BR /&gt;"} \n";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;const char* g_strFragmentShader = &lt;BR /&gt;"#ifdef GL_FRAGMENT_PRECISION_HIGH \n"&lt;BR /&gt;" precision highp float; \n"&lt;BR /&gt;"#else \n"&lt;BR /&gt;" precision mediump float; \n"&lt;BR /&gt;"#endif \n"&lt;BR /&gt;" \n"&lt;BR /&gt;"void main() \n"&lt;BR /&gt;"{ \n"&lt;BR /&gt;" gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 ); \n" &amp;nbsp;/******** Fix RED color *********/&lt;BR /&gt;"} \n";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output should be a RED Triangle. But both the foreground and background are all incorrect!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="303749628342956880.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8876iE0FC9C22C2F1FBF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="303749628342956880.jpg" alt="303749628342956880.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Nov 2016 04:45:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-OpenGL-ES-2-0-Lib-Bug/m-p/653957#M100126</guid>
      <dc:creator>garyyin</dc:creator>
      <dc:date>2016-11-12T04:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: imx6q OpenGL ES 2.0 Lib Bug?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-OpenGL-ES-2-0-Lib-Bug/m-p/653958#M100127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like a display issue, memory or something in your hardware, on Sabre SD, GPU OpenGL samples run as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 16:23:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-OpenGL-ES-2-0-Lib-Bug/m-p/653958#M100127</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2016-11-16T16:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: imx6q OpenGL ES 2.0 Lib Bug?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-OpenGL-ES-2-0-Lib-Bug/m-p/653959#M100128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the render process finish, I dump fb data to a file and find the the data format is RGBA, 32-bit for each pixel!!!&lt;/P&gt;&lt;P&gt;I think this is the reason. The A, alpha value, shoud not be stored to framebuffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both your demo in /opt/fsl-gpu-sdk/ and my app have the same result.&lt;/P&gt;&lt;P&gt;But I've config the attribute "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;EGL_ALPHA_SIZE, EGL_DONT_CARE", Why?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 06:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-OpenGL-ES-2-0-Lib-Bug/m-p/653959#M100128</guid>
      <dc:creator>garyyin</dc:creator>
      <dc:date>2016-11-17T06:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: imx6q OpenGL ES 2.0 Lib Bug?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-OpenGL-ES-2-0-Lib-Bug/m-p/653960#M100129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way,&amp;nbsp;I found&amp;nbsp;that you pre-build demo in /opt/fsl-gpu-sdk/ run abnormal if --Window [x,y,w,h] para is not specified.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:root@imx6qsabresd:/opt/fsl-gpu-sdk/GLES2/S01_SimpleTriangle"&gt;root@imx6qsabresd:/opt/fsl-gpu-sdk/GLES2/S01_SimpleTriangle#./S01_SimpleTriangle&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;WARNING: Window Size/Position not defined, setting them to MAX Display Resolution&lt;BR /&gt;ERROR: demo setup failed with: eglCreateWindowSurface(m_hDisplay, m_hConfig, hWindow, nullptr) failed with error code 12291 at source/FslDemoHostEGL/EGLDemoHost.cpp(473)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I specify the para --Window [0,0,400,320], it works. But the output is wrong as the picture above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 07:06:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-OpenGL-ES-2-0-Lib-Bug/m-p/653960#M100129</guid>
      <dc:creator>garyyin</dc:creator>
      <dc:date>2016-11-17T07:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: imx6q OpenGL ES 2.0 Lib Bug?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-OpenGL-ES-2-0-Lib-Bug/m-p/653961#M100130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;I saw similar problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem was gone when I changed format of fb in&amp;nbsp;DTS file from 24 bit to 16 or 32 bit.&amp;nbsp; Even string format wasn't changed. Just&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;default_bpp = &amp;lt;24&amp;gt;;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;was changed to:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;default_bpp = &amp;lt;32&amp;gt;;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2020 15:23:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-OpenGL-ES-2-0-Lib-Bug/m-p/653961#M100130</guid>
      <dc:creator>sergkot</dc:creator>
      <dc:date>2020-07-12T15:23:51Z</dc:date>
    </item>
  </channel>
</rss>

