<div dir="ltr">I'd support such change. Be it through <span style="font-family:arial,sans-serif;font-size:12.800000190734863px">GL_GREMEDY_string_marker, or ARB_debug_output's gl</span><span style="color:rgb(0,0,0);white-space:pre-wrap">DebugMessageInsertARB(</span><span style="color:rgb(0,0,0);white-space:pre-wrap">DEBUG_SOURCE_THIRD_PARTY_ARB</span><span style="color:rgb(0,0,0);white-space:pre-wrap">, ...), or KHR_debug's gl</span><span style="color:rgb(0,0,0);white-space:pre-wrap">PushDebugGroup()</span><font color="#000000"><span style="white-space:pre-wrap">.  A Gallium interface change would be necessary to pass these annotations to the drivers. This discussion would be more appropriate in Mesa-dev mailing list though.</span></font><br>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div style><font color="#000000"><span style="white-space:pre-wrap">For quicker results, you could modify your gallium driver to force flushing on every draw, and dump the commands to stderr, and run glretrace with -v option. I do this all the time: enabling logging at all levels (state tracker, trace driver, etc), and see how they correlate.</span></font></div>
<div style><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div><div style><font color="#000000"><span style="white-space:pre-wrap">Jose</span></font></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Fri, May 31, 2013 at 3:03 PM, Rob Clark <span dir="ltr"><<a href="mailto:robdclark@gmail.com" target="_blank">robdclark@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there a way to get apitrace retrace to emit gl call #'s for draw<br>
calls in some way that the gallium driver could intercept (ie.<br>
GL_GREMEDY_string_marker)?  This way when I'm capturing cmdstream from<br>
a retrace, I could do something like emit a CP_NOP w/ payload that has<br>
the marker to more easily find the spots in the cmdstream which match<br>
up to draw calls in the trace..<br>
<br>
BR,<br>
-R<br>
_______________________________________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org">apitrace@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" target="_blank">http://lists.freedesktop.org/mailman/listinfo/apitrace</a><br>
</blockquote></div><br></div>