<div dir="ltr">Doing some debugging, it seems the call to ctx->Driver.ReadPixels() in _mesa_ReadnPixelsARB leads to _mesa_readpixels() being called in readpix.c.<div><br></div><div>I'm attaching some output of gdb that will hopefully be useful.</div>

<div><br></div><div style>I'm also attaching the debug terminal output of running Weston with the DRM backend.</div><div style><br></div><div style>Let me know if I can provide other useful information.</div></div><div class="gmail_extra">

<br clear="all"><div><div dir="ltr"><span style="color:rgb(80,0,80)">Med venlig hilsen,</span><br style="color:rgb(80,0,80)"><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">Rune Kjær Svendsen</span><br style="color:rgb(80,0,80)">

<span style="color:rgb(80,0,80)">Østerbrogade 111, 3. - 302</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">2100 København Ø</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">Tlf.: 2835 0726</span><br>

</div></div>
<br><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 12:52 PM, Rune Kjær Svendsen <span dir="ltr"><<a href="mailto:runesvend@gmail.com" target="_blank">runesvend@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div>Hello list</div><div><br></div><div>I'm having problems recording the desktop content using the Weston compositor's built-in recording function. When I start a recording and do something that changes a lot of screen content (like zooming in on the desktop, for example), I get around 0.5 FPS. Using sysprof, I can see that ~98% of CPU is used in the function unpack_XRGB8888(). krh has told me this is caused by glReadPixels going through a slowpath. I have a Radeon HD 5770 GPU and I'm using mesa git (I've tried the mesa version in the Ubuntu 12.10 repos, and the xorg-edgers PPA, same result).</div>


<div><br></div><div>Does anyone know what the issue could be, or how to debug the problem further?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>/Rune</div>
</font></span></div>
</blockquote></div><br></div>