Thanks :) Btw, is the code executing the drawing commands also in MESA? If it is, which files are they in? If  not, where can I find the code executing the drawing commands? <br><br><div class="gmail_quote">2012/5/22 Michel Dänzer <span dir="ltr">&lt;<a href="mailto:michel@daenzer.net" target="_blank">michel@daenzer.net</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Die, 2012-05-22 at 13:32 +0800, Homer Hsing wrote:<br>
&gt; I have a newbie question when tracing a bug in MESA.<br>
&gt;<br>
&gt;<br>
&gt; After &quot;__glXFlushRenderBuffer&quot; calling &quot;xcb_glx_render&quot;, which code<br>
&gt; will do drawing commands in &quot;ctx-&gt;buf&quot; ?<br>
&gt;<br>
&gt;<br>
&gt; Reference: in MESA src/glx/glxext.c,<br>
&gt; GLubyte * __glXFlushRenderBuffer(struct glx_context * ctx, GLubyte *<br>
&gt; pc) {<br>
&gt; /* some code omitted */<br>
&gt; xcb_glx_render(c, ctx-&gt;currentContextTag, size,<br>
&gt;                      (const uint8_t *) ctx-&gt;buf);<br>
&gt; /* some code omitted */<br>
&gt; }<br>
<br>
</div></div>The commands are submitted to the X server via the X11 protocol and<br>
executed there.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Earthling Michel Dänzer           |                   <a href="http://www.amd.com" target="_blank">http://www.amd.com</a><br>
Libre software enthusiast         |          Debian, X and DRI developer<br>
</font></span></blockquote></div><br>