<?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>1927</bug_id>
          
          <creation_ts>2012-01-20 02:51:43 +0000</creation_ts>
          <short_desc>Glxgears failed in qemux86/x86-64 on ubuntu 11.10</short_desc>
          <delta_ts>2012-04-10 08:03:02 +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>OE-Core</product>
          <component>graphics</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongna Xu">hongnax.xu</reporter>
          <assigned_to name="Edwin Zhai">edwin.zhai</assigned_to>
          <cc>jiajun.xu</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>yilongx.y.sun</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>18294</commentid>
    <comment_count>0</comment_count>
    <who name="Hongna Xu">hongnax.xu</who>
    <bug_when>2012-01-20 02:51:43 +0000</bug_when>
    <thetext>when i run &quot;glxgears&quot;, i got:
*****************************
you maybe forgot to launch QEMU with -enable-gl argument.
Trying TCP/IP communication instead
impossible to connect to server: Connection refused
******************************

distro: fedora 16
host arch:x86</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18800</commentid>
    <comment_count>1</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-02-29 02:45:12 +0000</bug_when>
    <thetext>This bug is the x86-64 version of bug 1442.

Extended it to x86-64 fix it. Patch already out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18801</commentid>
    <comment_count>2</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-02-29 02:46:11 +0000</bug_when>
    <thetext>fixed @
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=93d157b7245182d88395b2e361db28528dd3af19</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18839</commentid>
    <comment_count>3</comment_count>
    <who name="yilong, sun">yilongx.y.sun</who>
    <bug_when>2012-03-02 07:19:09 +0000</bug_when>
    <thetext>when i run command &quot;glxgears&quot; in qemux86-64  terminal , i got follows&apos; message.

root@qemux86-64:~# glxgears
go on...
looking for &quot;glXChooseVisual&quot;,
global_glXGetProcAddress request
nbRequestElts=1766
glAddSwapHintRectWIN 1 0
glBeginConditionalRenderNVX 1 0
glBeginDefineVisibilityQueryATI 1 0
glBeginOcclusionQuery 1 0
glBeginSceneEXT 1 0
glBeginUseVisibilityQueryATI 1 0
...
glXQueryMaxSwapBarriersSGIX 1 0
glXReleaseBuffersMESA 1 0
glXReleaseTexImageEXT 1 0
glXSelectEventSGIX 1 0
glXSwapBuffersMscOML 1 0
glXWaitForMscOML 1 0
glXWaitForSbcOML 1 0
looking for &quot;glXChooseVisual&quot;,
looking for &quot;glXCreateContext&quot;,
looking for &quot;glXMakeCurrent&quot;,
looking for &quot;glXQueryExtensionsString&quot;,
looking for &quot;glXGetSwapIntervalMESA&quot;,
looking for &quot;glXGetSwapIntervalMESA&quot;,
not found name on client side = glXGetSwapIntervalMESA
Segmentation fault


image URL:
http://autobuilder.pokylinux.org/pub/nightly/20120229-1/machines/qemu/qemux86-64/core-image-sato-sdk-qemux86-64.ext3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18841</commentid>
    <comment_count>4</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-03-02 08:24:39 +0000</bug_when>
    <thetext>Yilong,

I have tried your image, and glxgears works well.

It&apos;s a qemu bug, so do you get latest qemu?

Another reason may be the host. Do you have nVidia&apos;s opengl driver?

Thanks,
Edwin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18870</commentid>
    <comment_count>5</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-03-06 06:14:58 +0000</bug_when>
    <thetext>I can run glxgears well on my ubuntu 10.10 machine with Hongna&apos;s qemu/kernel/image. So something wrong in the Ubuntu 11.10 host, which is already tracked by bug 1886.

I&apos;ll try to fix bug 1886, then Yilong can verify this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19267</commentid>
    <comment_count>6</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-03-21 01:44:23 +0000</bug_when>
    <thetext>There are some new extensions in mesa 7.11 driver on ubutu 11.10, such as GLX_MESA_copy_sub_buffer
GLX_MESA_multithread_makecurrent
GLX_MESA_swap_control.

Exporting these to guest leads some GL call like glXGetSwapIntervalMESA, which is not handled in libgl-qemu and qemu. 

Implementation of these APIs is hacky, as they are X-window related. Feasible fix is hiding these extensions from guest.

Patch already out.

BTW, following variables is used for debug when launching with gl apps.

DEBUG_GL=1 DEBUG_ARRAY_PTR=1 -- put more debug info in libgl-qemu
WRITE_GL -- ask qemu to record all the GL calls in /tmp/debug_gl.bin, then can replay it with opengl_player.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19268</commentid>
    <comment_count>7</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-03-21 01:45:47 +0000</bug_when>
    <thetext>Fixed @
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7161e47fd18ed7bdd988bbd14c8cae65f5bc9680</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19767</commentid>
    <comment_count>8</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-04-01 03:07:42 +0000</bug_when>
    <thetext>change the title to reflect the log and fix, open Bug 2221 for FC16 gl bug.

So hongna, when you verify bug 1886 after my fix in master, pls. also verify this one. 

Pls. also track bug 2221.

Thanks,
Edwin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20109</commentid>
    <comment_count>9</comment_count>
    <who name="Hongna Xu">hongnax.xu</who>
    <bug_when>2012-04-10 08:03:02 +0000</bug_when>
    <thetext>VERIFIED and FIXED with poky/1.2M4 rc2,commint 27aa5489fb40d99c58bb2a4bbf2311e2c502a091.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>