<?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>3280</bug_id>
          
          <creation_ts>2012-10-11 16:36:50 +0000</creation_ts>
          <short_desc>meta-cedartrail: Clutter on OpenGL fails to initialize</short_desc>
          <delta_ts>2013-03-05 00:44:32 +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-intel</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Rahul Saxena">rahul.saxena</assigned_to>
          <cc>dvhart</cc>
    
    <cc>kishore.k.bodke</cc>
    
    <cc>rahul.saxena</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26534</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-10-11 16:36:50 +0000</bug_when>
    <thetext>You can install the Clutter tests by installing libclutter-glx-1.0-examples.  Then running a section of the test suite:

$ test-interactive test_cairo_flowers
PVRDRIInit2D: PVR2D device index (0)
PVRDRIMakeCurrentGC: GLMakeCurrentGC failed (3)
Clutter-CRITICAL: Unable to initialize Clutter: the OpenGL version could not be determined
[exits]

Is my image broken, or is this a problem with the binary DRI driver and open Mesa library interaction?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26606</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-10-15 15:08:02 +0000</bug_when>
    <thetext>Nitin, my guess it this is not cedartrail specific. Can you work with Ross to get the cairo tests and verify that you can get this working with other binary graphics driver boards?

Kishore, Rahul, can you follow-up with Ross regarding cedartrail specifically?

I&apos;m treating this as a meta-intel must fix for 1.3. This indicates to me that Ross may have been correct about the binary driver with mismatched mesa GL libraries.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26607</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-10-15 15:54:51 +0000</bug_when>
    <thetext>I will check this libclutter-glx-1.0-examples test with crownbay BSP which has EMGD binary graphics driver.

I don&apos;t have the cedartrail hardware with me.

Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26620</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-10-15 22:23:11 +0000</bug_when>
    <thetext>I tried the cairo tests from with the test-interactive program from libclutter-glx-1.0-examples on the crownbay hardware, and I did not see any issues with running these tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26623</commentid>
    <comment_count>4</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-10-15 23:13:12 +0000</bug_when>
    <thetext>to be more specific I tried these tests: cairo_clock &amp; cairo_flowers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26752</commentid>
    <comment_count>5</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-10-19 00:06:49 +0000</bug_when>
    <thetext>Rahul looked at the issue. He noticed that correct files are getting packaged in the image. So looks like this is issue with the binary PVR driver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26770</commentid>
    <comment_count>6</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-10-19 17:23:01 +0000</bug_when>
    <thetext>Rahul,
 any further details on it? At least we need to know if the issue will get fixed before 1.3 release or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26773</commentid>
    <comment_count>7</comment_count>
    <who name="Rahul Saxena">rahul.saxena</who>
    <bug_when>2012-10-19 17:49:22 +0000</bug_when>
    <thetext>Nitin, I am going to try out the tests and look at it now. Will give you a update mid next week.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26775</commentid>
    <comment_count>8</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-10-19 22:07:11 +0000</bug_when>
    <thetext>Hi Rahul,
   Add this line to your local.conf

EXTRA_IMAGE_FEATURES += &quot;tools-testapps libclutter-glx-1.0-examples&quot;

and then build the core-image-sato image

and when booted the image on the h/w, in the graphical user interface open a terminal to run these commands:


$ test-interactive test_cairo_flowers

$ test-interactive test_cairo_clock



Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26816</commentid>
    <comment_count>9</comment_count>
    <who name="Rahul Saxena">rahul.saxena</who>
    <bug_when>2012-10-22 20:38:51 +0000</bug_when>
    <thetext>I got the seame error messages on Clutter tests as Ross.
However the Cedar Trail PVR driver release notes states the following:

&quot;Very limited support for OpenGL API (&quot;big GL&quot;).

The release notes also indicate that OpenGLES is supported.

I assume these clutter tests are trying to use OpenGL API and not OpenGLES (going by the error messages). Should we then even expect these clutter tests to pass ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26817</commentid>
    <comment_count>10</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-10-22 21:06:09 +0000</bug_when>
    <thetext>GL is certainly limited, but it somewhat works.

On MeeGo, GL apps apps like Google Earth and Neverball work.  I guess the right thing to do now is to try something like Google Earth on the same hardware with both MeeGo and Poky.

(as you say, GL on CDT is very limited, don&apos;t consider this a high priority bug)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26873</commentid>
    <comment_count>11</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-10-24 23:26:30 +0000</bug_when>
    <thetext>Rahul,
  so what is the status of this issue for 1.3 release? I see no solution to the issue. And in that case, we need to add information regarding this issue in the 1.3 release document.

Thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26927</commentid>
    <comment_count>12</comment_count>
    <who name="Rahul Saxena">rahul.saxena</who>
    <bug_when>2012-10-25 17:27:29 +0000</bug_when>
    <thetext>Nitin,

I am getting zero support from PVR driver team, so I dont see this issue being fixed with 1.3 Release. Anyhow the issue may just be a result of this driver limitation of only very limited support for OpenGL.

As far as 1.3 release document is concerned, does it make sense to indicate something more generic, such as the statement  below from the PVR driver release notes ..as opposed to a list of specific Apps that may not work with this driver ?. 

 &quot;Very limited support for OpenGL API (&quot;big GL&quot;), 

I can send you the driver release notes.

Thanks
Rahul</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26951</commentid>
    <comment_count>13</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-10-26 09:22:25 +0000</bug_when>
    <thetext>Re-iterating the brokenness of GL is probably very wise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27049</commentid>
    <comment_count>14</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-10-30 15:57:11 +0000</bug_when>
    <thetext>I emailed Joe Konno, who I worked with during MeeGo for CDT.  He said:

----
Yes, Cedarview big GL blows-- though unsupported throughout development, the big GL driver was, demanded by stakeholders, thus its inclusion in the packages for MeeGo and Ubuntu. I agree that it&apos;s fragile at best and ought not be targeted by developers.

There is a hard dependency on some of the internal Mesa data structures within the actual source code. Le sigh. Traditionally, each major version of Mesa has tweaked some of these data structures in some way, requiring source code tweaks. Yes, it&apos;s as bad as it sounds-- there are branches for each major version of Mesa we supported during development. Thus, each release of the Cedarview gfx driver must be coupled to a particular version of Mesa.

To add forward compatibility would require revisiting the driver architecture. I don&apos;t see that happening.

For the MeeGo-packaged driver, hard dependency on Mesa 7.9
For the Canonical-packaged driver for Precise (12.04), Mesa 8.0.1 (-ish)
---

So if we want to enable GL on CDT (and I expect the same holds for EMGD) we need another version of Mesa available.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27053</commentid>
    <comment_count>15</comment_count>
    <who name="Rahul Saxena">rahul.saxena</who>
    <bug_when>2012-10-30 16:25:27 +0000</bug_when>
    <thetext>I think at one point I had Mesa 7.9 for this BSP, but had not tried clutter then. Will try it out again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27128</commentid>
    <comment_count>16</comment_count>
    <who name="Rahul Saxena">rahul.saxena</who>
    <bug_when>2012-10-31 18:17:27 +0000</bug_when>
    <thetext>Currently with recent commits (as below) the image is not booting when built with either the MESA-DRI 8.0.4 (currently in meta-intel) or after modifying my local copy with MESA-DRI 7.9 . 

meta-intel: Oct 29: 76d2942087d7563ae42f0bea6d97460ee2561f3e

poky: Oct 29: e9e3285e1397cfd2d34f4eb7b5aa59311eea861d

Looks like some recent commit/s has caused it to break.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27129</commentid>
    <comment_count>17</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-10-31 19:36:50 +0000</bug_when>
    <thetext>Rahul,
  I see you are not using the danny branch of poky. Danny is YP 1.3.

Also MES_DRI should not affect bootability. So clearly you are hitting on some other issue in the poky master.

Nitin
`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27130</commentid>
    <comment_count>18</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-10-31 20:24:14 +0000</bug_when>
    <thetext>Presumably you&apos;re hitting udevd failures - it&apos;s broken when booting through an initramfs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27166</commentid>
    <comment_count>19</comment_count>
    <who name="Rahul Saxena">rahul.saxena</who>
    <bug_when>2012-11-01 17:00:34 +0000</bug_when>
    <thetext>I tried MESA 7.9 with Poky Danny branch.  The clutter tests still had the same failure.  One thing I noticed was that &apos;glxinfo&apos; command does not give any mesa version info, though it is supposed to (as per examples I found on the web). Perhaps its just a glxinfo version issue ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28410</commentid>
    <comment_count>20</comment_count>
    <who name="Rahul Saxena">rahul.saxena</who>
    <bug_when>2012-12-20 19:45:11 +0000</bug_when>
    <thetext>Since the issue has persisted even with MESA 7.9, it looks like the root problem may be as indicated in the statement  below in the ReleaseNotes:
 &quot;Very limited support for OpenGL API (&quot;big GL&quot;).

Let me know if others on this list are OK with me to close this issue with &quot;Resolved  Wont be fixed&quot; status.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30426</commentid>
    <comment_count>21</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-03-05 00:44:32 +0000</bug_when>
    <thetext>cedar-trail require the 3.0 kernel and it has been removed from the 1.4 release. Closing as INVALID as it doesn&apos;t apply to the 1.4 release.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>