<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11876</bug_id>
          
          <creation_ts>2017-07-31 15:00:41 +0000</creation_ts>
          <short_desc>i.MX6: Chromium 57 is not able to use GPU with X11</short_desc>
          <delta_ts>2017-07-31 15:37:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-fsl-arm</component>
          <version>2.0.3</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Johannes Bauer">jbauer</reporter>
          <assigned_to name="Otavio Salvador">otavio</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75486</commentid>
    <comment_count>0</comment_count>
    <who name="Johannes Bauer">jbauer</who>
    <bug_when>2017-07-31 15:00:41 +0000</bug_when>
    <thetext>I am using this Yocto 2.0 build by Congatec for their QSeven i.MX6 module.

Xorg is starting fine with GPU support.

X11 GPU test programs (e.g. tiger) are working fine.

Then I built a plain Chromium 57 and copied it on top of this Yocto build.

chrome://gpu shows that the GPU and WebGL are available, but in the log I see:

drmOpenDevice: open result is 90, (OK)
drmOpenByBusid: drmOpenMinor returns 90
drmOpenByBusid: drmGetBusid reports platform:Vivante GCCore:00
[20500:20522:0731/143818.506168:ERROR:simple_backend_impl.cc(137)] Failed to create directory: /mnt/sd/.cache/Default/Cache
[20500:20522:0731/143818.506328:ERROR:simple_backend_impl.cc(585)] Simple Cache Backend: wrong file structure on disk: /mnt/sd/.cache/Default/Cache
[20500:20523:0731/143818.507012:ERROR:cache_util.cc(134)] Unable to move cache folder /mnt/sd/.cache/Default/Cache to /mnt/sd/.cache/Default/old_Cache_000
[20500:20523:0731/143818.507130:ERROR:cache_creator.cc(133)] Unable to create cache
[     1] libGAL: Performing a software resolve!
[20538:20538:0731/143818.655305:ERROR:gles2_cmd_decoder.cc(2416)] [GroupMarkerNotSet(crbug.com/242999)!:68DE4578]GL ERROR :GL_INVALID_ENUM : BackFramebuffer::Create: &lt;- error from previous GL command
[20538:20538:0731/143818.687284:ERROR:gl_context_glx.cc(240)] Couldn&apos;t make context current with X drawable.
[20538:20538:0731/143818.691691:ERROR:gl_context_glx.cc(267)] glXMakeCurrent failed in ReleaseCurrent
[20538:20538:0731/143818.692018:ERROR:gpu_command_buffer_stub.cc(628)] Failed to make context current.

When I try to run a WebGL test, it fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75489</commentid>
    <comment_count>1</comment_count>
    <who name="Johannes Bauer">jbauer</who>
    <bug_when>2017-07-31 15:05:14 +0000</bug_when>
    <thetext>Please ignore these lines in the log file:

[20500:20522:0731/143818.506168:ERROR:simple_backend_impl.cc(137)] Failed to create directory: /mnt/sd/.cache/Default/Cache
[20500:20522:0731/143818.506328:ERROR:simple_backend_impl.cc(585)] Simple Cache Backend: wrong file structure on disk: /mnt/sd/.cache/Default/Cache
[20500:20523:0731/143818.507012:ERROR:cache_util.cc(134)] Unable to move cache folder /mnt/sd/.cache/Default/Cache to /mnt/sd/.cache/Default/old_Cache_000
[20500:20523:0731/143818.507130:ERROR:cache_creator.cc(133)] Unable to create cache

This cache issue is fixed now, but the main problem resides.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75492</commentid>
    <comment_count>2</comment_count>
    <who name="Johannes Bauer">jbauer</who>
    <bug_when>2017-07-31 15:37:18 +0000</bug_when>
    <thetext>Chromium command-line switch &quot;--use-gl=egl&quot; seems to solve the issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>